2
0

rtmp2rtc.conf 830 B

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