This commit is contained in:
		
							parent
							
								
									9fbe9f4ff2
								
							
						
					
					
						commit
						05919eaaec
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		
							
								
								
									
										11
									
								
								nginx.conf
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								nginx.conf
									
										
									
									
									
								
							| 
						 | 
					@ -36,6 +36,12 @@ rtmp {
 | 
				
			||||||
            hls_variant _240p528kbs BANDWIDTH=528000,RESOLUTION=426x240;
 | 
					            hls_variant _240p528kbs BANDWIDTH=528000,RESOLUTION=426x240;
 | 
				
			||||||
            hls_variant _240p264kbs BANDWIDTH=264000,RESOLUTION=426x240;
 | 
					            hls_variant _240p264kbs BANDWIDTH=264000,RESOLUTION=426x240;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        application dash {
 | 
				
			||||||
 | 
								live on;
 | 
				
			||||||
 | 
								dash on;
 | 
				
			||||||
 | 
								dash_path /opt/data/dash;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,6 +58,11 @@ http {
 | 
				
			||||||
            add_header Cache-Control no-cache;
 | 
					            add_header Cache-Control no-cache;
 | 
				
			||||||
            add_header Access-Control-Allow-Origin *;
 | 
					            add_header Access-Control-Allow-Origin *;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        location /dash {
 | 
				
			||||||
 | 
								root /opt/data;
 | 
				
			||||||
 | 
								add_header Cache-Control no-cache;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        location /live {
 | 
					        location /live {
 | 
				
			||||||
          alias /opt/data/hls;
 | 
					          alias /opt/data/hls;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,7 +8,7 @@
 | 
				
			||||||
        <p>Video? Video!</p>
 | 
					        <p>Video? Video!</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
 | 
					        <video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
 | 
				
			||||||
            <source src="http://10.0.30.197:8088/live/hello.m3u8" type="application/x-mpegURL">
 | 
					            <source src="https//video.north-brigade.org/live/test.m3u8" type="application/x-mpegURL">
 | 
				
			||||||
        </video>
 | 
					        </video>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue