mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-09 20:24:09 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user