Open gaoyong06 opened 4 years ago
我也碰到这个问题。 还有播放结束后再次点击播放出现:stream 1, offset 0x13807e: partial file
我也碰到了这个异常信息,不过场景是断网后观看完缓冲数据提示的,在监听事件中即使再次调用播放方法也不能继续播放,会提示: I/flutter ( 9753): ####LogUtil#### i ----playOrPause state FijkState.error I/flutter ( 9753): [err] 2020-12-14 10:33:05.393286 [fijk] FijkPlayer{id:2} invoke start invalid state:FijkState.error E/flutter ( 9753): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Bad state: call start on invalid state FijkState.error
按照,项目的defaultFijkPanelBuilder示例, 在调用播放,暂停的方法,一直在测试,所以就频繁的在点击,偶尔会出现下面的bug, 视频都很小1分钟左右.
//暂停,播放切换 void _playOrPause() { if (_playing == true) { player.pause(); } else { player.start(); } }
错误日志:
I/flutter (16465): [inf] 2020-05-21 18:20:12.228554 [fijk] FijkPlayer{id:103} invoke start D/IJKMEDIA(16465): IjkMediaPlayer_start D/IJKMEDIA(16465): ijkmp_start() D/IJKMEDIA(16465): ijkmp_start()=0 D/IJKMEDIA(16465): ijkmp_get_msg: FFP_REQ_START I/flutter (16465): [inf] 2020-05-21 18:20:12.241902 [fijk] FijkPlayer{id:103} state changed to FijkState.started <= FijkState.paused I/flutter (16465): 😄监听获取播放器信息 FijkState.started E/IJKMEDIA(16465): av_read_frame error: unknown E/IJKMEDIA(16465): Invalid NAL unit size (50623 > 29244). E/IJKMEDIA(16465): Error splitting the input into NAL units. E/IJKMEDIA(16465): av_read_frame error: unknown E/IJKMEDIA(16465): av_read_frame error: unknown E/IJKMEDIA(16465): av_read_frame error: unknown E/IJKMEDIA(16465): av_read_frame error: unknown I/IJKMEDIA(16465): ffp_toggle_buffering: error: -5 E/IJKMEDIA(16465): av_read_frame error: unknown D/IJKMEDIA(16465): FFP_MSG_ERROR: -5 E/tv.danmaku.ijk.media.player.IjkMediaPlayer(16465): Error (-5,0,I/O error) I/flutter (16465): [err] 2020-05-21 18:20:12.912627 [fijk] FijkPlayer{id:103} errorListerner: FijkException(-5, I/O error) I/flutter (16465): 😄监听获取播放器信息 FijkState.started I/flutter (16465): [inf] 2020-05-21 18:20:12.921052 [fijk] FijkPlayer{id:103} state changed to FijkState.error <= FijkState.started I/flutter (16465): 😄监听获取播放器信息 FijkState.error I/IJKMEDIA(16465): ffp_toggle_buffering: eof I/flutter (16465): [错误] 播放出现错误 exception: I/O error I/flutter (16465): [err] 2020-05-21 18:20:13.382110 [fijk] FijkPlayer{id:103} invoke start invalid state:FijkState.error E/flutter (16465): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Bad state: call start on invalid state FijkState.error E/flutter (16465): I/flutter (16465): [err] 2020-05-21 18:20:14.966820 [fijk] FijkPlayer{id:103} invoke start invalid