Esempio n. 1
0
 public JWEventHandler(JWPlayerView jwPlayerView, TextView output)
 {
     mOutput = output;
     jwPlayerView.AddOnSetupErrorListener(this);
     jwPlayerView.AddOnPlaylistListener(this);
     jwPlayerView.AddOnPlaylistItemListener(this);
     jwPlayerView.AddOnPlayListener(this);
     jwPlayerView.AddOnPauseListener(this);
     jwPlayerView.AddOnBufferListener(this);
     jwPlayerView.AddOnIdleListener(this);
     jwPlayerView.AddOnErrorListener(this);
     jwPlayerView.AddOnSeekListener(this);
     jwPlayerView.AddOnTimeListener(this);
     jwPlayerView.AddOnFullscreenListener(this);
     jwPlayerView.AddOnQualityLevelsListener(this);
     jwPlayerView.AddOnQualityChangeListener(this);
     jwPlayerView.AddOnCaptionsListListener(this);
     jwPlayerView.AddOnCaptionsChangeListener(this);
     jwPlayerView.AddOnAdClickListener(this);
     jwPlayerView.AddOnAdCompleteListener(this);
     jwPlayerView.AddOnAdSkippedListener(this);
     jwPlayerView.AddOnAdErrorListener(this);
     jwPlayerView.AddOnAdImpressionListener(this);
     jwPlayerView.AddOnAdTimeListener(this);
     jwPlayerView.AddOnAdPauseListener(this);
     jwPlayerView.AddOnAdPlayListener(this);
     jwPlayerView.AddOnMetaListener(this);
     jwPlayerView.AddOnPlaylistCompleteListener(this);
     jwPlayerView.AddOnCompleteListener(this);
     jwPlayerView.AddOnBeforePlayListener(this);
     jwPlayerView.AddOnBeforeCompleteListener(this);
 }
Esempio n. 2
0
 public KeepScreenOnHandler(JWPlayerView jwPlayerView, Window window)
 {
     jwPlayerView.AddOnPlayListener(this);
     jwPlayerView.AddOnPauseListener(this);
     jwPlayerView.AddOnCompleteListener(this);
     jwPlayerView.AddOnErrorListener(this);
     jwPlayerView.AddOnAdPlayListener(this);
     jwPlayerView.AddOnAdPauseListener(this);
     jwPlayerView.AddOnAdCompleteListener(this);
     jwPlayerView.AddOnAdErrorListener(this);
     mWindow = window;
 }