mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #118 from anthonylavado/fix-safari-pip
Enable and fix PiP for Safari
This commit is contained in:
commit
884c264b40
2 changed files with 5 additions and 7 deletions
|
@ -16,9 +16,10 @@
|
|||
- [grafixeyehero](https://github.com/grafixeyehero)
|
||||
- [Drago96](https://github.com/drago-96)
|
||||
- [ViXXoR](https://github.com/ViXXoR)
|
||||
- [nkmerrill] (https://github.com/nkmerrill)
|
||||
- [TtheCreator] (https://github.com/Tthecreator)
|
||||
- [nkmerrill](https://github.com/nkmerrill)
|
||||
- [TtheCreator](https://github.com/Tthecreator)
|
||||
- [RazeLighter777](https://github.com/RazeLighter777)
|
||||
- [anthonylavado](https://github.com/anthonylavado)
|
||||
|
||||
# Emby Contributors
|
||||
|
||||
|
|
|
@ -1443,10 +1443,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||
var list = [];
|
||||
|
||||
var video = document.createElement('video');
|
||||
//if (video.webkitSupportsPresentationMode && video.webkitSupportsPresentationMode('picture-in-picture') && typeof video.webkitSetPresentationMode === "function") {
|
||||
// list.push('PictureInPicture');
|
||||
//}
|
||||
if (document.pictureInPictureEnabled) {
|
||||
if (video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === "function" || document.pictureInPictureEnabled) {
|
||||
list.push('PictureInPicture');
|
||||
}
|
||||
else if (browser.ipad) {
|
||||
|
@ -1849,4 +1846,4 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||
}
|
||||
|
||||
return HtmlVideoPlayer;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue