ksvc / KSYMediaPlayer_Android

金山云Android播放SDK(KSYUN Live Streaming player SDK),支持RTMP HTTP-FLV HLS 协议(supporting RTMP HTTP-FLV HLS protocol),直播延时2-3秒(Living delay 2 or 3 seconds),supporting jitter control,software&hardware decode
http://v.ksyun.com/
Apache License 2.0
853 stars 246 forks source link

android播放flv时,使用seek的方法以后,经常会出现加载一段时间后,报-1004错误 #175

Open xxx1012 opened 6 years ago

xxx1012 commented 6 years ago

网络好或者差都会出现

FirmianaRain commented 6 years ago

https://github.com/ksvc/KSYMediaPlayer_Android/wiki/timeout 麻烦先看下这个Wiki,超时阈值设置的是多少呢 如果方便可以提供一个flv视频地址供我们分析吗

xxx1012 commented 6 years ago

超时阈值我没有进行设置,所以应该是默认值

FirmianaRain commented 6 years ago

我看了下,在读超时为30s时,seek之后确实哟30s没读到数据,然后报错-1004退出了 你换个cdn试试

image

xxx1012 commented 6 years ago

只能通过换cdn试吗?播放器本身可以怎么设置吗?调大超时阈值?

xxx1012 commented 6 years ago

因为在相同环境下,mp4是没有问题的,flv就会出现这个情况,所以我觉得是不是播放器本身对flv支持的不太好?

xxx1012 commented 6 years ago

dengchu817 commented 6 years ago

@xxx1012 你的flv文件没有索引信息,seek 操作会有问题,你可以转成mp4