mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Add Invidious's listen=1 support.
This commit is contained in:
		
							parent
							
								
									b8ac67b7af
								
							
						
					
					
						commit
						1f03ce5c8a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -105,7 +105,8 @@ export default {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.player = player;
 | 
					            this.player = player;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (localStorage && localStorage.getItem("audioOnly")) this.player.configure("manifest.disableVideo", true);
 | 
					            if ((localStorage && localStorage.getItem("audioOnly") === "true") || this.$route.query.listen === "1")
 | 
				
			||||||
 | 
					                this.player.configure("manifest.disableVideo", true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            player.load("data:application/dash+xml;charset=utf-8;base64," + btoa(dash)).then(() => {
 | 
					            player.load("data:application/dash+xml;charset=utf-8;base64," + btoa(dash)).then(() => {
 | 
				
			||||||
                this.video.subtitles.map(subtitle => {
 | 
					                this.video.subtitles.map(subtitle => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue