getUserMedia() is deprecated on insecure origins, and support will be removed in the future.

918 views
Skip to first unread message

王一

unread,
Sep 7, 2015, 10:30:40 PM9/7/15
to EasyRTC

Hi Eric,

My program works well until met the follow error on Chrome.

getUserMedia() is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
video:267 easyrtc.error[code=MEDIA_WARNING errorText:Requested video size of 600x450 but got size of 2x2]
video:267 easyrtc.error[code=MSG_REJECT_BAD_STRUCTURE errorText:Message rejected. The provided structure is improper.]


For "getUserMedia() is deprecated on insecure origins, and support will be removed in the future..." why it works well on my pc and encounter problem on other's pc. Must I used HTTPS?

For the "MEDIA_WARNING errorText:Requested video size of 600x450 but got size of 2x2", 
I use "easyrtc.setVideoDims(600, 450);" before "easyrtc.easyApp(...)", Can't I setup video width:600 & hight:450  (this warning shows always, for it is warning I ignore it )? How Can I setup the video to fit for UI? 

For the last one I think it caused by 'getUserMedia() is deprecated on insecure origins....', Is it?

Eric Davies

unread,
Sep 8, 2015, 12:36:29 AM9/8/15
to EasyRTC
Fascinating! Looks like this is a new feature in Chrome. See 
Guess they got tired of outsiders waving a red flag about webrtc being a security hole.

As for asking for 600x450, there are only certain camera resolutions that chrome supports. See https://webrtchacks.com/how-to-figure-out-webrtc-camera-resolutions/ . If you ask for a resolution that isn't available, you usually get 640x480 thing, and a warning message. The solution is to only ask for an acceptable resolution.

Reply all
Reply to author
Forward
0 new messages