mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	player: Add quality selector for livestreams.
This commit is contained in:
		
							parent
							
								
									9c68e1bc40
								
							
						
					
					
						commit
						bf651da5e7
					
				
					 1 changed files with 8 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -199,19 +199,14 @@ export default {
 | 
			
		|||
                    //     label: "DASH"
 | 
			
		||||
                    // });
 | 
			
		||||
 | 
			
		||||
                    if (this.video.livestream) {
 | 
			
		||||
                    this.video.videoStreams.map(stream =>
 | 
			
		||||
                        src.push({
 | 
			
		||||
                            src: this.video.hls,
 | 
			
		||||
                            type: "application/x-mpegURL"
 | 
			
		||||
                        });
 | 
			
		||||
                    } else {
 | 
			
		||||
                        this.video.videoStreams.map(stream =>
 | 
			
		||||
                            src.push({
 | 
			
		||||
                                src: stream.url,
 | 
			
		||||
                                type: stream.mimeType,
 | 
			
		||||
                                label: stream.quality
 | 
			
		||||
                            })
 | 
			
		||||
                        );
 | 
			
		||||
                            src: stream.url,
 | 
			
		||||
                            type: stream.mimeType,
 | 
			
		||||
                            label: stream.quality,
 | 
			
		||||
                            videoOnly: stream.videoOnly
 | 
			
		||||
                        })
 | 
			
		||||
                    );
 | 
			
		||||
 | 
			
		||||
                        this.video.audioStreams.map(stream =>
 | 
			
		||||
                            src.push({
 | 
			
		||||
| 
						 | 
				
			
			@ -220,7 +215,7 @@ export default {
 | 
			
		|||
                                label: stream.quality
 | 
			
		||||
                            })
 | 
			
		||||
                        );
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    if (!this.audioplayer)
 | 
			
		||||
                        this.audioplayer = new Audio(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue