mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Migrate to attach api.
This commit is contained in:
parent
763680463f
commit
1f1df9bdac
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue