mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Incorrect progress updating for native player
This commit is contained in:
parent
fa61ce2e40
commit
a3ccb6009c
6 changed files with 57 additions and 32 deletions
|
|
@ -911,7 +911,7 @@ class VideoPlayerApi {
|
|||
}
|
||||
}
|
||||
|
||||
Future<void> open(String url, bool play) async {
|
||||
Future<bool> open(String url, bool play) async {
|
||||
final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix';
|
||||
final BasicMessageChannel<Object?> pigeonVar_channel = BasicMessageChannel<Object?>(
|
||||
pigeonVar_channelName,
|
||||
|
|
@ -929,8 +929,13 @@ class VideoPlayerApi {
|
|||
message: pigeonVar_replyList[1] as String?,
|
||||
details: pigeonVar_replyList[2],
|
||||
);
|
||||
} else if (pigeonVar_replyList[0] == null) {
|
||||
throw PlatformException(
|
||||
code: 'null-error',
|
||||
message: 'Host platform returned null value for non-null return value.',
|
||||
);
|
||||
} else {
|
||||
return;
|
||||
return (pigeonVar_replyList[0] as bool?)!;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue