Use null seek parameter on method channel
This commit is contained in:
parent
c0f7feeee8
commit
841bd10822
3 changed files with 9 additions and 11 deletions
|
@ -441,8 +441,7 @@ class AudioPlayer {
|
|||
/// any state except for [AudioPlaybackState.none] and
|
||||
/// [AudioPlaybackState.connecting].
|
||||
Future<void> seek(final Duration position) async {
|
||||
await _invokeMethod(
|
||||
'seek', [position != null ? position.inMilliseconds : -2]);
|
||||
await _invokeMethod('seek', [position?.inMilliseconds]);
|
||||
}
|
||||
|
||||
/// Release all resources associated with this player. You must invoke this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue