forked from mirrors/gecko-dev
Bug 1894063 - Add PiP captions support for additional sites that use JWPlayer r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D208933
This commit is contained in:
parent
1ede7d4c12
commit
efc2bb3785
1 changed files with 65 additions and 11 deletions
|
|
@ -134,6 +134,18 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
fandom: {
|
||||||
|
"https://*.fandom.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
fastcompany: {
|
||||||
|
"https://*.fastcompany.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
frontendMasters: {
|
frontendMasters: {
|
||||||
"https://*.frontendmasters.com/*": {
|
"https://*.frontendmasters.com/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
||||||
|
|
@ -146,6 +158,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
fuse: {
|
||||||
|
"https://*.fuse.tv/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
hbomax: {
|
hbomax: {
|
||||||
"https://play.hbomax.com/page/*": { policy: TOGGLE_POLICIES.HIDDEN },
|
"https://play.hbomax.com/page/*": { policy: TOGGLE_POLICIES.HIDDEN },
|
||||||
"https://play.hbomax.com/player/*": {
|
"https://play.hbomax.com/player/*": {
|
||||||
|
|
@ -165,6 +183,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
imdb: {
|
||||||
|
"https://*.imdb.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
indpendentuk: {
|
indpendentuk: {
|
||||||
"https://*.independent.co.uk/*": {
|
"https://*.independent.co.uk/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
|
@ -181,6 +205,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
"https://www.instagram.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
|
"https://www.instagram.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
internetArchive: {
|
||||||
|
"https://*.archive.org/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
laracasts: {
|
laracasts: {
|
||||||
"https://*.laracasts.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
|
"https://*.laracasts.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
|
||||||
},
|
},
|
||||||
|
|
@ -191,6 +221,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
msnbc: {
|
||||||
|
"https://*.msnbc.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
mxplayer: {
|
mxplayer: {
|
||||||
"https://*.mxplayer.in/*": {
|
"https://*.mxplayer.in/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
||||||
|
|
@ -203,6 +239,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
nbcUniversal: {
|
||||||
|
"https://*.nbcuni.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
nebula: {
|
nebula: {
|
||||||
"https://*.nebula.app/*": {
|
"https://*.nebula.app/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
||||||
|
|
@ -245,6 +287,17 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
primeVideo: {
|
||||||
|
"https://*.primevideo.com/*": {
|
||||||
|
visibilityThreshold: 0.9,
|
||||||
|
videoWrapperScriptPath: "video-wrappers/primeVideo.js",
|
||||||
|
},
|
||||||
|
"https://*.amazon.com/*": {
|
||||||
|
visibilityThreshold: 0.9,
|
||||||
|
videoWrapperScriptPath: "video-wrappers/primeVideo.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
radiocanada: {
|
radiocanada: {
|
||||||
"https://*.ici.radio-canada.ca/*": {
|
"https://*.ici.radio-canada.ca/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/radiocanada.js",
|
videoWrapperScriptPath: "video-wrappers/radiocanada.js",
|
||||||
|
|
@ -267,6 +320,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
syfy: {
|
||||||
|
"https://*.syfy.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
ted: {
|
ted: {
|
||||||
"https://*.ted.com/*": {
|
"https://*.ted.com/*": {
|
||||||
showHiddenTextTracks: true,
|
showHiddenTextTracks: true,
|
||||||
|
|
@ -326,6 +385,12 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
univision: {
|
||||||
|
"https://*.univision.com/*": {
|
||||||
|
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
viki: {
|
viki: {
|
||||||
"https://*.viki.com/*": {
|
"https://*.viki.com/*": {
|
||||||
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
|
||||||
|
|
@ -371,16 +436,5 @@ let AVAILABLE_PIP_OVERRIDES;
|
||||||
videoWrapperScriptPath: "video-wrappers/washingtonpost.js",
|
videoWrapperScriptPath: "video-wrappers/washingtonpost.js",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
primeVideo: {
|
|
||||||
"https://*.primevideo.com/*": {
|
|
||||||
visibilityThreshold: 0.9,
|
|
||||||
videoWrapperScriptPath: "video-wrappers/primeVideo.js",
|
|
||||||
},
|
|
||||||
"https://*.amazon.com/*": {
|
|
||||||
visibilityThreshold: 0.9,
|
|
||||||
videoWrapperScriptPath: "video-wrappers/primeVideo.js",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue