Add configurable progress listener #6504
Comments
As you already said, just use a regular running task to retrieve
The
I don't understand this. |
|
We get this question from time to time - so I'll mark as an enhancement to add such a listener to ExoPlayer. The main benefit of us implementing this callback is that we can better align it with certain media times (e.g. always send at at a full media second). This callback needs to be configurable for how often it's called and at what playback rate (e.g. rate: every 500ms of media and/or every 2 seconds, or similar). |
I know the |
|
Thanks for explaining. That kind of problem would be solved by a listener provided by us. |
|
Any updates on this? |
|
@tonihei Do you have any idea what are all the info need to be provided in the listener ? Do you wants to be this as a separate listener ?. If I am clear in the requirement I can implement this. |
We haven't discussed detailed requirements yet (mostly around configuration options). The actual implementation needs to check whether to trigger the callbacks from |
I already look in the code, documentation and search in stack overflow.
I see the
PlayerControlViewhaveProgressUpdateListenerinterface which similar that what I need. But not sure how to use it or can even use itI wanted to have a
player.currentPositionlistener for my playerBut I'm not sure how to do it.
So far I just use
Handler()andRunnable()to get thecurrentPositionbut it is not accurate since the start of theRunnable()can be out of sync with the played videoIs there any kind of function or workaround for this?
The text was updated successfully, but these errors were encountered: