Basic-Video-Broadcasting icon indicating copy to clipboard operation
Basic-Video-Broadcasting copied to clipboard

switchDevice() is not working in some devices using v2.6.1

Open monumehta opened this issue 5 years ago • 7 comments

monumehta avatar May 03 '19 06:05 monumehta

I am getting DOM exception from agora js in few devices. I haven't found any pattern yet though.

shubhamparamhans avatar May 03 '19 09:05 shubhamparamhans

@monumehta is there any error logs for reference?

plutoless avatar May 04 '19 11:05 plutoless

@shubhamparamhans could you pls paste the dom exception logs so that we can analyze?

plutoless avatar May 04 '19 11:05 plutoless

agora-1

This is the error i see in console, when i use switchDevice. Interesting thing is that i happens for few devices. I checked the length of getDevices it was two but somehow on switching this DOM exception was visible in console

shubhamparamhans avatar May 04 '19 12:05 shubhamparamhans

@shubhamparamhans what kind of device are you getting these issues? Could you pls share me some device names which i can use to reproduce?

plutoless avatar May 05 '19 03:05 plutoless

@plutoless redmi note 4, moto e4 plus, honor 6s On these devices switch camera was not working.

shubhamparamhans avatar May 06 '19 05:05 shubhamparamhans

@shubhamparamhans yes you are right we have some issues for some devices you mentioned above. The reason is those devices do not allow openning front/back camera at the same time. The exception is basically complaining that. We have realized the issue and is arranging a fix in next major version but this takes some time. If you want to work around this issue you may first close 1st camera's local stream, and then create the second camera stream to achieve similar experience

plutoless avatar May 08 '19 07:05 plutoless