question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add configurable progress listener

See original GitHub issue

I already look in the code, documentation and search in stack overflow. I see the PlayerControlView have ProgressUpdateListener interface which similar that what I need. But not sure how to use it or can even use it

I wanted to have a player.currentPosition listener for my player But I’m not sure how to do it.

So far I just use Handler() and Runnable() to get the currentPosition but it is not accurate since the start of the Runnable() can be out of sync with the played video

Is there any kind of function or workaround for this?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
toniheicommented, Oct 3, 2019

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).

2reactions
toniheicommented, Oct 3, 2019

Thanks for explaining. That kind of problem would be solved by a listener provided by us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating ProgressBar using custom listener (interfaces)
I have a ProgressBar object in my View. This progress bar will be updated via a Listener, which will be written as a...
Read more >
Custom Progress Bar in Android - DigitalOcean
Custom progress bar in android application gives it a personal touch. In this tutorial, we'll create a custom progress bar by implementing a ......
Read more >
How to create a Custom Progress Bar - freeCodeCamp
For this we'll need to loop over all the .progress elements (in our example is only one, but you can add multiple ones...
Read more >
React: How to create a custom progress bar component in 5 ...
Add styling. Just for the sake of this tutorial, for styling, I'm going to use pure inline CSS. Another option would be to...
Read more >
Create custom Horizontal ProgressBar in android studio
Custom progress bar in android application gives it a personal touch. In This Video you will learn how you can create a custom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found