tcking / GiraffePlayer2

out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
Apache License 2.0
377 stars 110 forks source link

E/MediaPlayerNative: Attempt to call getDuration in wrong state: mPlayer=0x0, mCurrentState=0 #147

Open HazimSharif opened 5 years ago

HazimSharif commented 5 years ago

Hello Tom,

I'm getting message "something error" in below cases:

1- when player start, and user seek forward or backward while video is still loading. 2- when user pause video, go to home screen or some other activity, then go back to player 3- while video is playing, go to home screen or other activity, then go back to player (sometimes play normally, and sometime show the error)

From log i see this error : "E/MediaPlayerNative: Attempt to call getDuration in wrong state: mPlayer=0x0, mCurrentState=0"

And when i click play button if showing "something error", the audio starts with black screen.

Please advise

Thank you

tcking commented 5 years ago

can you give me the full log,the Attempt to call getDuration in wrong state is not the key log of "something error"