jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
920 stars 983 forks source link

Cannot seek in live streams [BUG] #1102

Open RobertoPelonara opened 1 year ago

RobertoPelonara commented 1 year ago

Describe the bug Using the time bar during a live stream it's not possible to seek a moment before or after the current position even if the manifest could actually return previous segments.

To Reproduce Steps to reproduce the behavior:

  1. Setup the player with a live stream such as (https://stream.mux.com/v69RSHhFelSm4701snP22dYz2jICy4E4FUyk02rW4gxRM.m3u8)
  2. enable control bar (I use a custom widget with control bar always visible) by setting "isLiveStream" to false in controller
  3. Wait 20 sec and seek 20 sec prior
  4. You'll see the live and not 20 sec prior

*Example code .... _controller = BetterPlayerController( BetterPlayerConfiguration( betterPlayerDataSource: BetterPlayerDataSource( BetterPlayerDataSourceType.network, "https://stream.mux.com/v69RSHhFelSm4701snP22dYz2jICy4E4FUyk02rW4gxRM.m3u8" liveStream: false ), );

Expected behavior If I skip or drag the control bar I should be able to go back in time to a previous time

arslancb commented 1 year ago

~+1~

Working Fine in Android, Does not work in iOS