Example usage for org.apache.cordova AudioPlayer seekToPlaying

List of usage examples for org.apache.cordova AudioPlayer seekToPlaying

Introduction

In this page you can find the example usage for org.apache.cordova AudioPlayer seekToPlaying.

Prototype

public void seekToPlaying(int milliseconds) 

Source Link

Document

Seek or jump to a new time in the track.

Usage

From source file:com.candygram.media.AudioHandler.java

License:Apache License

/**
 * Seek to a location.//from w w w .  j a  v  a2  s. co  m
 * @param id            The id of the audio player
 * @param milliseconds      int: number of milliseconds to skip 1000 = 1 second
 */
public void seekToAudio(String id, int milliseconds) {
    AudioPlayer audio = this.players.get(id);
    if (audio != null) {
        audio.seekToPlaying(milliseconds);
    }
}