startPlayerFromTrack method
Future<int>
startPlayerFromTrack(
- TauPlayerCallback callback, {
- Duration? progress,
- Duration? duration,
- Map<
String, dynamic> ? track, - bool? canPause,
- bool? canSkipForward,
- bool? canSkipBackward,
- bool? defaultPauseResume,
- bool? removeUIWhenStopped,
override
Implementation
@override
Future<int> startPlayerFromTrack(TauPlayerCallback callback, {Duration? progress, Duration? duration, Map<String, dynamic>? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, bool? removeUIWhenStopped })
{
return invokeMethod( callback, 'startPlayerFromTrack', {'progress': (progress != null) ? progress.inMilliseconds : 0, 'duration': (duration != null) ? duration.inMilliseconds : 0,
'track': track, 'canPause': canPause, 'canSkipForward': canSkipForward, 'canSkipBackward': canSkipBackward,
'defaultPauseResume': defaultPauseResume, 'removeUIWhenStopped': removeUIWhenStopped,},);
}