Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
- Log.d(VideoDetailActivity.class.getName(),"onPlayerStateChanged:"+playbackState);
- if (playbackState == Player.STATE_ENDED) {
- Log.d(VideoDetailActivity.class.getName(),"video ended");
- //player.seekTo(0);
- //player.setPlayWhenReady(false);
- showRatingDialog();
- }
- }
- When uncommenting above two lines to set my videoplayer again to its zero position then STATE_ENDED is again getting fired.
- How to avoid this
Add Comment
Please, Sign In to add comment