You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
rtc {
enabled on;
rtc_to_rtmp on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
}
It is the default rtc2rtmp.conf.
Replay
How to replay bug?
Steps to reproduce the bug
Steps to replay the bug:
Start SRS: ./objs/srs -c conf/rtc2rtmp.conf
Modify line 50 in /path/to/srs/trunk/objs/nginx/html/players/js/srs.sdk.js from navigator.mediaDevices.getUserMedia to navigator.mediaDevices.getDisplayMedia
Access http://localhost:8080/players/rtc_publisher.html?autostart=true to perform RTC screen sharing streaming
Access http://localhost:8080/players/srs_player.html?autostart=true to view the FLV stream video. After watching for a while, an error occurs.
Expected behavior (Expect)
> Hope that getDisplayMedia can work properly like getUserMedia.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered:
Calculate the correct payload_size which pure padding data, in the process of rtc2rtmp, make Chrome happy (#2461)
* Calculate the correct payload_size which pure padding data, in the process of rtc2rtmp, make Chrome happy
* make clear for magic number
make clear for magic number
* Update srs_app_rtc_source.cpp
winlinvip
changed the title
使用rtc2rtmp时,用getDisplayMedia推流,播放flv出错
When using rtc2rtmp, an error occurs when streaming with getDisplayMedia and playing flv.
Jul 28, 2023
Description'
Please ensure that you maintain the markdown structure.
4.0release
latest version compiled after git cloneIt is the default rtc2rtmp.conf.
Replay
How to replay bug?
Steps to replay the bug:
./objs/srs -c conf/rtc2rtmp.conf
/path/to/srs/trunk/objs/nginx/html/players/js/srs.sdk.js
fromnavigator.mediaDevices.getUserMedia
tonavigator.mediaDevices.getDisplayMedia
http://localhost:8080/players/rtc_publisher.html?autostart=true
to perform RTC screen sharing streaminghttp://localhost:8080/players/srs_player.html?autostart=true
to view the FLV stream video. After watching for a while, an error occurs.Expected behavior (Expect)
> Hope that
getDisplayMedia
can work properly likegetUserMedia
.TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: