问题描述:

Does anybody have an example of a musicplayer done with phonegap?

I would like a player with just some controls, play, pause and next.

And a playlist of .mp3s files.

Thanks!

网友答案:

store your music list in sqldb engine of HTML5. do add, update, delete operation on list and show that list on screen in combobox or any other self created control,

select the song from combo-box and give the url of song to audio tag of HTML5, it will play music for you.

<audio src="your list item's(mp3 file) path(local or server url)" controls="controls">
<!--If your borwser does not support HTML5.-->
<!--then browser does not support the audio element.-->
</audio>
网友答案:

I'm assuming this is for mobile as you're using PhoneGap. I wrote a tutorial for PhoneGap Media API and jQuery Mobile app that does what you mentioned (for Android, but code should be cross-platform). Not sure if html5 audio element worked for you.

网友答案:

please go through this Link, and you will get how to install the media players on phone-gap.

网友答案:

Audio Player which will play music

http://www.w3schools.com/html/html5_audio.asp

it will support in phonegap.

网友答案:

I found these pretty good tutorials/examples:

  • Ionic Framework, Cordova and File API – A Media Player App

  • Build an AudioPlayer with PhoneGap: Application Setup

  • Hack a Mobile Music Application With Angular

相关阅读:
Top