flutter_sound
flutter_sound copied to clipboard
[enh] Play from Remote Stream
I need Help for :
- Using the API
Here is my question :
I'm trying to playback audio from an hls (.m3u8 / ts) stream url. I've tried the AAC ADTS codec which looks to be the correct codec but it appears to get stuck on the convert. Am I barking up the wrong tree or is mpegts / hls a supported format?
flutter: FS:---> openAudioSession flutter: FS:---> channelMethodCallHandler : openAudioSessionCompleted flutter: FS:<--- channelMethodCallHandler : openAudioSessionCompleted flutter: FS:<--- openAudioSession flutter: FS:---> startPlayer flutter: FS:---> stop flutter: FS:<--- stop flutter: FS:---> _convert flutter: FS:---> needToConvert flutter: FS:<--- needToConvert flutter: FS:<--- _convert --- gets stuck here with no playback
Here's my flutter doctor: [✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.4 19E287, locale en-US) [✓] Xcode - develop for iOS and macOS (Xcode 12.1) [✓] Android Studio (version 4.0) [✓] Android Studio (version 4.0) [✓] IntelliJ IDEA Community Edition (version 2020.2.3) [✓] Connected device (1 available)
No,
flutter: FS:<--- _convert
means that Flutter Sound correctely left _convert()
.
What is the URL of your stream ? Android or iOS ?
$ pub deps | grep flutter_sound
M3U
is actually not supported by flutter sound. Maybe later ? ...
Gotcha. That is what I figured. direct .ts file support looked like it worked but in order to read an hls stream we need the player to be able to read .m3u8 files directly so that it can point to the .ts file location. Let me see if I can take a stab at writing the ios/swift side of this.
Registered in the Flutter Sound Project
Ref [#501]
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.