Java Code Examples for android.media.MediaPlayer#OnInfoListener
The following examples show how to use
android.media.MediaPlayer#OnInfoListener .
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 check out the related API usage on the sidebar.
Example 1
Source File: VideoView.java From Spectaculum with Apache License 2.0 | 4 votes |
public void setOnInfoListener(MediaPlayer.OnInfoListener l) { this.mOnInfoListener = l; }
Example 2
Source File: PlayerControllerTest.java From twitter-kit-android with Apache License 2.0 | 4 votes |
private void verifyOnInfoListener(MediaPlayer.OnInfoListener listener) { listener.onInfo(null, MediaPlayer.MEDIA_INFO_BUFFERING_START, 0); verify(videoProgressView).setVisibility(View.VISIBLE); listener.onInfo(null, MediaPlayer.MEDIA_INFO_BUFFERING_END, 0); verify(videoProgressView).setVisibility(View.GONE); }
Example 3
Source File: ScalableVideoView.java From Android-ScalableVideoView with Apache License 2.0 | 4 votes |
public void setOnInfoListener(@Nullable MediaPlayer.OnInfoListener listener) { mMediaPlayer.setOnInfoListener(listener); }
Example 4
Source File: DSL.java From anvil with MIT License | 4 votes |
public static Void onInfo(MediaPlayer.OnInfoListener arg) { return BaseDSL.attr("onInfo", arg); }
Example 5
Source File: UniversalVideoView.java From LLApp with Apache License 2.0 | 2 votes |
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param l The callback that will be run */ public void setOnInfoListener(MediaPlayer.OnInfoListener l) { mOnInfoListener = l; }
Example 6
Source File: AssetVideoView.java From ResearchStack with Apache License 2.0 | 2 votes |
/** * Register a callback to be invoked when an informational event occurs during playback or * setup. * * @param l The callback that will be run */ public void setOnInfoListener(MediaPlayer.OnInfoListener l) { mOnInfoListener = l; }
Example 7
Source File: NativeTextureVideoView.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param listener The callback that will be run */ public void setOnInfoListener(@Nullable MediaPlayer.OnInfoListener listener) { delegate.setOnInfoListener(listener); }
Example 8
Source File: NativeSurfaceVideoView.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param listener The callback that will be run */ public void setOnInfoListener(@Nullable MediaPlayer.OnInfoListener listener) { delegate.setOnInfoListener(listener); }
Example 9
Source File: NativeVideoDelegate.java From ExoMedia with Apache License 2.0 | 2 votes |
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param listener The callback that will be run */ public void setOnInfoListener(@Nullable MediaPlayer.OnInfoListener listener) { onInfoListener = listener; }
Example 10
Source File: MediaVideoViewOld.java From Slide with GNU General Public License v3.0 | 2 votes |
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param l The callback that will be run */ public void setOnInfoListener(MediaPlayer.OnInfoListener l) { mOnInfoListener = l; }