Showing
1 changed file
with
12 additions
and
0 deletions
| @@ -88,6 +88,18 @@ class MobileScannerWeb extends MobileScannerPlatform { | @@ -88,6 +88,18 @@ class MobileScannerWeb extends MobileScannerPlatform { | ||
| 88 | ..transformOrigin = 'center' | 88 | ..transformOrigin = 'center' |
| 89 | ..pointerEvents = 'none'; | 89 | ..pointerEvents = 'none'; |
| 90 | 90 | ||
| 91 | + // Do not show the media controls, as this is a preview element. | ||
| 92 | + // Also prevent play/pause events from changing the media controls. | ||
| 93 | + videoElement.controls = false; | ||
| 94 | + | ||
| 95 | + videoElement.onplay = (JSAny _) { | ||
| 96 | + videoElement.controls = false; | ||
| 97 | + }.toJS; | ||
| 98 | + | ||
| 99 | + videoElement.onpause = (JSAny _) { | ||
| 100 | + videoElement.controls = false; | ||
| 101 | + }.toJS; | ||
| 102 | + | ||
| 91 | // Attach the video element to its parent container | 103 | // Attach the video element to its parent container |
| 92 | // and setup the PlatformView factory for this `textureId`. | 104 | // and setup the PlatformView factory for this `textureId`. |
| 93 | _divElement = HTMLDivElement() | 105 | _divElement = HTMLDivElement() |
-
Please register or login to post a comment