befovy / fijkplayer

ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer
https://fijkplayer.befovy.com
MIT License
1.65k stars 354 forks source link

[BUG] 视频播放到30分钟左右 就提示播放失败 #539

Open Wisdozzh opened 2 years ago

Wisdozzh commented 2 years ago

Describe the bug A clear and concise description of what the bug is. 下载最新的项目 在里面更换视频地址 http://hw-cdn.ireadabc.com/fa1addf941259a06046de31082fdad95_l.mp3 缓存到30分钟左右就不继续缓存了,播放到30分钟就报错

W/HiTouch_PressGestureDetector(16293): Touch pointer move a lot. The moving distance of X is:64.0, limit is:60The moving distance of Y is:5.0, limit is:60 I/flutter (16293): 视频进度: == 141s,(141081), 总时长: 4768s,(141081) I/flutter (16293): seek to 1643779.7756246438 I/flutter (16293): [inf] 2022-09-12 13:58:13.520902 [fijk] FijkPlayer{id:2} invoke seekTo msec:1643779 D/IJKMEDIA(16293): IjkMediaPlayer_seekTo D/IJKMEDIA(16293): ijkmp_seek_to(1643779) D/IJKMEDIA(16293): ijkmp_seek_to(1643779)=0 D/IJKMEDIA(16293): ijkmp_get_msg: FFP_REQ_SEEK E/IJKMEDIA(16293): Stream ends prematurely at 2382404, should be 38147199 D/IJKMEDIA(16293): ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE D/IJKMEDIA(16293): FFP_MSG_SEEK_COMPLETE: E/IJKMEDIA(16293): av_read_frame error: unknown D/IJKMEDIA(16293): FFP_MSG_AUDIO_SEEK_RENDERING_START: I/IJKMEDIA(16293): ffp_toggle_buffering: error: -5 E/IJKMEDIA(16293): av_read_frame error: unknown D/IJKMEDIA(16293): FFP_MSG_ERROR: -5 E/tv.danmaku.ijk.media.player.IjkMediaPlayer(16293): Error (-5,0,I/O error) I/flutter (16293): [err] 2022-09-12 13:58:13.690596 [fijk] FijkPlayer{id:2} errorListener: FijkException(-5, I/O error) I/flutter (16293): ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I/flutter (16293): ++++++++ 是否开始播放 => true ++++++++ I/flutter (16293): +++++++++++++++++++ 播放器状态 => FijkState.started ++++++++++++++++++++ I/flutter (16293): ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I/flutter (16293): [inf] 2022-09-12 13:58:13.705291 [fijk] FijkPlayer{id:2} state changed to FijkState.error <= FijkState.started I/flutter (16293): FijkException(-5, I/O error) I/flutter (16293): ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I/flutter (16293): ++++++++ 是否开始播放 => false ++++++++ I/flutter (16293): +++++++++++++++++++ 播放器状态 => FijkState.error ++++++++++++++++++++ I/flutter (16293): ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I/IJKMEDIA(16293): ffp_toggle_buffering: eof I/flutter (16293): false

根据日志我分析,是因为播放到没有缓存的时候,就报错了

yjt1216 commented 1 year ago

你能播放30分钟还不错,我这20分钟的视频 只播放了17分钟

yjt1216 commented 1 year ago

我切换播放插件了

vinurs commented 1 year ago

我切换播放插件了

切换成啥了,这个库好像都一年没维护了,估计放弃了

yjt1216 commented 1 year ago

我切换播放插件了

切换成啥了,这个库好像都一年没维护了,估计放弃了

video_player flutter 基本就是这两个播放器,我暂时用的 better_player 安卓基于exoplayer 有些视频播放会 丢帧或花屏之类的