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
3 changed files with 8 additions and 7 deletions

View File

@@ -333,11 +333,12 @@ export default {
}
if (noPrevPlayer)
this.shakaPromise.then(() => {
this.shakaPromise.then(async () => {
if (this.destroying) return;
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);
let proxyPath = proxyURL.pathname;
if (proxyPath.lastIndexOf("/") === proxyPath.length - 1) {