Closed vishwa11 closed 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?
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
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
That url works well on my Xiaomi note4.
You can see in source code
code -38 will not influecnt play video so I ignore it.
If first time play well, you can check onComplete(), if some code in onComplete() let reopen video error.
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