Is there a way to find out whether the user saw the whole video or not .. I want to update my database If the user sees the whole video please help with this PS: I do not really care that the user left the end or saw the whole thing.
I found a way to use the following listener, the method I was looking for was video-indented () Was on.
Private PlayStat Change Change Player PlayStat Change Listener = New PlayerState Change Listener {@ Override {@Override Public Zero (Starred) @ Override Public Wide On Array (Error Reason RGR) {} @ Override Public Wide On Loaded (String AGR) @} Override Public Wide On Loading (@ {@} Override Public Wide On VideoInded () @} Override On Public Wide On Video Starred () {}};
And then on the method (provider provider, YouTubePlayer player, Boolean was restored) just add the player to the above listener:
player SetPlayerStateChangeListener (playerStateChangeListener);
I hope this helps :)
No comments:
Post a Comment