Reputation: 49884
I tried to get 1:1 aspect ratio video in WebRTC.
But when I use this setting, I still get a 4:3 aspect ratio video.
constraints = {
audio: true,
video: { width: 240, height: 240 }
};
Check this jsfiddle.
How can I do it correctly? Thanks
Upvotes: 2
Views: 255
Reputation: 49884
I found the solution. After adding latest adapter.js (version 1.0.7) as external resources, it works perfect now.
The codes no need change, still same
constraints = {
audio: true,
video: { width: 240, height: 240 }
};
The working jsfiddle is here.
Hope this helps people who has similar problems.
Upvotes: 1