Skip to main content
Version: 0.1.x

Change Video Input Device - React Native

During the meeting, at any point, a participant wishing to switch their input video device, can do so using the below-mentioned methods.


  • This method of the useMeeting hook will provide you with a list of all the available cameras, which can be displayed in a list.

  • It will return an array of objects, which will contain the deviceId and label of the camera input device.


  • Once you know which device you want to switch the camera input to, you can pass the deviceId to this method to change the camera input device.


import { useEffect, useState } from "react";
import { useMeeting } from "";
import { TouchableOpacity, Text } from "react-native";

const MeetingView = () => {
//Creating two react states to store list of available cameras and selected camera
const [cameras, setCameras] = useState([]);

//Getting the methods to change and get the camera
const { getWebcams, changeWebcam } = useMeeting();

//Method to get the cameras and load in our state
const handleGetWebcams = async () => {
const webcams = await getWebcams();

useEffect(() => {
}, []);

//Changing the camera with the selected deviceId
const handleChangeCamera = (value) => {

return (
// Showing a selector for the availabe cameras
{ => {
return (
onPress={() => {

API Reference

The API references for all the methods and events utilised in this guide are provided below.

Got a Question? Ask us on discord