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
							
								
									83c7dabdc0
								
							
						
					
					
						commit
						9ba41a5aa1
					
				
					 1 changed files with 8 additions and 13 deletions
				
			
		| 
						 | 
					@ -199,17 +199,12 @@ export default {
 | 
				
			||||||
                    //     label: "DASH"
 | 
					                    //     label: "DASH"
 | 
				
			||||||
                    // });
 | 
					                    // });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (this.video.livestream) {
 | 
					 | 
				
			||||||
                        src.push({
 | 
					 | 
				
			||||||
                            src: this.video.hls,
 | 
					 | 
				
			||||||
                            type: "application/x-mpegURL"
 | 
					 | 
				
			||||||
                        });
 | 
					 | 
				
			||||||
                    } else {
 | 
					 | 
				
			||||||
                    this.video.videoStreams.map(stream =>
 | 
					                    this.video.videoStreams.map(stream =>
 | 
				
			||||||
                        src.push({
 | 
					                        src.push({
 | 
				
			||||||
                            src: stream.url,
 | 
					                            src: stream.url,
 | 
				
			||||||
                            type: stream.mimeType,
 | 
					                            type: stream.mimeType,
 | 
				
			||||||
                                label: stream.quality
 | 
					                            label: stream.quality,
 | 
				
			||||||
 | 
					                            videoOnly: stream.videoOnly
 | 
				
			||||||
                        })
 | 
					                        })
 | 
				
			||||||
                    );
 | 
					                    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -220,7 +215,7 @@ export default {
 | 
				
			||||||
                                label: stream.quality
 | 
					                                label: stream.quality
 | 
				
			||||||
                            })
 | 
					                            })
 | 
				
			||||||
                        );
 | 
					                        );
 | 
				
			||||||
                    }
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (!this.audioplayer)
 | 
					                    if (!this.audioplayer)
 | 
				
			||||||
                        this.audioplayer = new Audio(
 | 
					                        this.audioplayer = new Audio(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue