Description
When using Android WebView to connect to SRS WebRTC, the video cannot be displayed and there is an error in the background. This issue occurs on Android 8, and it persists across WebView versions 60 to 91.
1. SRS Version:4
1. SRS Log:
1. SRS Configuration:
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 9000;
#
# 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;
nack on;
twcc on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
dvr {
enabled on;
dvr_path ./recording/[app]/[stream]_[timestamp].flv;
dvr_plan session;
}
http_hooks {
enabled on;
on_dvr http://192.168.4.24:9099/hooks;
on_connect http://192.168.4.24:9099/hooks;
}
play {
# set the MW(merged-write) latency in ms.
# @remark For WebRTC, we enable pass-timestamp mode, so we ignore this config.
# default: 0 (For WebRTC)
mw_latency 0;
# Set the MW(merged-write) min messages.
# default: 0 (For Real-Time, that is min_latency on)
# default: 1 (For WebRTC, that is min_latency off)
mw_msgs 0;
}
}
Replay
How to replay bug?
Steps to reproduce the bug
Currently identified issue is that webview does not support SRS video format, attached is the SDP.
Description When using Android WebView to connect to SRS WebRTC, the video cannot be displayed and there is an error in the background. This issue occurs on Android 8, and it persists across WebView versions 60 to 91.
1. SRS Version:
4
1. SRS Log:
1. SRS Configuration:
Replay
How to replay bug?
Currently identified issue is that webview does not support SRS video format, attached is the SDP.
android SDP:
SRS SDP:
Make sure to maintain the markdown structure.
Expected Behavior (Expect)
Make sure to maintain the markdown structure.
Make sure to maintain the markdown structure.
Make sure to maintain the markdown structure.
TRANS_BY_GPT3