-
Notifications
You must be signed in to change notification settings - Fork 380
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
Playback state callback #257
Comments
I've been thinking about the best way to achieve a good solution for this and have finally come to a conclusion. In Since then I have spent the time to play around on my own branch to determine what states would be useful which are listed below; I'm still not 100% convinced all the states listed are necessary (e.g. PlaybackState.IDLE,
PlaybackState.PREPARING,
PlaybackState.BUFFERING,
PlaybackState.SEEKING,
PlaybackState.READY,
PlaybackState.PLAYING,
PlaybackState.PAUSED,
PlaybackState.COMPLETED,
PlaybackState.STOPPED,
PlaybackState.RELEASED,
PlaybackState.ERROR Because of this there is quite a bit of work in mapping the states from the |
So what is the current situation with this issue ? I have a working video player with google ima sdk for video ads and uses the version 2.5.6. But as you know that version has other issues and bugs. I want to upgrade to the latest version of this library but I really need the state changes for video ad stuff. Do you think that the state change listener could be added soon or should I try something else. Thanks. @brianwernick |
I haven't had a lot of time to work on OSS projects lately; however I'm hoping that I will have enough time in the next month to perform a 4.1 release to include these callbacks but can't promise anything. If it's something you have time to do I'm always open to PR's |
@brianwernick Ok I will try to work on it, I think I can overcome my needs but not sure that will be as good as to merge it :) |
…yers use instead of the MediaPlayer directly. This allows us to better standardize handling and keep track of playback state (useful for #257; playback state callback)
Include the following:
3.0.0
6.0
LG
Nexus 5x
I used to get the the playback state in version 2.5.6 through the ExoPlayer listener. In the newer version 3.0.0 the addExoPlayerListener method is removed and I cannot access the playback state. the new PlayList core that you have added also doesn't work as it is supposed to be. when the playback is paused when the player is buffering, onPlaybackStateChanged is not called.
what is the best way to access in playback state at the moment.
The text was updated successfully, but these errors were encountered: