Jump to content
  • 0

For switchDesktopCaptureWithCamera, camera on right side of the screen.


SL
 Share

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Could you check these lines? https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/js/webrtc_adaptor.js#L119-L177

I think you need to look at webrtc_adaptor.js and the function  setDesktopwithCameraSource
Modifying positionX and positionY would change the position of the camera. 

Best Regards,
Enes.

 

Link to comment
Share on other sites

  • 0

Yes. I just make this changes inside the SDK 

var positionX = (canvas.width - cameraWidth) - this.camera_margin
to
var positionX = this.camera_margin

Just another questions, how to override this function without modify the SDK directly?

Link to comment
Share on other sites

 Share

×
×
  • Create New...