Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1135 Discussions

How to set resolutions for video camera with the Javascript SDK

Zhen_L_
Beginner
95 Views

Woogeen.LocalStream.create({

    video: {

        device: 'camera',

        resolution: 'vga',

        frameRate: 25

    },

    audio: true

}

This creates a video stream with 640px width and 480px height.

 

I wish to have 480 width and 640px height. Is it possible? I need to do this so that the stream can be easily fitted on a phone screen. But how do I reverse the width and height of VGA?

0 Kudos
1 Reply
Jianjun_Z_Intel
Employee
95 Views

Hi Zhen,

Please try to use an object instead of a string for resolution. The object has two properties: width and height. In your case, it could be something like {width: 480, height: 640}.

This is not mentioned in the API reference guide. So it is not fully tested. But I hope it works for you.

Reply