mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-09-26 19:51:26 +08:00
hls, webrtc: Add disablepictureinpicture param (#4883)
ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video#disablepictureinpicture
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user