mp3.rtc.conf 713 B

1234567891011121314151617181920212223242526272829303132
  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. rtc_server {
  11. enabled on;
  12. listen 8000; # UDP port
  13. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  14. candidate $CANDIDATE;
  15. }
  16. vhost __defaultVhost__ {
  17. http_remux {
  18. enabled on;
  19. mount [vhost]/[app]/[stream].flv;
  20. }
  21. hls {
  22. enabled on;
  23. hls_acodec mp3;
  24. }
  25. rtc {
  26. enabled on;
  27. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  28. rtmp_to_rtc on;
  29. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  30. rtc_to_rtmp on;
  31. }
  32. }