For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to change video quality

You can adjust the video quality parameters by creating controls that allow you to set specific values for the resolution and frame rate.

let videoWidth = 320;
let videoHeight = 240;
let frameRate = 12;
...
function setVideoQuality(width, height, frameRate ) {
	let constraints = {};
	if(width)
		constraints.videoWidth = width
	if(height)
		constraints.videoHeight = height
	if(frameRate)
		constraints.frameRate = frameRate
	WTSDK.Participant.setMediaQuality(constraints)
}
...
function changeWidth(width){
	videoWidth = width;
	document.getElementById('width-label').innerHTML = width;
}
function changeHeight(height){
	videoHeight = height;
	document.getElementById('height-label').innerHTML = height;
}
function applyQuality () {
	WTSDK.Participant.setMediaQuality({videoWidth: videoWidth, videoHeight: videoHeight, frameRate: 12})
}

Last updated