Discover how to send large audio files on android, include the articles, news, trends, analysis and practical advice about how to send large audio files on android on alibabacloud.com
Audio this aspect is very profound, I certainly can not speak what advanced things, at most also just some basic knowledge, first, we want to introduce Android he provided the recording class, in fact, he has two, one is Mediarecorder, There is another one that we are going to use today, what is the difference between them? Audiorecord
I. Distinction
Mediarecorder and Audiorecord can record
Whether it is text, image or sound, must be organized and stored in a certain format, so that the player will know how to parse this piece of data, for example, for the original image data, our common format is YUV, Bitmap, and for audio, the simplest common format is the WAV format.WAV format, like bitmap, are Microsoft developed a file format specification, they all have a similarity, is the whole file is divided into two parts, the first part is "F
1, first of all, to use the latest Maildrop features, you need to upgrade to the latest MAC OS 10.10 Yosemite system. Like I'm here to send a video file with a size of about 80M, as shown in the figure
2, then we can choose to use mail Drop to send oversize mail attachments, as shown in the figure
3. Next time when the other party receives the email, it will not contain the bulk attachments we sen
Http://blog.sina.com.cn/s/blog_4d59e3c70100i7ri.html
First, you should have a general understanding of sound recording. You need to set the sound data source, output encoding method, output file path, and output file format. One thing to note is that the output file format is equivalent to a capacity. The encoding format must be specified for specific encoding. The same encoding may have different output formats, and the same output format may have different encoding methods.
The
1. Let's first look at the video or video source:
SD card, mobile phone storage (such as multimedia files carried by applications in RES/raw), network.
2. for Android, there is no difference in playing various video files. The only difference may be the method of re-loading files. Let's take a look at the ways mediap
Requirement: Android Classic Bluetooth send file, send side support pause operation (Pervert!!!!!) ), also want to continue the breakpoint (more abnormal!!!) )Approximate implementation:Client sends a fixed length package, the first packet header (fixed length) contains this file identifier (name, total file flow length, etc.), and to handle the socket bufferOver
One, the supported features have text information interaction, voice chat, send files and recordingThe source code will be attached later.Second, the UI display diagramThree, after my test, is very successful. Just a little bit is the voice of real-time calls when the voice will echo or even panic. File transfer and text, recording are more successful.The software is the application of Java code, on the
{....... Omit section here} super.run (); } } 2.4 Saving breakpointsStoring breakpoint information in the Downloadthread download thread above is saved in the form of a database.Mthreaddao. Updatethread (threadinfo. GETURL (),threadinfo//update database corresponding thread information3 Other Auxiliary classes(1) The database operation class Threaddaoimpl, the breakpoint information increases, changes, checks, deletes.(2) Callback interface ondownload, download progress and download c
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.