hls, webrtc: Add disablepictureinpicture param (#4883)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled

ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video#disablepictureinpicture
This commit is contained in:
bp0 2025-08-17 14:45:48 -05:00 committed by GitHub
parent 9ab48ea480
commit fa6a20a5f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -187,6 +187,7 @@ const loadAttributesFromQuery = () => {
video.muted = parseBoolString(params.get('muted'), true);
video.autoplay = parseBoolString(params.get('autoplay'), true);
video.playsInline = parseBoolString(params.get('playsinline'), true);
video.disablepictureinpicture = parseBoolString(params.get('disablepictureinpicture'), false);
defaultControls = video.controls;
};

View file

@ -78,6 +78,7 @@ const loadAttributesFromQuery = () => {
video.muted = parseBoolString(params.get('muted'), true);
video.autoplay = parseBoolString(params.get('autoplay'), true);
video.playsInline = parseBoolString(params.get('playsinline'), true);
video.disablepictureinpicture = parseBoolString(params.get('disablepictureinpicture'), false);
defaultControls = video.controls;
};