Ankit Kumar Posted December 4, 2020 Share Posted December 4, 2020 Hi, I want to change the video resolution of webRTC video streaming. I am using enterprise edition of ant media server. Can someone provide any suggestion how can i do ? Link to comment Share on other sites More sharing options...
0 Selim Emre Posted December 4, 2020 Share Posted December 4, 2020 Hi ankitgalaxy1994, Actually, it's related to your camera resolution capability. WebRTC choosing resolution automatically according to your camera. Btw, you can define some changes for mediaConstraints. var mediaConstraints = { video: { width: { min: 480, ideal: 1280, max: 1920 }, height: { min: 360, ideal: 720, max: 1080 } }, audio: true } https://webrtc.github.io/samples/src/content/peerconnection/constraints/ https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints I hope, I could help you. Best Regards, Selim Link to comment Share on other sites More sharing options...
0 Shreeyansh Bhardwaj Posted December 7, 2020 Share Posted December 7, 2020 After setting video constraints screen sharing doesn't work. Link to comment Share on other sites More sharing options...
0 Selim Emre Posted December 7, 2020 Share Posted December 7, 2020 Hi Shreeyansh, You need to configure media constraints according to your requirements. As I know, screen share using a 1080p resolution. So if you use 720p for ideal, it's normal that it won't work. You shouldn't use 720p resolution as an "ideal" parameter for screen sharing. Also please check below links: https://stackoverflow.com/questions/27420581/get-maximum-video-resolution-with-getusermedia https://stackoverflow.com/questions/34789761/instruct-getusermedia-to-use-best-available-camera-resolution https://stackoverflow.com/questions/15849724/capture-high-resolution-video-image-html5 https://www.html5rocks.com/en/tutorials/getusermedia/intro/ Best Regards, Selim Link to comment Share on other sites More sharing options...
Question
Ankit Kumar
Hi,
Link to comment
Share on other sites
Top Posters For This Question
2
1
1
Popular Days
Dec 4
2
Dec 7
2
Top Posters For This Question
Selim Emre 2 posts
Ankit Kumar 1 post
Shreeyansh Bhardwaj 1 post
Popular Days
Dec 4 2020
2 posts
Dec 7 2020
2 posts
3 answers to this question
Recommended Posts