Merge pull request #118 from anthonylavado/fix-safari-pip
Enable and fix PiP for Safari
This commit is contained in:
+3
-2
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user