Support HTML5 Video Attribute disablePictureInPicture
See original GitHub issueBug Report: disablePictureInPicture
for html5 video elements are not supported
Eg:
<video
src="https://www.w3schools.com/tags/movie.mp4"
disablePictureInPicture
loop
controls
controlsList="nodownload"
></video>
What is the current behavior?
Should remove the 3 dots (more button) on videos on Chrome:
What is the expected behavior?
Instead, the attribute is not taken into consideration so the more menu stays:
Example:
https://jsfiddle.net/r1w4x7m0/2/
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
All / Latest, Chrome Browsers, All OSes.
Pull request for this issue has also been submitted: #15334
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
HTMLVideoElement.disablePictureInPicture - Web APIs | MDN
The HTMLVideoElement disablePictureInPicture property reflects the HTML attribute indicating whether the user agent should suggest the ...
Read more >How to disable Picture in Picture mode on HTML5 video
1- you are applying the attributes and binding the function to all <video> elements of the page for each of them which triggers...
Read more >How to disable Picture in Picture mode on HTML5 video
How to disable Picture in Picture mode on HTML5 video. Resolved bergaul. (@bergaul) ... About using the disablePictureInPicture attributes.
Read more >Picture-in-Picture - W3C
To support these use cases, a new disablePictureInPicture attribute is added to the list of content attributes for video elements.
Read more >How to disable "picture in picture" on html5 video in firefox
HTML : How to disable "picture in picture " on html5 video in firefox [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Needed to disable the PiP button before going live with a new feature this month, so to work around this issue, I call
on a ref of the
<video>
element incomponentDidMount
. Not the optimal solution, but it works (adding this to the thread for those who are still on older versions of React)¯\(シ)/¯
https://w3c.github.io/picture-in-picture/#example-add-custom-pip-button
adding "disablePictureInPicture controlsList=“nodownload” " to video tag removes 3 dots in Full-screen mode