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()));
}
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();
}
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();
}