SL Posted March 28, 2021 Share Posted March 28, 2021 For switchDesktopCaptureWithCamera, is it possible to have the camera on the left side of the video? currently it can only display on right side of the screen? Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted March 28, 2021 Share Posted March 28, 2021 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 More sharing options...
0 Enes Kuluk Posted March 30, 2021 Share Posted March 30, 2021 Were you successful to make the change? Best Regards, Enes. Link to comment Share on other sites More sharing options...
0 SL Posted March 31, 2021 Author Share Posted March 31, 2021 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 More sharing options...
0 Enes Kuluk Posted March 31, 2021 Share Posted March 31, 2021 I think that would require to move/change more than one function and don't see any reason to do that. I thought it from my initial lookup. If this is must and necessary for you, I can take a deep look at it. Best Regards, Enes. Link to comment Share on other sites More sharing options...
Question
SL
For switchDesktopCaptureWithCamera, is it possible to have the camera on the left side of the video? currently it can only display on right side of the screen?
Link to comment
Share on other sites
Top Posters For This Question
3
2
Popular Days
Mar 28
2
Mar 31
2
Mar 30
1
Top Posters For This Question
Enes Kuluk 3 posts
SL 2 posts
Popular Days
Mar 28 2021
2 posts
Mar 31 2021
2 posts
Mar 30 2021
1 post
4 answers to this question
Recommended Posts