1.启动SRS 

./objs/srs -c conf/rtc.conf

配置文件:

listen              1935;
max_connections     1000;
daemon              off;
srs_log_tank        console;

http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}

http_api {
    enabled         on;
    listen          1985;
}
stats {
    network         0;
}
rtc_server {
    enabled on;
    # Listen at udp://8000
    listen 8000;
    #
    # The $CANDIDATE means fetch from env, if not configed, use * as default.
    #
    # The * means retrieving server IP automatically, from all network interfaces,
    # @see https://github.com/ossrs/srs/wiki/v4_CN_RTCWiki#config-candidate 这里需要配置外网IP
    candidate 192.168.1.103; 
}
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-06-24
  • 2021-10-15
猜你喜欢
  • 2021-08-07
  • 2022-03-01
  • 2021-08-19
  • 2022-02-20
  • 2021-08-04
  • 2021-10-24
  • 2021-08-20
相关资源
相似解决方案