Skip to content

Commit

Permalink
Migrate to attach api.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Nov 16, 2023
1 parent 7636804 commit 1f1df9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f1df9b

Please sign in to comment.