Code example for MediaPlayer.OnErrorListener

Methods: onError

0
                mMediaController.hide(); 
            } 
 
            /* If an error handler has been supplied, use it and finish. */ 
            if (mOnErrorListener != null) { 
                if (mOnErrorListener.onError(mMediaPlayer, framework_err, impl_err)) { 
                    return true; 
                } 
            } 
 
			/* If we get here, there is no onError listener, so 
			 * at least inform them that the video is over. 
			 */ 
			if (mOnCompletionListener != null) { 
				mOnCompletionListener.onCompletion(mMediaPlayer); 
			} 
            return true; 
        } 
    }; 
 
    private MediaPlayer.OnBufferingUpdateListener mBufferingUpdateListener =