srs.conf 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # main config for srs.
  2. # @see full.conf for detail config.
  3. listen 1935;
  4. max_connections 1000;
  5. #srs_log_tank file;
  6. #srs_log_file ./objs/srs.log;
  7. daemon on;
  8. http_api {
  9. enabled on;
  10. listen 1985;
  11. }
  12. http_server {
  13. enabled on;
  14. listen 8080;
  15. dir ./objs/nginx/html;
  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. hls {
  25. enabled on;
  26. }
  27. http_remux {
  28. enabled on;
  29. mount [vhost]/[app]/[stream].flv;
  30. }
  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. play{
  39. gop_cache_max_frames 2500;
  40. }
  41. }