flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[enh] Play from Remote Stream

Open piano375 opened this issue 4 years ago • 6 comments

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)

piano375 avatar Oct 30 '20 00:10 piano375

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

Larpoux avatar Oct 30 '20 09:10 Larpoux

M3U is actually not supported by flutter sound. Maybe later ? ...

Larpoux avatar Oct 30 '20 09:10 Larpoux

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.

piano375 avatar Nov 02 '20 20:11 piano375

Registered in the Flutter Sound Project

Larpoux avatar Dec 28 '20 09:12 Larpoux

Ref [#501]

Larpoux avatar Dec 28 '20 09:12 Larpoux

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.

github-actions[bot] avatar Dec 21 '23 01:12 github-actions[bot]