Skip to content

Commit

Permalink
Fix gyroscope issue (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
alesiaradkevich authored Aug 30, 2023
1 parent e6f3c24 commit e2c82c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ class VideoPlayerController(
val vrSettings = VRSettings()
vrSettings.isFlingEnabled = true
vrSettings.isVrModeEnabled = false

if (isVRModeEnabled) vrSettings.interactionMode = VRInteractionMode.MotionWithTouch
else vrSettings.interactionMode = VRInteractionMode.Touch
vrSettings.interactionMode = VRInteractionMode.MotionWithTouch

vrSettings.isZoomWithPinchEnabled = true
return vrSettings
Expand Down
3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ class _VideoPlayerPageState extends State<VideoPlayerPage>
thumbShape: const RoundSliderThumbShape(
enabledThumbRadius: 8,
),
overlayColor:
Colors.purple.withAlpha(32),
overlayColor: Colors.purple.withAlpha(32),
overlayShape: const RoundSliderOverlayShape(
overlayRadius: 14,
),
Expand Down

0 comments on commit e2c82c3

Please sign in to comment.