: // 202.39.32.42/latest
Songurl
>
Audiolist
>
Songurl nodes can be added without restriction.(Note: Because the blog garden cannot upload a document with the XML extension, I changed the XML extension to htm, but it does not affect the use .)
Complete HTML call for the flash MP3 playerCode:
Object
Classid
= 'Clsid: d27cdb6e-ae6d-11cf-96b8-444553540000'
Codebase
= 'HTTP: // fpdownload.macromedia.com/pub/shockwave/cabs/
Installing software in Ubuntu is simple and convenient. If you don't want to hear MP3, you can install an MP3 player in Ubuntu. The name is audacious.
Installation Method: Open the Ubuntu terminal and enter the following command:
Use sudo apt-Get install audacious
Then install audacious-plugins-extra
Sudo apt-Get install audacious-plugins-extra // playabl
that was obtained before the activity was bound to the service. whenever the activitybinder.transact (0, data, reply, 0); When invoked, the service invokes the Ontransact method, loads the obtained data into the parcel object reply, and then the entire The IBinder object returns activity. MP3 player This is finished, may be very messy, I hope to help you, source code download Link: http://download.csdn.n
Scan local file to load to itemNot limited to apps to music player, other Android works, can also use SdcardsearchtolistOther Android projects can also be used, I have now done a very small demoLater will post, will be in the player, add this function, to achieve just downloaded music, loaded into the playerThis demo source download:http://download.csdn.net/album/detail/3105The name is: Sdcardsearchtolist,
I had published the blog: Do you use the Java swing to make such a dazzling MP3 player? and to display some screenshots on this MP3 Player.The target for this blog is so-publish the source code, and you can download the source code and give me some advices If possible.The Operation guide:Original Pic: http://image.mamicode.com/info/201408/20180110154103280894.pn
reply,
Int flags) throws RemoteException {
String str = data.readString();
Int currentPosition = mediaPlayer.getCurrentPosition();
Float s = (float)currentPosition/mediaPlayer.getDuration();
If(isPlay)
reply.writeFloat(s);
Return super.onTransact(code, data, reply, flags);
}
Yes, I do. It is the IBinder object that was obtained prior to the activity and service binding. whenever the activitybinder.transact (0, data, reply, 0); The service calls the Ontransact method. Load the acquired
)";
Else
Nano_str = "";
printf ("This program is linked against GStreamer%d.%d.%d%s\n",
Major, minor, Micro, NANO_STR);
return 0;
}
Compile run
# Gcc-wall $ (pkg-config--cflags--libs gstreamer-0.10) hello.c-o Hello
./hello
Operation Result:
This program is linked against GStreamer 0.10.22
Third, command line MP3 player test
#include #include Define the message handler function,
Static Gboolean
The following is the core code for making a simple MP3 player.
Xmlns: MX = "http://www.adobe.com/2006/mxml"
Width = "400" Height = "110" layout = "vertical"
Horizontalalign = "center" verticalalign = "center"
>
Import MX. Core. soundasset;
Import flash. Media .*;
[Embed (Source = "song.mp3")][Bindable]Public var Song: class;Public var mysong: soundasset = new song () as soundasset;Public var channel: sound
The following is a use of flex-made MP3 player, in addition to the volume adjustment, left and right channel adjustment, playback suspended outside. A dynamic waveform diagram is also plotted by sampling the sound. The effect chart is as follows:
The code is as follows
In web development often encounter some simple video playback function, but now the video format is different, and can be dynamically added, so we have to save the video to the data Oh, OK, let's look at the paragraph I wrote a simple PHP video web player code bar.
Copy the Code code as follows:
Include './admin/connect.php ';@extract ($db->get_one ("select * from Movieinfo where.$_get[' id '].");$db->qu
How to use php to extract information from mp3 files. Today, I saw a small software from Han Yu studio that could extract the mp3 file information in the specified directory and generate a webpage. the function is very simple, but it is very practical, so I thought of today, seeing a small software from Han Yu studio, I can extract the
Modify function djinfo ($ dir) for obtaining mp3 file information using php)
{
If (! File_exists ($ dir) return '';
If (substr (php_uname ('s '),) = "Windows") {// not supported by LINUX
$ Player = new COM ("WMPlayer. OCX ");
$ Media = $ player-> newMedia ($ dir );
$ Time = $ media-> duration; // Obtain the duration
@
The whole idea1, Server Installation FFmpeg2, Use the FFMPEG-I directive to convert AMR to MP3 format (this will be written in PHP code, using the EXEC function can be executed)3. Use the HTML5 audio tag to play the MP3 file on the web sideHere are the details of the operation:first, Server Installation FFmpeg take Cenos as an exampleReference Here: http://my.osc
Php enforces the download of mp3 file implementation code
Some mp3 files are usually played or used directly in the client browser. It's okay if you want them to be forcibly downloaded. The code described in this article can be implemented for you.The code is as follows:
For details about php header infor
Ask for help:
My job requirement is to generate a waveform diagram of a MP3 file.
My idea is to first generate a WAV file MP3, and then use the WAV file to generate a waveform diagram.
All the process will not, ask for help.
Originally, I want to exec (lame ...) This converts the MP3 into WAV, but finds that sometimes the conversion fails.
Later, some experts
Today, I saw a small software from Han Yu studio, which can extract mp3 file information under the specified directory and generate a webpage. the function is very simple, but it is very practical, so I thought that I could use php to implement this function, so I went to work. Open several mp3 files in a text editor, although SyntaxHighlighter. all ();
Today, I
Using php to rewrite the Baidu mp3 address encryption method Baidu mp3 address is encrypted. you can see the specific encryption method for yourself. the decoding function is as follows: // copyrighthttp: // www.k686.com//authortuzwu58@gmail.comfunctiondecode (ur uses php to rewrite the encryption method of Baidu
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.