2
0

rtc.conf 903 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  23. candidate $CANDIDATE;
  24. }
  25. vhost __defaultVhost__ {
  26. rtc {
  27. enabled on;
  28. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  29. rtmp_to_rtc off;
  30. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  31. rtc_to_rtmp off;
  32. }
  33. http_remux {
  34. enabled on;
  35. mount [vhost]/[app]/[stream].flv;
  36. }
  37. }