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
Meeting
class toRoom
class.Import
package:videosdk/videosdk.dart
instead ofpackage:videosdk/rtc.dart
.For Example:
v0.0.14import "package:videosdk/rtc.dart";
v1.0.0import "package:videosdk/videosdk.dart";
Replace MeetingBuilder with
VideoSDK.createRoom()
andjoin()
.For Example:
v0.0.14// 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
}
),v1.0.0// 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.meetingJoined
toEvents.roomJoined
.For Example:
v0.0.14meeting.on(Events.meetingJoined, (){
// Do Something
})v1.0.0room.on(Events.roomJoined, (){
// Do Something
})Change event
Events.meetingLeft
toEvents.roomLeft
.For Example:
v0.0.14meeting.on(Events.meetingLeft, (){
// Do Something
})v1.0.0room.on(Events.roomLeft, (){
// Do Something
})Change event
Events.webcamRequested
toEvents.cameraRequested
.For Example:
v0.0.14meeting.on(Events.webcamRequested, (){
// Do Something
})v1.0.0room.on(Events.cameraRequested, (){
// Do Something
})Change
enableMic()
method tounmuteMic()
method ofParticipant Class
.For Example:
v0.0.14participant.enableMic();
v1.0.0participant.unmuteMic();
Change
disableMic()
method tomuteMic()
method ofParticipant Class
.For Example:
v0.0.14participant.disableMic();
v1.0.0participant.muteMic();
Change
enableWebcam()
method toenableCam()
method ofParticipant class
.For Example:
v0.0.14participant.enableWebcam();
v1.0.0participant.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
selectedWebcamId
property toselectedCamId
onRoom class
.
For Example:
String webCamId = meeting.selectedWebcamId;
String webCamId = meeting.selectedCamId;
Got a Question? Ask us on discord