woric Posted April 21, 2013 Share Posted April 21, 2013 Is it possible to start playing an m3u playlist using the API?I have tried using the example code and it skips to the next track in the current playlist,woricPS: Opening an m3u file from any other external application (which Poweramp claims to handle) also does the same thing. Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/ Share on other sites More sharing options...
andrewilley Posted April 21, 2013 Share Posted April 21, 2013 Hmm, what music files does the m3u playlist point to? I assume they would be within locations that are already defined in Poweramp's Music Folders list, but I could be wrong.Andre Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/#findComment-18100 Share on other sites More sharing options...
maxmp Posted May 16, 2013 Share Posted May 16, 2013 Yes, provided that Poweramp have scanned directory with such playlists (happens on startup, but if user deactivated the scanning option, it won't happen automatically). Such playlists have the appropriate playlist id and are in the same /playlists table as other playlists (Poweramp fills the database table with file based playlist entries on first playlist "open" action, either for playlist song list or for playing). Thanks! Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/#findComment-18445 Share on other sites More sharing options...
woric Posted June 1, 2013 Author Share Posted June 1, 2013 Thanks for the replies, but unfortunately they both did not help because my question wad not clear enough. I have written a small application that generates valid M3U files and I currently use Poweramp to listen to the playlists by going to the list of "file based playlists" in Poweramp and selecting a playlist.However, I would prefer to select the playlist by either a) using an intent to launch the M3U playlist by opening a file or creating a shortcut, or adding a button to my application to have Poweramp play the playlist.Poweramp indicates that it accepts intents for M3U files, but fails when passed the intent.My question is... can anyone point me in the right direction on how to launch a file based playlist using the external API? I am happy to write the code from first principles, but the code in the example application does not work with file based playlists. Thanks in advance. Woric Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/#findComment-18674 Share on other sites More sharing options...
flyingdutchman Posted November 14, 2013 Share Posted November 14, 2013 Woric,I have the same interest and am looking for this functionality too. So far I understand that you declare the provider type in the manifest.xml file. I have previoulsy managed to launch the stock android player presenting the playlists but have not managed to make it start playing a playlist.If and when I manage to do this, I will share on the forum. Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/#findComment-20726 Share on other sites More sharing options...
flyingdutchman Posted July 27, 2014 Share Posted July 27, 2014 I made some progress. Unfortunately it looks like Poweramp does not handle this intentI have posted some code here:http://forum.powerampapp.com/index.php?/topic/6381-how-to-launch-Poweramp-from-another-andoid-app-into-playing-an-m3u-playlist/ Link to comment https://forum.powerampapp.com/topic/4662-starting-a-m3u-playlist/#findComment-24361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.