mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +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:
		
							parent
							
								
									60ab948aad
								
							
						
					
					
						commit
						acb4cc0588
					
				
					 3 changed files with 8 additions and 7 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