Search in sources :

Example 16 with Playback

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

the class MediaWrapper method getDuration.

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

Example 17 with Playback

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

the class MediaWrapper method stop.

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

Example 18 with Playback

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

the class MediaWrapper method reset.

public void reset() {
    Playback pb = manager.getPlayback();
    if (pb == null)
        return;
    pb.reset();
}
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