-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.3
-
None
-
Windows 10 with Chrome 117
-
-
36fd68094 (dev), 6d36c99cb (6.7)
When launching the webapp with a local video file chrome prevents autoplay and video doesn't get loaded.
MediaPlayer { id: mp source: "qrc:/res/smile.mp4" loops: MediaPlayer.Infinite videoOutput: video audioOutput: AudioOutput{ muted: true} activeAudioTrack: -1 Component.onCompleted: { play() } }
it doesn't work either with or without audioOutput set with muted: true
Reason: Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
To be able to autoplay the html video element has to have muted parameter set.