I am trying to set default video quality for video like this (from the example) :
createLocalTracks({
audio: true,
video: { width: 640 }
}).then(localTracks => {
return connect('$TOKEN', {
name: 'my-room-name',
tracks: localTracks
});
}).then(room => {
console.log('Connected to Room:', room.name);
});
instead of width : 640 i want to set dynamic resolution for the video base on user's internet connection. How can I do that?