lipangit / JiaoZiVideoPlayer

MediaPlayer exoplayer ijkplayer ffmpeg
MIT License
10.47k stars 2.42k forks source link

Error issue in some devices #745

Closed vishwa11 closed 7 years ago

vishwa11 commented 7 years ago

In motorola, lenevo, xiaomi when i launch app first time playing live video stream works well. But after closing app and reopening it doesn't play the live video. It gives error. It works well in samsung devices. What is the cause of this please provide me solution as soon as possible. Thank you

lipangit commented 7 years ago

If if works well first time , reopen it will also work well logically. what log? What your video format? Can you show video url?

vishwa11 commented 7 years ago

Following error coming in Huawei at first time playing and also this error come in other device like motorola, lenevo , xioami. But works perfectly in samsung device.

I used following url

http://playertest.longtailvideo.com/adaptive/bbbfull/bbbfull.m3u8

E/MediaPlayer: Java MediaPlayer currentThread is 1695 E/MediaPlayer: error (-38, 0) E/MediaPlayer: prepareAsync called in state 0 E/MediaPlayer: EventHandler handleMessage thread id is 1695 E/MediaPlayer: Error (-38,0) E/JieCaoVideoPlayer: onError -38 - 0 [1105617296] E/PushMonitorLog: mHandler,msg.arg1:178

lipangit commented 7 years ago

That url works well on my Xiaomi note4.

You can see in source code image

code -38 will not influecnt play video so I ignore it.

lipangit commented 7 years ago

If first time play well, you can check onComplete(), if some code in onComplete() let reopen video error.