1
0
Fork 0
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:
Vasily 2019-02-04 20:01:35 +03:00 committed by GitHub
commit 884c264b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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;
});
});