DoubangoTelecom / sipml5

The world's first HTML5 SIP client (WebRTC)
BSD 3-Clause "New" or "Revised" License
939 stars 456 forks source link

Call without checking for a camera and a microphone. How make? Who can do? Ready to pay for this task $. #303

Open leadercs opened 6 years ago

leadercs commented 6 years ago

How make a call without checking for a camera and a microphone? We have a to profile: presenter and member For the presenter it is possible to talk and show the camera, for the member only the viewing and listening mode without checking for equipment on call.

Who can do? Ready to pay for this task $. write to mail buraevvm@gmail.com

Found this code: navigator.getUserMedia({ audio: (this.e_type == tmedia_type_e.SCREEN_SHARE) ? false : !!(this.e_type.i_id & tmedia_type_e.AUDIO.i_id), video: !!(this.e_type.i_id & tmedia_type_e.VIDEO.i_id) ? d : false, data: false }, tmedia_session_jsep01.mozThis ? tmedia_session_jsep01.onGetUserMediaSuccess : function (e) { tmedia_session_jsep01.onGetUserMediaSuccess(e, c) }, tmedia_session_jsep01.mozThis ? tmedia_session_jsep01.onGetUserMediaError : function (e) { tmedia_session_jsep01.onGetUserMediaError(e, c) })

And replaced it with: tmedia_session_jsep01.onGetUserMediaSuccess(__o_js ep_stream_audiovideo, c)

But only works in Chrome.

How correctly to disconnect check of the equipment?

bsuligoj commented 6 years ago

Due to security restrictions I don't think this is possible. Maybe just making a call would be possible, but the side without accepting permission to microphone would not be heard.