Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public void OnVideoStarted()
 {
     PlayerState = "VIDEO_STARTED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Ejemplo n.º 3
0
 public void OnVideoEnded()
 {
     PlayerState = "VIDEO_ENDED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Ejemplo n.º 4
0
 public void OnLoading()
 {
     PlayerState = "LOADING";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Ejemplo n.º 5
0
 public void OnLoaded(string p0)
 {
     PlayerState = String.Format("VIDEO LOADED");
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Ejemplo n.º 6
0
 public void OnPrevious()
 {
     PlayerControlsActivity.Log("PREVIOUS VIDEO");
 }
Ejemplo n.º 7
0
 public void OnAdStarted()
 {
     PlayerState = "AD_STARTED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log(PlayerState);
 }
Ejemplo n.º 8
0
 public void OnNext()
 {
     PlayerControlsActivity.Log("NEXT VIDEO");
 }
Ejemplo n.º 9
0
 public void OnPlaylistEnded()
 {
     PlayerControlsActivity.Log("PLAYLIST ENDED");
 }
Ejemplo n.º 10
0
 public void OnStopped()
 {
     PlaybackState = "STOPPED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tSTOPPED");
 }
Ejemplo n.º 11
0
 public void OnSeekTo(int p0)
 {
     PlayerControlsActivity.Log(String.Format("\tSEEKTO: ({0}/{1})",
                                              PlayerControlsActivity.FormatTime(p0),
                                              PlayerControlsActivity.FormatTime(PlayerControlsActivity.Player.DurationMillis)));
 }
Ejemplo n.º 12
0
 public void OnPlaying()
 {
     PlaybackState = "PLAYING";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tPLAYING " + PlayerControlsActivity.GetTimesText());
 }
Ejemplo n.º 13
0
 public void OnPaused()
 {
     PlaybackState = "PAUSED";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\tPAUSED " + PlayerControlsActivity.GetTimesText());
 }
Ejemplo n.º 14
0
 public void OnBuffering(bool p0)
 {
     BufferingState = p0 ? "(BUFFERING)" : "";
     PlayerControlsActivity.UpdateState();
     PlayerControlsActivity.Log("\t\t" + (p0 ? "BUFFERING " : "NOT BUFFERING ") + PlayerControlsActivity.GetTimesText());
 }