jhomlala / betterplayer

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

[BUG] m3u8 Abnormal playback #1068

Open as3635629 opened 2 years ago

as3635629 commented 2 years ago

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: RangeError (millisecondsSinceEpoch): Invalid value: Not in inclusive range -8640000000000000..8640000000000000: 9223372036854733809 E/flutter ( 8615): #0 RangeError.checkValueInInterval (dart:core/errors.dart:300:7) E/flutter ( 8615): #1 DateTime._validateMilliseconds (dart:core-patch/date_patch.dart:63:18) E/flutter ( 8615): #2 new DateTime.fromMillisecondsSinceEpoch (dart:core-patch/date_patch.dart:42:13) E/flutter ( 8615): #3 MethodChannelVideoPlayer.getAbsolutePosition (package:better_player/src/video_player/method_channel_video_player.dart:222:21) E/flutter ( 8615): E/flutter ( 8615): #4 VideoPlayerController._applyPlayPause. (package:better_player/src/video_player/video_player.dart:472:49) E/flutter ( 8615): E/flutter ( 8615): I/AudioTrack( 8615): recheck for pg, sessionid : 265

okmsbun commented 1 year ago

I am also facing the same problem. I'm encountering this issue with some of the broadcasts that have short duration(videoPlayerController?.value.duration) in live broadcasts. I can't catch it with catch.