Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire an event at a particular playback interval. #2653

Closed
rafaeladel opened this issue Apr 5, 2017 · 2 comments
Closed

Fire an event at a particular playback interval. #2653

rafaeladel opened this issue Apr 5, 2017 · 2 comments

Comments

@rafaeladel
Copy link

I'm wondering If there's an ability to fire an event every, say 30 seconds. I've searched in the issues for that and I found issue, that says I should extend TrackRenderer.

I've searched for that class, didn't find it. But I've found MediaCodecAudioRenderer, Is that the class to be extended although I don't see where the event listener to be placed.

Is their a capability or a specific class to override or extend ?

@ojw28
Copy link
Contributor

ojw28 commented Apr 6, 2017

It should be pretty easy to write your own piece of code that looks at the playback position and fires events at specified times. It's not something you need the player to do for you. Having the player do it for you anyway for convenience is tracked by #2189.

@ojw28 ojw28 closed this as completed Apr 6, 2017
@ojw28 ojw28 added the duplicate label Apr 6, 2017
@google google locked and limited conversation to collaborators Aug 5, 2017
@tonihei
Copy link
Collaborator

tonihei commented Nov 28, 2017

We're currently working on this feature to let the player run a callback when it reaches a certain playback position. We would like to have your opinion on some edge cases in #2189 - please let us know what would fit your requirements best.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants