siddhesh-tamhanekar / media_player

An flutter media player to make media streaming apps effortlessly! read getting started tutorial on https://medium.com/@tamhanekar.siddhesh95/integrate-media-player-into-your-flutter-application-23040213f0c9
MIT License
46 stars 22 forks source link

buffering is not working when playing m3u8 format file. #12

Open zzsoszz opened 5 years ago

zzsoszz commented 5 years ago

buffering is not working when playing m3u8.and how use cache in it?

player.valueNotifier.value.isBuffering  always false
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)
I/flutter ( 4182): VideoPlayerValue(duration: 18:10:56.167000, size: Size(0.0, 0.0), position: 0:00:36.230000, buffered: [DurationRange(start: 0:00:00.000000, end: 0:00:00.000000)], isPlaying: false, isLooping: false, isBuffering: falsevolume: 1.0, source: Instance of 'Playlist', loading: false, index: 0, errorDescription: null)isFullScreen: false)