-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am just wondering if audio_service can work with url_audio_stream? #298
Comments
I figure out how to implement it and it works with url_audio_stream :) |
Can you provide an example? I would like to do the same |
|
which one? I need to stream im background so if you did it i would like to know |
I am still doing my research what package should I use. I am facing a lot of problems with HTTPS live streaming with m3u8 format. :( |
I got it to work, i used just_audio (because thats what is used in the example as the AudioPlayer), and added the stream url with the setUrl audio as normal, the url im using is https://live.paineldj.com.br/proxy/ocpfm?mp=/stream, I run the AudioService.start on the initState and I start the stream on the onStart method of my BackgroundTask with the play method (I also set the url on this method) |
That's great :) |
I don't have any experience with |
Thank you, I am using a url without that format and It works pretty well with just_audio and audio_service. |
Do you mean that m3u8 streams work on Android without adding the "#.m3u8" hint? If so, I would be curious to know which version of Android are you using? |
No, I am using another package to parse m3u url and get the http url. My link ended with m3u, and it does not work on android 28. |
That's OK, I was probably not clear with my comment either. My comment above about adding the "#.m3u8" hint was specific to the Android implementation of this plugin ( |
I tried it but it did not work on my case. My link ended something like this "any&m=m3u" I found this package M3U format parser and it works. I couldn't find another way to handle |
Would you mind sharing the full link? If ending the link like "any&m=m3u#.m3u8" doesn't work, then it's a bug I'd like to know about so I can fix it. |
Here it is |
I've just checked upstream and ExoPlayer currently supports m3u8 but not m3u. There's an open issue here: But yes, the only way for now is to use your own parser for m3u. |
Thank you for your help :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
I am just wondering if audio_service can work with url_audio_stream?
I tried to implement a streaming radio url with just_audio but the url does not work and if I tried to implement the audio service with this other package "url_audio_stream" neither work.
More specific ... the problem is how can I implement the MediaItem for ios control center ... :(
I am newbie with Flutter and it is a little hard to follow the api info and the samples does not work for my case. Anyone can help me or give an idea how to implement this?
The text was updated successfully, but these errors were encountered: