mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Enable and fix PiP for Safari
This enables the previously commented out lines that would enable Picture in Picture support for Safari. Also fixed IF condition to match the Apple developer reccomendation: https://developer.apple.com/documentation/webkitjs/adding_picture_in_picture_to_your_safari_media_controls
This commit is contained in:
parent
2b5c236510
commit
65581958e1
@ -1443,9 +1443,9 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
var list = [];
|
var list = [];
|
||||||
|
|
||||||
var video = document.createElement('video');
|
var video = document.createElement('video');
|
||||||
//if (video.webkitSupportsPresentationMode && video.webkitSupportsPresentationMode('picture-in-picture') && typeof video.webkitSetPresentationMode === "function") {
|
if (video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === "function") {
|
||||||
// list.push('PictureInPicture');
|
list.push('PictureInPicture');
|
||||||
//}
|
}
|
||||||
if (document.pictureInPictureEnabled) {
|
if (document.pictureInPictureEnabled) {
|
||||||
list.push('PictureInPicture');
|
list.push('PictureInPicture');
|
||||||
}
|
}
|
||||||
@ -1849,4 +1849,4 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
}
|
}
|
||||||
|
|
||||||
return HtmlVideoPlayer;
|
return HtmlVideoPlayer;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user