Objective
To check if you have a camera in your system that supports FHD(1080p)
Applies To
- Vonage Video API
- Resolution
- FHD
Procedure
Users can check the manufacturer information for a specific device or built-in camera to confirm if the camera supports FHD(1080p).
You can use the following code in the browser console or include it inside your application and this will warn if the camera can't capture FHD(1080p).
const constraints = {
audio: true,
video: {
width: {
min: 1920
},
height: {
min: 1080
}
}
}
let stream;
try {
stream = navigator.mediaDevices.getUserMedia(constraints);
} catch (err) {
// console.log(err)
if (err.name === 'OverconstrainedError') {
console.warn('1080p is not supported on this camera');
}
}
Alternatively, you can also check for overConstrained errors on the browser level using the following utility to scan the camera and verify if it supports FHD(1080p) or not: https://webrtchacks.github.io/WebRTC-Camera-Resolution/
Additional Information
For additional information, refer to our developer docs on the 1080p resolution.
Related to:
Articles in this section
- Meetings API - Migration Options
- How to use Experience Composer
- Video API (in unified environment) Trial
- Does Vonage Video API have code samples available?
- Where do I find documentation on Vonage Video API?
- Do you have any sample apps or demos for Vonage Video API?
- How can I quickly build a Video API prototype?
- How can I build a web-to-mobile interoperable app with the Video API?
- How to Access the Live Chat with Support Agent
- How can I build a multi-party conferencing app?