Honk Posted November 11, 2023 Share Posted November 11, 2023 Poweramp seems to ignore launched Android intents with audio mime types, for example launching intent where data is direct web URL and mimetype of "audio/flac" does not show Poweramp as potential app to use and immediately plays the audio in my phone's built in music player. Link to comment Share on other sites More sharing options...
maxmp Posted November 12, 2023 Share Posted November 12, 2023 @Honk thanks for the request. Poweramp supports playing online streams, which can be in any format, including flac, as for direct intents with urls, how exactly do you get them - what app do you use to initiate such intent? Thanks! Link to comment Share on other sites More sharing options...
andrewilley Posted November 12, 2023 Share Posted November 12, 2023 It's also worth checking to make sure that the direct web URL is playable at all. Copy the full URL text (in the form "http://domain/path/filename.flac") and paste it into Poweramp's 'Add URL' prompt, which can be found in the three-dots context menu in Library=>Streams. Does your newly added link play directly from the Streams category? Andre Link to comment Share on other sites More sharing options...
Honk Posted November 25, 2023 Author Share Posted November 25, 2023 On 11/12/2023 at 2:28 PM, maxmp said: @Honk thanks for the request. Poweramp supports playing online streams, which can be in any format, including flac, as for direct intents with urls, how exactly do you get them - what app do you use to initiate such intent? Thanks! I am calling the intent like this (Flutter Dart): AndroidIntent intent = AndroidIntent( action: "android.intent.action.VIEW", data: link, // public direct download link with no Auth type: mime, // mimeType ); await intent.launch(); This automatically opens the device default music player, instead allowing me to select which one I would like to use (as for example Solid Explorer). If I force to open intent using specific package, Poweramp opens and plays the music just fine: AndroidIntent intent = AndroidIntent( action: "android.intent.action.VIEW", data: link, type: mime, package: (mime?.startsWith("audio") ?? false) ? "com.maxmpz.audioplayer" : null, // here forcing to use Poweramp ); await intent. launch(); The direct URL looks like this: https://cloud.seafile.com/files/adee6094/foo.flac Its not encrypted, no aurh required. Its probably issue on my side (calling the intent wrong). Would you please spare some time and tell me about it please? Link to comment Share on other sites More sharing options...
andrewilley Posted November 30, 2023 Share Posted November 30, 2023 Does the URL itself work if you have entered it manually into the 'Add URL' option in the Streams category? Can you give an actual online URL for a file that you are using for testing? Andre Link to comment Share on other sites More sharing options...
Honk Posted December 11, 2023 Author Share Posted December 11, 2023 On 11/30/2023 at 1:27 AM, andrewilley said: Does the URL itself work if you have entered it manually into the 'Add URL' option in the Streams category? Can you give an actual online URL for a file that you are using for testing? Andre Here a link: https://seafile.rostislavkaleta.dev/seafhttp/files/2155f950-d09a-4c8e-a80b-1f5d17cb4b45/06. Freya Ridings - Castles.flac And Yes, if I enter it manually in Poweramp, it works. Should be available to you, let me know, I am not sure if it's a temp link or "perma" link. Link to comment Share on other sites More sharing options...
andrewilley Posted December 11, 2023 Share Posted December 11, 2023 @Honk Link does not work remotely, needs some sort of access token authorisation. I Googled an openly available online FLAC test file, and found something like this: http://www.hyperion-records.co.uk/audiotest/1 Sullivan The Lost Chord, Seated one day at the organ.FLAC . This streams fine using Poweramp's 'Add URL' feature, which as a Library-based player is the normally intended method of handling it. I'm not sure how this ought to be flagged in terms of available apps to play it though, as it's a web link I think I would expect a browser to be offered. Andre Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now