mirror of
				https://gitea.invidious.io/iv-org/videojs-quality-selector.git
				synced 2024-08-15 00:43:13 +00:00 
			
		
		
		
	Initial implementation
This commit is contained in:
		
							parent
							
								
									f261cc04a2
								
							
						
					
					
						commit
						156e5923c7
					
				
					 14 changed files with 413 additions and 9 deletions
				
			
		
							
								
								
									
										30
									
								
								docs/demo/index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								docs/demo/index.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
|    <meta charset=utf-8 /> | ||||
|    <title>videojs-quality-selector Demo</title> | ||||
|    <link href="https://unpkg.com/video.js@6.1.0/dist/video-js.css" rel="stylesheet"> | ||||
|    <script src="https://unpkg.com/video.js@6.1.0/dist/video.js"></script> | ||||
|    <script src="../../dist/js/silvermine-videojs-quality-selector.min.js"></script> | ||||
|    <link href="../../dist/css/quality-selector.css" rel="stylesheet"> | ||||
| </head> | ||||
| <body> | ||||
|    <h1>Demo of <code>videojs-quality-selector</code></h1> | ||||
| 
 | ||||
|    <video id="video_1" class="video-js vjs-default-skin" controls preload="auto" data-setup='{}'> | ||||
|       <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.720p.webm" type="video/webm" label="720P"> | ||||
|       <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.480p.webm" type="video/webm" label="480P" isdefault="true"> | ||||
|       <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.360p.webm" type="video/webm" label="360P"> | ||||
|       <source src="https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.240p.webm" type="video/webm" label="240P"> | ||||
|    </video> | ||||
| 
 | ||||
|    <script> | ||||
|       videojs("video_1", {}, function() { | ||||
|          var player = this; | ||||
| 
 | ||||
|          player.controlBar.addChild('QualitySelector'); | ||||
|       }); | ||||
|    </script> | ||||
| 
 | ||||
| </body> | ||||
| </html> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue