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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...