ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Getting frame Number that is currently being drawn

Open wingoku opened this issue 10 years ago • 2 comments

I am trying to find the frame number that is currently being drawn on the surfaceview. Currently the method I am using is calculating the current frame number from the current positoin of the player. However this method fails if the user seeks to some X position, at that point the currentPosition returned by the player and the frame that is currently rendered on the frame goes out of sync because the frame (at the seeked position) is rendered after a few seconds and till that time the old frame is being shown.

Anyway to get the exact frame number that is being drawn on the surface View?

wingoku avatar Jan 31 '15 15:01 wingoku

Unless a very specific question, I suggest you move your question to the google exoplayer repository. I am progressively giving up support for this repository as Google has introduced HLS support in their repo.

martinbonnin avatar Feb 02 '15 09:02 martinbonnin

@martinbonnin I have filed an issue there.

PS: I need your opinion and/or suggestions on a matter related to MediaPlayer.

I am using MediaPlayer to render a streamed video on SurfaceView. MediaController is being used to provide seek, play/pause controls to the user. The problem is if the user seeks the video, the whole UI becomes unresponsive.

I have tried various methods to resolve this method, one of them was to use MediaController code and modify it to send play/pause calls on a handler thread to the MediaPlayer. However this didn't resolve the issue either. Any suggestions or hacks you can suggest?

wingoku avatar Feb 03 '15 07:02 wingoku