Java Code Examples for android.media.MediaPlayer.OnErrorListener

The following examples show how to use android.media.MediaPlayer.OnErrorListener. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: BotLibre   Source File: ChatActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 2
Source Project: BotLibre   Source File: AvatarTestActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 3
Source Project: BotLibre   Source File: AvatarMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 4
Source Project: BotLibre   Source File: VideoView.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void setOnErrorListener(OnErrorListener listener) {
	System.out.println("OnErrorList...");
	Platform.runLater(new Runnable() {
		@Override
		public void run() {
			try {
				if (mediaPlayer != null) {
					mediaPlayer.stop();
				}
			} catch (Exception e) {
				System.out.println("SetOnErrorListener\nError Player Video: " + e.toString());
			}
		}
	});
}
 
Example 5
Source Project: BotLibre   Source File: ChatActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 6
Source Project: BotLibre   Source File: ChatActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 7
Source Project: BotLibre   Source File: WarActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener2() {
	video2View.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 8
Source Project: BotLibre   Source File: AvatarTestActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 9
Source Project: BotLibre   Source File: AvatarMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 10
Source Project: BotLibre   Source File: GraphicMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 11
Source Project: BotLibre   Source File: ChatActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 12
Source Project: BotLibre   Source File: WarActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener2() {
	video2View.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 13
Source Project: BotLibre   Source File: AvatarTestActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 14
Source Project: BotLibre   Source File: AvatarMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 15
Source Project: BotLibre   Source File: GraphicMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 16
Source Project: BotLibre   Source File: ChatActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 17
Source Project: BotLibre   Source File: WarActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener2() {
	video2View.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 18
Source Project: BotLibre   Source File: AvatarTestActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 19
Source Project: BotLibre   Source File: AvatarMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 20
Source Project: BotLibre   Source File: GraphicMediaActivity.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void resetVideoErrorListener() {
	videoView.setOnErrorListener(new OnErrorListener() {
		@Override
		public boolean onError(MediaPlayer mp, int what, int extra) {
			Log.wtf("Video error", "what:" + what + " extra:" + extra);
			videoError = true;
			return true;
		}
	});
}
 
Example 21
Source Project: BotLibre   Source File: VideoView.java    License: Eclipse Public License 1.0 5 votes vote down vote up
public void setOnErrorListener(OnErrorListener listener) {
	System.out.println("OnErrorList...");
	Platform.runLater(new Runnable() {
		@Override
		public void run() {
			try {
				if (mediaPlayer != null) {
					mediaPlayer.stop();
				}
			} catch (Exception e) {
				System.out.println("SetOnErrorListener\nError Player Video: " + e.toString());
			}
		}
	});
}
 
Example 22
public void setOnErrorListener(OnErrorListener l) {
}
 
Example 23
Source Project: letv   Source File: VideoViewH264m3u8.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 24
Source Project: letv   Source File: VideoViewH264LeMobile.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 25
Source Project: letv   Source File: VideoViewH264m3u8Hw.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 26
Source Project: letv   Source File: VideoViewH264m3u8HwLeMobile.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 27
Source Project: letv   Source File: VideoViewH264mp4.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 28
Source Project: letv   Source File: VideoViewTV.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 29
Source Project: letv   Source File: VideoViewH264m3u8_4D.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}
 
Example 30
Source Project: letv   Source File: VideoViewH264LeMobile_4D.java    License: Apache License 2.0 4 votes vote down vote up
public void setOnErrorListener(OnErrorListener l) {
    this.mOnErrorListener = l;
}