mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-04 15:22:48 +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.muted = parseBoolString(params.get('muted'), true);
|
||||||
video.autoplay = parseBoolString(params.get('autoplay'), true);
|
video.autoplay = parseBoolString(params.get('autoplay'), true);
|
||||||
video.playsInline = parseBoolString(params.get('playsinline'), true);
|
video.playsInline = parseBoolString(params.get('playsinline'), true);
|
||||||
|
video.disablepictureinpicture = parseBoolString(params.get('disablepictureinpicture'), false);
|
||||||
defaultControls = video.controls;
|
defaultControls = video.controls;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -78,6 +78,7 @@ const loadAttributesFromQuery = () => {
|
|||||||
video.muted = parseBoolString(params.get('muted'), true);
|
video.muted = parseBoolString(params.get('muted'), true);
|
||||||
video.autoplay = parseBoolString(params.get('autoplay'), true);
|
video.autoplay = parseBoolString(params.get('autoplay'), true);
|
||||||
video.playsInline = parseBoolString(params.get('playsinline'), true);
|
video.playsInline = parseBoolString(params.get('playsinline'), true);
|
||||||
|
video.disablepictureinpicture = parseBoolString(params.get('disablepictureinpicture'), false);
|
||||||
defaultControls = video.controls;
|
defaultControls = video.controls;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user