rtc.tcp.udp.conf 978 B

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