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:
Joe Webster 2024-05-02 15:21:42 +00:00
parent 1ede7d4c12
commit efc2bb3785

View file

@ -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: {
"https://*.frontendmasters.com/*": {
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
@ -146,6 +158,12 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
fuse: {
"https://*.fuse.tv/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
hbomax: {
"https://play.hbomax.com/page/*": { policy: TOGGLE_POLICIES.HIDDEN },
"https://play.hbomax.com/player/*": {
@ -165,6 +183,12 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
imdb: {
"https://*.imdb.com/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
indpendentuk: {
"https://*.independent.co.uk/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
@ -181,6 +205,12 @@ let AVAILABLE_PIP_OVERRIDES;
"https://www.instagram.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
},
internetArchive: {
"https://*.archive.org/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
laracasts: {
"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: {
"https://*.mxplayer.in/*": {
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
@ -203,6 +239,12 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
nbcUniversal: {
"https://*.nbcuni.com/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
nebula: {
"https://*.nebula.app/*": {
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: {
"https://*.ici.radio-canada.ca/*": {
videoWrapperScriptPath: "video-wrappers/radiocanada.js",
@ -267,6 +320,12 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
syfy: {
"https://*.syfy.com/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
ted: {
"https://*.ted.com/*": {
showHiddenTextTracks: true,
@ -326,6 +385,12 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
univision: {
"https://*.univision.com/*": {
videoWrapperScriptPath: "video-wrappers/jwplayerWrapper.js",
},
},
viki: {
"https://*.viki.com/*": {
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",
@ -371,16 +436,5 @@ let AVAILABLE_PIP_OVERRIDES;
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",
},
},
};
}