Migration Notes - Flutter
This page will guide you to migrate from previous version of Flutter SDK.
Migration to v1.0.0 from v0.0.14
-
We have renamed
Meetingclass toRoomclass. -
Import
package:videosdk/videosdk.dartinstead ofpackage:videosdk/rtc.dart.For Example:
import "package:videosdk/rtc.dart";import "package:videosdk/videosdk.dart"; -
Replace MeetingBuilder with
VideoSDK.createRoom()andjoin().For Example:
// MeetingBuilder
MeetingBuilder(
meetingId: '<MEETING_ID>',
token: '<TOKEN>',
displayName: '<DISPLAY_NAME>',
micEnabled: true,
webcamEnabled: true,
maxResolution: 'hd',
notification: const NotificationInfo(
title: "Video SDK",
message: "Video SDK is sharing screen in the meeting",
icon: "notification_share",
),
builder: (_meeting){
// Do Something
}
),// Creating VideoSDK Room
Room room = VideoSDK.createRoom(
roomId: '<ROOM_ID>',
token: '<TOKEN>',
displayName: '<DISPLAY_NAME>',
micEnabled: true,
camEnabled: true,
maxResolution: 'hd',
notification: const NotificationInfo(
title: "Video SDK",
message: "Video SDK is sharing screen in the meeting",
icon: "notification_share",
),
);
// Joining VideoSDK Room
room.join(); -
Change event
Events.meetingJoinedtoEvents.roomJoined.For Example:
meeting.on(Events.meetingJoined, (){
// Do Something
})room.on(Events.roomJoined, (){
// Do Something
}) -
Change event
Events.meetingLefttoEvents.roomLeft.For Example:
meeting.on(Events.meetingLeft, (){
// Do Something
})room.on(Events.roomLeft, (){
// Do Something
}) -
Change event
Events.webcamRequestedtoEvents.cameraRequested.For Example:
meeting.on(Events.webcamRequested, (){
// Do Something
})room.on(Events.cameraRequested, (){
// Do Something
}) -
Change
enableMic()method tounmuteMic()method ofParticipant Class.For Example:
participant.enableMic();participant.unmuteMic(); -
Change
disableMic()method tomuteMic()method ofParticipant Class.For Example:
participant.disableMic();participant.muteMic(); -
Change
enableWebcam()method toenableCam()method ofParticipant class.For Example:
participant.enableWebcam();participant.enableCam(); -
Change
disableWebcam()method todisableCam()method ofParticipant class.
For Example:
participant.disableWebcam();
participant.disableCam();
- Change
enableWebcam()method toenableCam()method ofRoom class.
For Example:
meeting.enableWebcam();
room.enableCam();
- Change
disableWebcam()method todisableCam()method ofRoom class.
For Example:
meeting.disableWebcam();
room.disableCam();
- Change
getWebcams()method togetCameras()method ofRoom class.
For Example:
meeting.getWebcams();
room.getCameras();
- Change
changeWebcam()method tochangeCam()method ofRoom class.
For Example:
meeting.changeWebcam(deviceId);
room.changeCam(deviceId);
- Change
selectedWebcamIdproperty toselectedCamIdonRoom class.
For Example:
String webCamId = meeting.selectedWebcamId;
String webCamId = meeting.selectedCamId;
Got a Question? Ask us on discord

