Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2015
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. worker_processes 1;
  2.  
  3. error_log logs/error.log debug;
  4.  
  5. events {
  6. worker_connections 1024;
  7. }
  8.  
  9. rtmp {
  10. server {
  11. listen 1935;
  12. chunk_size 8192;
  13.  
  14. application vod {
  15. play C:\Capture;
  16. }
  17.  
  18. application live {
  19. allow publish all;
  20. allow play all;
  21. live on;
  22. }
  23.  
  24. application hls {
  25. live on;
  26. hls on;
  27. hls_path temp/hls;
  28. hls_fragment 8s;
  29. }
  30. }
  31. }
  32.  
  33. http {
  34. server {
  35. listen 8080;
  36.  
  37. location / {
  38. root www;
  39. }
  40.  
  41. location /stat {
  42. rtmp_stat all;
  43. rtmp_stat_stylesheet stat.xsl;
  44. }
  45.  
  46. location /stat.xsl {
  47. root www;
  48. }
  49.  
  50. location /hls {
  51. #server hls fragments
  52. types{
  53. application/vnd.apple.mpegurl m3u8;
  54. video/mp2t ts;
  55. }
  56. alias temp/hls;
  57. expires -1;
  58. }
  59.  
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement