Use null seek parameter on method channel

This commit is contained in:
Ryan Heise 2020-06-09 01:49:17 +10:00
parent c0f7feeee8
commit 841bd10822
3 changed files with 9 additions and 11 deletions

View file

@ -74,7 +74,8 @@
[self setAutomaticallyWaitsToMinimizeStalling:(BOOL)[args[0] boolValue]];
result(nil);
} else if ([@"seek" isEqualToString:call.method]) {
[self seek:[args[0] intValue] result:result];
int position = args[0] == [NSNull null] ? -2 : [args[0] intValue];
[self seek:position result:result];
result(nil);
} else if ([@"dispose" isEqualToString:call.method]) {
[self dispose];