Update HLS video handling in templates
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									f324bc4eca
								
							
						
					
					
						commit
						adaec67969
					
				|  | @ -51,7 +51,7 @@ | |||
|   <div class="video-container"> | ||||
|     <h2>HLS Test (Video 1)</h2> | ||||
|     <video controls width="100%"> | ||||
|       <source src="/videos/hls/video1/index.m3u8" type="application/vnd.apple.mpegurl"> | ||||
|       <source src="/videos/hls/video1/index.m3u8" type="video/mp4"> | ||||
|       Your browser does not support the video tag. | ||||
|     </video> | ||||
|   </div> | ||||
|  | @ -62,7 +62,7 @@ | |||
|     <script src="/js/videojs/video.min.js"></script> | ||||
|     <script src="/js/videojs/videojs-http-streaming.min.js"></script> | ||||
|     <video id="test-video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="640" height="360"> | ||||
|       <source src="/videos/hls/video1/index.m3u8" type="application/vnd.apple.mpegurl"> | ||||
|       <source src="/videos/hls/video1/index.m3u8" type="video/mp4"> | ||||
|       Your browser does not support the video tag. | ||||
|     </video> | ||||
|     <script> | ||||
|  |  | |||
|  | @ -21,7 +21,7 @@ | |||
|                             height="auto" | ||||
|                             poster="/videos/thumbnails/video1.webp" | ||||
|                             data-setup='{"fluid": true, "responsive": true, "html5": {"vhs": {"overrideNative": true, "enableLowInitialPlaylist": true, "limitRenditionsByPlayerDimensions": true}}, "controlBar": {"pictureInPictureToggle": false}, "playbackRates": [0.75, 1, 1.25, 1.5, 2], "preload": "none"}'> | ||||
|                             <source src="/videos/hls/video1/index.m3u8" type="application/vnd.apple.mpegurl"> | ||||
|                             <source src="/videos/hls/video1/index.m3u8" type="video/mp4"> | ||||
|                             <p class="vjs-no-js"> | ||||
|                                 To view this video please enable JavaScript, and consider upgrading to a | ||||
|                                 web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
|         height="auto" | ||||
|         poster="/videos/thumbnails/{{ $videoId }}.webp" | ||||
|         data-setup='{"fluid": true, "responsive": true, "html5": {"vhs": {"overrideNative": true, "enableLowInitialPlaylist": true, "limitRenditionsByPlayerDimensions": true}}, "controlBar": {"pictureInPictureToggle": false}, "playbackRates": [0.75, 1, 1.25, 1.5, 2], "preload": "none"}'> | ||||
|         <source src="/videos/hls/{{ $videoId }}/index.m3u8" type="application/vnd.apple.mpegurl"> | ||||
|         <source src="/videos/hls/{{ $videoId }}/index.m3u8" type="video/mp4"> | ||||
|         <p class="vjs-no-js"> | ||||
|             To view this video please enable JavaScript, and consider upgrading to a | ||||
|             web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ | |||
|     height="360" | ||||
|     poster="/videos/hls/{{ $id }}/poster.webp" | ||||
|     data-setup='{"fluid": true}'> | ||||
|     <source src="/videos/hls/{{ $id }}/index.m3u8" type="application/vnd.apple.mpegurl"> | ||||
|     <source src="/videos/hls/{{ $id }}/index.m3u8" type="video/mp4"> | ||||
|     <p class="vjs-no-js"> | ||||
|       To view this video please enable JavaScript, and consider upgrading to a | ||||
|       web browser that | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue