Skip to main content
Version: 1.1.x

Change Video Input Device - Flutter

During the meeting at any point a participant wishes to switch his/her input video device, it can be done using the below mentioned methods.


  • This method of the Room object will give you the list of all the available cameras which can be shown in a list.

  • This method will return an array of MediaDeviceInfo which will contain the deviceId and label of the camera input device.


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


import 'package:flutter/material.dart';
import 'package:videosdk/videosdk.dart';

class MeetingScreen extends StatefulWidget {

class _MeetingScreenState extends State<MeetingScreen> {
late Room _room;

void initState() {

Widget build(BuildContext context) {
return Column(
child: Text("Change Camera"),
onPressed: () => {
context: context,
builder: (context) => AlertDialog(
title: const Text("Select Camera Device"),
content: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
reverse: true,
child: Column(
children: _room
(device) => ElevatedButton(
child: Text(device.label),
onPressed: () => {

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