Search in sources :

Example 6 with Playback

use of guichaguri.trackplayer.player.Playback in project react-native-track-player by react-native-kit.

the class MediaWrapper method seekTo.

public void seekTo(final long ms) {
    Playback pb = manager.getPlayback();
    if (pb == null)
        return;
    pb.seekTo(ms);
}
Also used : Playback(guichaguri.trackplayer.player.Playback)

Example 7 with Playback

use of guichaguri.trackplayer.player.Playback in project react-native-track-player by react-native-kit.

the class MediaWrapper method getBufferedPosition.

public void getBufferedPosition(final Promise callback) {
    Playback pb = manager.getPlayback();
    if (checkPlayback(pb, callback))
        return;
    Utils.resolveCallback(callback, Utils.toSeconds(pb.getBufferedPosition()));
}
Also used : Playback(guichaguri.trackplayer.player.Playback)

Example 8 with Playback

use of guichaguri.trackplayer.player.Playback in project react-native-track-player by react-native-kit.

the class MediaWrapper method getVolume.

public void getVolume(final Promise callback) {
    Playback pb = manager.getPlayback();
    if (checkPlayback(pb, callback))
        return;
    Utils.resolveCallback(callback, pb.getVolume());
}
Also used : Playback(guichaguri.trackplayer.player.Playback)

Example 9 with Playback

use of guichaguri.trackplayer.player.Playback in project react-native-track-player by react-native-kit.

the class MediaWrapper method setVolume.

public void setVolume(final float volume) {
    Playback pb = manager.getPlayback();
    if (pb == null)
        return;
    pb.setVolume(volume);
}
Also used : Playback(guichaguri.trackplayer.player.Playback)

Example 10 with Playback

use of guichaguri.trackplayer.player.Playback in project react-native-track-player by react-native-kit.

the class MediaWrapper method skipToNext.

public void skipToNext(final Promise promise) {
    Playback pb = manager.getPlayback();
    if (pb == null)
        return;
    pb.skipToNext(promise);
}
Also used : Playback(guichaguri.trackplayer.player.Playback)

Aggregations

Playback (guichaguri.trackplayer.player.Playback)18 Track (guichaguri.trackplayer.logic.track.Track)3 ArrayList (java.util.ArrayList)1