-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
WebRTC: Failed to push stream on HTTP page, Cannot read properties of undefined (reading 'getUserMedia') #2762
Comments
Front-end access example page: Front-end error log: Expected behavior (Expect):
|
This is a basic permission issue with WebRTC. Cannot read properties of undefined (reading 'getUserMedia')
The meaning is: You must use a webpage with HTTPS (or localhost) to access the I have improved srs.sdk.js to provide clearer prompts.
This way, the problems will be clearer.
|
|
Description
Reproduction Steps:
Default rtc.conf configuration file.
Replay
Please make sure to maintain the markdown structure.
docker pull registry.cn-hangzhou.aliyuncs.com/ossrs/srs:4
CANDIDATE="xx.xxx.xx.xxx"
docker run --rm -it --env CANDIDATE=$CANDIDATE -p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp registry.cn-hangzhou.aliyuncs.com/ossrs/srs:4 objs/srs -c conf/rtc.conf
Please make sure to maintain the markdown structure.
Front-end error log:
?eip=x.x.x.x to overwrite candidate. Overwrite server candidate (public IP) configuration.
Please make sure to maintain the markdown structure.
rtc_publisher.html?autostart=true:104 TypeError: Cannot read properties of undefined (reading 'getUserMedia')
at Object.SrsRtcPublisherAsync.self.publish (srs.sdk.js:50)
at startPublish (rtc_publisher.html?autostart=true:98)
at rtc_publisher.html?autostart=true:115
(anonymous) @ rtc_publisher.html?autostart=true:104
rtc_publisher.html?autostart=true:104 TypeError: Cannot read properties of undefined (reading 'getUserMedia')
at Object.SrsRtcPublisherAsync.self.publish (srs.sdk.js:50)
at HTMLButtonElement.startPublish (rtc_publisher.html?autostart=true:98)
at HTMLButtonElement.dispatch (jquery-1.10.2.min.js:5)
at HTMLButtonElement.v.handle (jquery-1.10.2.min.js:5)
Expected Behavior (Expect)
The SRS4 service deployed on Alibaba Cloud ECS through Docker should be able to push RTC streams normally.
Please make sure to maintain the markdown structure.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: