Skip to content

Commit

Permalink
feat(FEC-13212): upgrade shaka player v4.3.7 (#639)
Browse files Browse the repository at this point in the history
* upgrade shaka player v4.3.7

* add ott sample
  • Loading branch information
giladna authored Jun 25, 2023
1 parent 8f5a64a commit d9cae3a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"hls.js": "1.3.5",
"intersection-observer": "^0.12.0",
"proxy-polyfill": "^0.3.0",
"shaka-player": "4.3.5"
"shaka-player": "4.3.7"
},
"devDependencies": {
"@babel/cli": "^7.10.1",
Expand Down
54 changes: 54 additions & 0 deletions src/index_ott.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no'>
<title>Title</title>
<link rel='stylesheet' type='text/css' href='./style.css' />
<script src='./kaltura-tv-player.js' type='text/javascript'></script>
</head>
<body>
<div id='player-placeholder'></div>
<script>
var config = {
logLevel: "DEBUG",
targetId: 'player-placeholder',
provider:{
partnerId: 3009,
env: {
serviceUrl: 'https://rest-us.ott.kaltura.com/v4_5/api_v3/'
}
},
"playback": {
"options": {
"html5": {
"hls": {},
"dash": {}
}
},
"streamPriority": [
{
"engine": "html5",
"format": "hls"
},
{
"engine": "html5",
"format": "dash"
},
{
"engine": "html5",
"format": "progressive"
}
]
}
};

try {
var kalturaPlayer = KalturaPlayer.setup(config);
kalturaPlayer.loadMedia({entryId: '548569'});
} catch (e) {
console.error(e.message);
}
</script>
</body>
</html>
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9417,10 +9417,10 @@ sha.js@^2.4.0, sha.js@^2.4.8:
inherits "^2.0.1"
safe-buffer "^5.0.1"

shaka-player@4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/shaka-player/-/shaka-player-4.3.5.tgz#304d60ad867fb7a0780b850b32a9614296b842db"
integrity sha512-WkqvHm8QHOsQ71d/qoc2Wa6Z5rBrG3Zgsc6ho9I9e8Xwa0io+MeREgqBuG0z6qoXK55sTImipFhDoERrkmDdUg==
shaka-player@4.3.7:
version "4.3.7"
resolved "https://registry.yarnpkg.com/shaka-player/-/shaka-player-4.3.7.tgz#beebf492afa4cd3036eb10d6d9d2b610c17f6e6e"
integrity sha512-3aeRb/AdVnGJKI1i23pD+b2e4eXljjJflxW+RLeWrSGHNRt/givvV3DyGIzpNQ9icUDatUyOtSkx8AdTXZWYXQ==
dependencies:
eme-encryption-scheme-polyfill "^2.1.1"

Expand Down

0 comments on commit d9cae3a

Please sign in to comment.