MediaCapture API JS Sample
Input
Description:
This scenario demonstrates how to use the MediaCapture API preview the camera stream, record a video, and take a picture using default initialization settings. You can also adjust the brightness and contast.
Contrast | Brightness |
This scenario shows how to enumerate cameras in the system.
Choose a camera from the list to start previewing from that camera. You can also record or take a photo from the chosen camera. You can add the gray scale effect using the checkbox provided.
This scenario shows how to do an audio only capture using the default microphone.
Click on the "Start Audio Record" button to start recording.
Output
Preview | Captured Video | Captured Photo |
![]() |
Preview | Captured Video | Captured Photo |
![]() |