Beispiel #1
0
 public void OnError(YouTubePlayerErrorReason p0)
 {
     PlayerState = "ERROR (" + p0 + ")";
     if (p0 == YouTubePlayerErrorReason.UnexpectedServiceDisconnection)
     {
         // When this error occurs the player is released and can no longer be used.
         PlayerControlsActivity.Player = null;
         //TODO: No Access!
         //setControlsEnabled(false);
     }
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #2
0
 public void OnVideoStarted()
 {
     PlayerState = "VIDEO_STARTED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #3
0
 public void OnVideoEnded()
 {
     PlayerState = "VIDEO_ENDED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #4
0
 public void OnLoading()
 {
     PlayerState = "LOADING";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #5
0
 public void OnLoaded(string p0)
 {
     PlayerState = String.Format("VIDEO LOADED");
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #6
0
 public void OnAdStarted()
 {
     PlayerState = "AD_STARTED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Beispiel #7
0
 public void OnStopped()
 {
     PlaybackState = "STOPPED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tSTOPPED");
 }
Beispiel #8
0
 public void OnPlaying()
 {
     PlaybackState = "PLAYING";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tPLAYING " + PlayerControlsActivity.GetTimesText());
 }
Beispiel #9
0
 public void OnPaused()
 {
     PlaybackState = "PAUSED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tPAUSED " + PlayerControlsActivity.GetTimesText());
 }
Beispiel #10
0
 public void OnBuffering(bool p0)
 {
     BufferingState = p0 ? "(BUFFERING)" : "";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\t\t" + (p0 ? "BUFFERING " : "NOT BUFFERING ") + PlayerControlsActivity.GetTimesText());
 }