Skip to content

srs4.0.161 can play webrtc after compilation, but webrtc cannot be played in versions 4.0.191 and 4.0.198. #2763

Closed
@lms0311

Description

Note: Before asking a question, please read the FAQ (Please read FAQ before filing an issue) #2716

Description

Previously, I compiled version 4.0.161 and after configuring rtc.conf, I was able to play rtc video streams using the built-in web page of srs. Today, I downloaded the latest version 198 and compiled it, but rtc.conf remained unchanged and the web page could no longer play rtc video streams. The same issue occurred with version 191, until I copied the compiled srs executable file from version 161, then it started working again. I haven't tested the versions between 161 and 191.

  1. SRS version: 4.0.198

  2. SRS configuration is as follows:


listen              1935;
max_connections     1000;
daemon              off;
srs_log_tank        file;
srs_log_file        ./objs/srs.log;

http_server {
    enabled         on;
    listen          9090;
    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
    candidate 192.168.100.123;
}

vhost __defaultVhost__ {
    rtc {
        enabled     on;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}

Replay

How to replay bug?

Steps to reproduce the bug

  1. xxxxxx
  2. xxxxxx
  3. xxxxxx

Expect

Expected behavior

Please describe your expectation

Describe what you expect to happen

TRANS_BY_GPT3

Metadata

Assignees

Labels

TransByAITranslated by AI/GPT.WebRTCWebRTC, RTC2RTMP or RTMP2RTC.Won't fixWe won't fix it.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions