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