Example usage for android.media RemoteController seekTo

List of usage examples for android.media RemoteController seekTo

Introduction

In this page you can find the example usage for android.media RemoteController seekTo.

Prototype

public boolean seekTo(long timeMs) throws IllegalArgumentException 

Source Link

Document

Sets the new playback position.

Usage

From source file:com.bullmobi.message.services.media.MediaController2KitKat.java

/**
 * {@inheritDoc}//w ww.j a v a2 s  .  c o  m
 */
@Override
public void seekTo(long position) {
    RemoteController rc = mService.getRemoteController();
    rc.seekTo(position);
}

From source file:com.achep.acdisplay.services.media.MediaController2KitKat.java

/**
 * {@inheritDoc}/*from   ww  w.  j  a  va2 s  .  c o  m*/
 */
@Override
public void seekTo(long position) {
    if (mService == null) {
        Log.w(TAG, "Seeking a media on stopped controller.");
        return;
    }

    RemoteController rc = mService.getRemoteController();
    rc.seekTo(position);
}