fix(deps): update dependency shaka-player to v4.6.0 (#3143)

* fix(deps): update dependency shaka-player to v4.6.0

* Migrate to attach api.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kavin <20838718+FireMasterK@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2023-11-16 15:02:21 +00:00 committed by GitHub
parent 60ab948aad
commit acb4cc0588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View File

@ -22,7 +22,7 @@
"linkifyjs": "4.1.2", "linkifyjs": "4.1.2",
"mux.js": "6.3.0", "mux.js": "6.3.0",
"qrcode": "^1.5.3", "qrcode": "^1.5.3",
"shaka-player": "4.5.0", "shaka-player": "4.6.0",
"stream-browserify": "3.0.0", "stream-browserify": "3.0.0",
"vue": "3.3.8", "vue": "3.3.8",
"vue-i18n": "9.7.0", "vue-i18n": "9.7.0",

View File

@ -42,8 +42,8 @@ dependencies:
specifier: ^1.5.3 specifier: ^1.5.3
version: 1.5.3 version: 1.5.3
shaka-player: shaka-player:
specifier: 4.5.0 specifier: 4.6.0
version: 4.5.0 version: 4.6.0
stream-browserify: stream-browserify:
specifier: 3.0.0 specifier: 3.0.0
version: 3.0.0 version: 3.0.0
@ -4579,8 +4579,8 @@ packages:
has-property-descriptors: 1.0.1 has-property-descriptors: 1.0.1
dev: true dev: true
/shaka-player@4.5.0: /shaka-player@4.6.0:
resolution: {integrity: sha512-fEy4AW3lQQboOzpn0mJfCoVQ+T0sl8VZ+CWfa6w/6nsY+4z8i8dtQf1raihDYqY5vNvSmjYFrFVqE6iulUYMGg==} resolution: {integrity: sha512-uwSQGrGU6cUYuTUyEpxsn+F1WdQJWo66+jJaOqFLjXwKBpr5zOTvRWg5rHfHp+MGu/CoNfLqQac7Cs8qEuQoOQ==}
engines: {node: '>=14'} engines: {node: '>=14'}
dependencies: dependencies:
eme-encryption-scheme-polyfill: 2.1.1 eme-encryption-scheme-polyfill: 2.1.1

View File

@ -333,11 +333,12 @@ export default {
} }
if (noPrevPlayer) if (noPrevPlayer)
this.shakaPromise.then(() => { this.shakaPromise.then(async () => {
if (this.destroying) return; if (this.destroying) return;
this.$shaka.polyfill.installAll(); this.$shaka.polyfill.installAll();
const localPlayer = new this.$shaka.Player(videoEl); const localPlayer = new this.$shaka.Player();
await localPlayer.attach(videoEl);
const proxyURL = new URL(component.video.proxyUrl); const proxyURL = new URL(component.video.proxyUrl);
let proxyPath = proxyURL.pathname; let proxyPath = proxyURL.pathname;
if (proxyPath.lastIndexOf("/") === proxyPath.length - 1) { if (proxyPath.lastIndexOf("/") === proxyPath.length - 1) {