File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ var PipButton = function PipButton(options) {
72
72
73
73
if ( video . webkitSupportsPresentationMode && typeof video . webkitSetPresentationMode === "function" ) {
74
74
player . on ( 'loadeddata' , function ( ) {
75
- if ( ! player . controlBar . childNameIndex_ . hasOwnProperty ( 'PipToggle' ) && video . webkitSupportsPresentationMode ( "picture-in-picture" ) ) {
75
+ if ( ! player . controlBar . childNameIndex_ . hasOwnProperty ( 'PipToggle' ) && ! window . navigator . userAgent . match ( / i P h o n e / ) ) {
76
76
var PipToggle = this . controlBar . addChild ( 'PipToggle' , options ) ;
77
77
player . controlBar . el ( ) . insertBefore ( PipToggle . el ( ) , player . controlBar . fullscreenToggle . el ( ) ) ;
78
78
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " videojs-pip" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " video.js plugin to add a PIP button if the browser supports webkitSupportsPresentationMode" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const PipButton = function(options) {
41
41
42
42
if ( video . webkitSupportsPresentationMode && typeof video . webkitSetPresentationMode === "function" ) {
43
43
player . on ( 'loadeddata' , function ( ) {
44
- if ( ! player . controlBar . childNameIndex_ . hasOwnProperty ( 'PipToggle' ) && video . webkitSupportsPresentationMode ( "picture-in-picture" ) ) {
44
+ if ( ! player . controlBar . childNameIndex_ . hasOwnProperty ( 'PipToggle' ) && ! window . navigator . userAgent . match ( / i P h o n e / ) ) {
45
45
var PipToggle = this . controlBar . addChild ( 'PipToggle' , options )
46
46
player . controlBar . el ( ) . insertBefore ( PipToggle . el ( ) , player . controlBar . fullscreenToggle . el ( ) )
47
47
}
You can’t perform that action at this time.
0 commit comments