papete Posted September 27, 2020 Share Posted September 27, 2020 I need help to start an specific stream via api. My solution so far has been to create a playlist with a single stream and then invoke the playlist via api, but it is not an optimal solution. I've been able to open "a random stream" via the following uri: content://com.maxmpz.audioplayer.data/stream_files?shs=1 but haven't been able to play a specific one. Is there a way via api to achieve what I'm looking for? Thanks Link to comment Share on other sites More sharing options...
maxmp Posted September 27, 2020 Share Posted September 27, 2020 Is stream already imported (or otherwise exists) in Poweramp, or is it new stream uri each time. Poweramp automatically handles incoming m3u(8) uris by importing and playing them. You can directly feed stream URLs (e.g. http://...) to Poweramp via PowerampAPI.Commands.OPEN_TO_PLAY:https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_example/app/src/main/java/com/maxmpz/poweramp/apiexample/MainActivity.java#L640 Link to comment Share on other sites More sharing options...
papete Posted September 28, 2020 Author Share Posted September 28, 2020 Thanks a lot Max, as always Poweramp is equipped with everything. The streams are already imported, I was wondering if there is an internal uri to call. I'm posting here the Tasker intent action to play an URL in case this helps anybody (kudos autormali from reddit): Play Stream Poweramp (978) A1: Send Intent Action:com.maxmpz.audioplayer.API_COMMAND Cat:None Mime Type: Data:url here Extra:cmd:20 Extra: Extra: Package:com.maxmpz.audioplayer Class:com.maxmpz.audioplayer.player.PlayerService Target:Service Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.