Java Code Examples for android.media.MediaPlayer#OnSeekCompleteListener

The following examples show how to use android.media.MediaPlayer#OnSeekCompleteListener . 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: AndroidMediaPlayerFacadeTest.java    From no-player with Apache License 2.0 5 votes vote down vote up
@Test
public void whenSettingOnSeekCompleteListener_thenSetsOnSeekCompleteListener() {
    givenMediaPlayerIsPrepared();

    MediaPlayer.OnSeekCompleteListener onSeekCompleteListener = mock(MediaPlayer.OnSeekCompleteListener.class);
    facade.setOnSeekCompleteListener(onSeekCompleteListener);

    verify(mediaPlayer).setOnSeekCompleteListener(onSeekCompleteListener);
}
 
Example 2
Source File: StdVideoView.java    From jellyfin-androidtv with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void setOnSeekCompleteListener(MediaPlayer mp, MediaPlayer.OnSeekCompleteListener listener) {
    mp.setOnSeekCompleteListener(listener);
}
 
Example 3
Source File: AlphaMovieView.java    From alpha-movie with Apache License 2.0 4 votes vote down vote up
public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener onSeekCompleteListener) {
    mediaPlayer.setOnSeekCompleteListener(onSeekCompleteListener);
}
 
Example 4
Source File: SurfaceVideoView.java    From VideoRecord with MIT License 4 votes vote down vote up
public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener l) {
	mOnSeekCompleteListener = l;
}
 
Example 5
Source File: VideoView.java    From Spectaculum with Apache License 2.0 4 votes vote down vote up
public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener l) {
    this.mOnSeekCompleteListener = l;
}
 
Example 6
Source File: AndroidMediaPlayerFacade.java    From no-player with Apache License 2.0 4 votes vote down vote up
void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener seekToResettingSeekListener) throws IllegalStateException {
    assertIsInPlaybackState();
    mediaPlayer.setOnSeekCompleteListener(seekToResettingSeekListener);
}
 
Example 7
Source File: MediaPlayerBridge.java    From 365browser with Apache License 2.0 4 votes vote down vote up
protected void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener) {
    getLocalPlayer().setOnSeekCompleteListener(listener);
}
 
Example 8
Source File: MediaPlayerBridge.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener) {
    getLocalPlayer().setOnSeekCompleteListener(listener);
}
 
Example 9
Source File: MediaPlayerBridge.java    From android-chromium with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener) {
    getLocalPlayer().setOnSeekCompleteListener(listener);
}
 
Example 10
Source File: NativeTextureVideoView.java    From ExoMedia with Apache License 2.0 2 votes vote down vote up
/**
 * Register a callback to be invoked when a seek operation has been
 * completed.
 *
 * @param listener the callback that will be run
 */
public void setOnSeekCompleteListener(@Nullable MediaPlayer.OnSeekCompleteListener listener) {
    delegate.setOnSeekCompleteListener(listener);
}
 
Example 11
Source File: NativeSurfaceVideoView.java    From ExoMedia with Apache License 2.0 2 votes vote down vote up
/**
 * Register a callback to be invoked when a seek operation has been
 * completed.
 *
 * @param listener the callback that will be run
 */
public void setOnSeekCompleteListener(@Nullable MediaPlayer.OnSeekCompleteListener listener) {
    delegate.setOnSeekCompleteListener(listener);
}
 
Example 12
Source File: NativeVideoDelegate.java    From ExoMedia with Apache License 2.0 2 votes vote down vote up
/**
 * Register a callback to be invoked when a seek operation has been
 * completed.
 *
 * @param listener the callback that will be run
 */
public void setOnSeekCompleteListener(@Nullable MediaPlayer.OnSeekCompleteListener listener) {
    onSeekCompleteListener = listener;
}
 
Example 13
Source File: IVideoView.java    From jellyfin-androidtv with GNU General Public License v2.0 votes vote down vote up
public void setOnSeekCompleteListener(MediaPlayer mp, MediaPlayer.OnSeekCompleteListener listener);