: // 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
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.