2
0

rtc.tcp.only.conf 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. tcp {
  22. enabled on;
  23. listen 8000;
  24. }
  25. protocol tcp;
  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 off;
  34. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  35. rtc_to_rtmp off;
  36. }
  37. http_remux {
  38. enabled on;
  39. mount [vhost]/[app]/[stream].flv;
  40. }
  41. }