Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Nov 30, 2021 · 1 comment
Assignees
Labels
TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. Won't fix We won't fix it.
Milestone

Comments

@lms0311
Copy link

lms0311 commented Nov 30, 2021

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:https://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

@winlinvip
Copy link
Member

winlinvip commented Nov 30, 2021

Your question already exists in the FAQ, please search for webrtc-live in the FAQ: #2716'

Make sure to maintain the markdown structure.

Before SRS 4.0.174, it was working, but after updating, it stopped working because rtc.conf does not enable RTMP to RTC by default. You need to use rtmp2rtc.conf or rtc2rtmp.conf, refer to 71ed6e5.

Make sure to maintain the markdown structure.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Nov 30, 2021
@winlinvip winlinvip added WebRTC WebRTC, RTC2RTMP or RTMP2RTC. Won't fix We won't fix it. labels Nov 30, 2021
@winlinvip winlinvip added this to the 4.0 milestone Nov 30, 2021
@winlinvip winlinvip changed the title srs4.0.161编译后可以播放webrtc,4.0.191和198版本webrtc播放不了 srs4.0.161 can play webrtc after compilation, but webrtc cannot be played in versions 4.0.191 and 4.0.198. Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. Won't fix We won't fix it.
Projects
None yet
Development

No branches or pull requests

2 participants