GithubHelp home page GithubHelp logo

yangyifeng / soundrecord Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 2.0 4.41 MB

网页版录音,在内存中生成 mp3 文件,post 到 php 服务端保存

License: MIT License

PHP 0.61% JavaScript 69.97% ActionScript 29.42%

soundrecord's People

Contributors

yangyifeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

goodlala luuray

soundrecord's Issues

MP3二进制数据经过Base64编码后,Java端解码是乱码?

首先非常感谢楼主的作品!!!

因为在经过HTTP传输时,一些特殊字符会被替换掉,比如:+ / =;

在源代码基础上进行了替换操作:

var dataContent:String = Base64.encodeByteArray(mp3Encoder.mp3Data);

var myPattern:RegExp = /+/gi;
dataContent = dataContent.replace(myPattern, "*");

var myPattern2:RegExp = /=/gi;
dataContent = dataContent.replace(myPattern2, "-");

var myPattern3:RegExp = ///gi;
dataContent = dataContent.replace(myPattern3, "#");

params.file = dataContent;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.