Skip to content

Commit

Permalink
chore: only call setWebOptions in web
Browse files Browse the repository at this point in the history
  • Loading branch information
defuncart committed Sep 9, 2023
1 parent 96e0458 commit b1ded59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/video_player/video_player/lib/video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class VideoPlayerController extends ValueNotifier<VideoPlayerValue> {
_creatingCompleter!.complete(null);
final Completer<void> initializingCompleter = Completer<void>();

if (videoPlayerOptions?.webOptions != null) {
if (kIsWeb && videoPlayerOptions?.webOptions != null) {
await _videoPlayerPlatform.setWebOptions(
_textureId,
videoPlayerOptions!.webOptions!,
Expand Down

0 comments on commit b1ded59

Please sign in to comment.