chore: revert customControls default option (to prevent breaking change)
This commit is contained in:
@ -62,13 +62,9 @@ import toggleClass from './toggle-class';
|
|||||||
src: ['https://cdn.plyr.io/static/demo/thumbs/100p.vtt', 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt'],
|
src: ['https://cdn.plyr.io/static/demo/thumbs/100p.vtt', 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt'],
|
||||||
},
|
},
|
||||||
vimeo: {
|
vimeo: {
|
||||||
customControls: true,
|
|
||||||
// Prevent Vimeo blocking plyr.io demo site
|
// Prevent Vimeo blocking plyr.io demo site
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
},
|
},
|
||||||
youtube: {
|
|
||||||
customControls: true,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Expose for tinkering in the console
|
// Expose for tinkering in the console
|
||||||
|
@ -423,7 +423,7 @@ const defaults = {
|
|||||||
speed: true,
|
speed: true,
|
||||||
transparent: false,
|
transparent: false,
|
||||||
// Custom settings from Plyr
|
// Custom settings from Plyr
|
||||||
customControls: false,
|
customControls: true,
|
||||||
referrerPolicy: null, // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy
|
referrerPolicy: null, // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy
|
||||||
// Whether the owner of the video has a Pro or Business account
|
// Whether the owner of the video has a Pro or Business account
|
||||||
// (which allows us to properly hide controls without CSS hacks, etc)
|
// (which allows us to properly hide controls without CSS hacks, etc)
|
||||||
@ -437,7 +437,7 @@ const defaults = {
|
|||||||
iv_load_policy: 3, // Hide annotations
|
iv_load_policy: 3, // Hide annotations
|
||||||
modestbranding: 1, // Hide logos as much as possible (they still show one in the corner when paused)
|
modestbranding: 1, // Hide logos as much as possible (they still show one in the corner when paused)
|
||||||
// Custom settings from Plyr
|
// Custom settings from Plyr
|
||||||
customControls: false,
|
customControls: true,
|
||||||
noCookie: false, // Whether to use an alternative version of YouTube without cookies
|
noCookie: false, // Whether to use an alternative version of YouTube without cookies
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user