2
0

push.flv.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # push HTTP FLV to SRS.
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/streamer#push-http-flv-to-srs
  3. # @see full.conf for detail config.
  4. listen 1935;
  5. max_connections 1000;
  6. daemon off;
  7. srs_log_tank console;
  8. stream_caster {
  9. enabled on;
  10. caster flv;
  11. output rtmp://127.0.0.1/[app]/[stream];
  12. listen 8936;
  13. }
  14. http_server {
  15. enabled on;
  16. listen 8080;
  17. dir ./objs/nginx/html;
  18. }
  19. http_api {
  20. enabled on;
  21. listen 1985;
  22. }
  23. rtc_server {
  24. enabled on;
  25. listen 8000; # UDP port
  26. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  27. candidate $CANDIDATE;
  28. }
  29. vhost __defaultVhost__ {
  30. rtc {
  31. enabled on;
  32. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  33. rtmp_to_rtc on;
  34. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  35. rtc_to_rtmp on;
  36. }
  37. http_remux {
  38. enabled on;
  39. mount [vhost]/[app]/[stream].flv;
  40. }
  41. hls {
  42. enabled on;
  43. }
  44. }