Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2024-09-09 12:34:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9febbe88734bb0b68d7f1dfefeed1bdfcf262266
9febbe88
1 parent
6b07dc00
do not show controls on video element
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
lib/src/web/mobile_scanner_web.dart
lib/src/web/mobile_scanner_web.dart
View file @
9febbe8
...
...
@@ -88,6 +88,18 @@ class MobileScannerWeb extends MobileScannerPlatform {
..
transformOrigin
=
'center'
..
pointerEvents
=
'none'
;
// Do not show the media controls, as this is a preview element.
// Also prevent play/pause events from changing the media controls.
videoElement
.
controls
=
false
;
videoElement
.
onplay
=
(
JSAny
_
)
{
videoElement
.
controls
=
false
;
}.
toJS
;
videoElement
.
onpause
=
(
JSAny
_
)
{
videoElement
.
controls
=
false
;
}.
toJS
;
// Attach the video element to its parent container
// and setup the PlatformView factory for this `textureId`.
_divElement
=
HTMLDivElement
()
...
...
Please
register
or
login
to post a comment