Skip to content

Commit 15c2552

Browse files
committed
chore: only call setWebOptions in web
1 parent 2995571 commit 15c2552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/video_player/video_player/lib/video_player.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
446446
_creatingCompleter!.complete(null);
447447
final Completer<void> initializingCompleter = Completer<void>();
448448

449-
if (videoPlayerOptions?.webOptions != null) {
449+
if (kIsWeb && videoPlayerOptions?.webOptions != null) {
450450
await _videoPlayerPlatform.setWebOptions(
451451
_textureId,
452452
videoPlayerOptions!.webOptions!,

0 commit comments

Comments
 (0)