Skip to main content
Version: 1.0.x

Migration Notes

This page will guide you to migrate from previous version of Flutter SDK.

Migration to v1.0.0 from v0.0.14

  1. We have renamed Meeting class to Room class.

  2. Import package:videosdk/videosdk.dart instead of package:videosdk/rtc.dart.

    For Example:

    v0.0.14
    import "package:videosdk/rtc.dart";
    v1.0.0
    import "package:videosdk/videosdk.dart";
  3. Replace MeetingBuilder with VideoSDK.createRoom() and join().

    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();

  4. Change event Events.meetingJoined to Events.roomJoined.

    For Example:

    v0.0.14
    meeting.on(Events.meetingJoined, (){
    // Do Something
    })
    v1.0.0
    room.on(Events.roomJoined, (){
    // Do Something
    })
  5. Change event Events.meetingLeft to Events.roomLeft.

    For Example:

    v0.0.14
    meeting.on(Events.meetingLeft, (){
    // Do Something
    })
    v1.0.0
    room.on(Events.roomLeft, (){
    // Do Something
    })
  6. Change event Events.webcamRequested to Events.cameraRequested.

    For Example:

    v0.0.14
    meeting.on(Events.webcamRequested, (){
    // Do Something
    })
    v1.0.0
    room.on(Events.cameraRequested, (){
    // Do Something
    })
  7. Change enableMic() method to unmuteMic() method of Participant Class.

    For Example:

    v0.0.14
    participant.enableMic();
    v1.0.0
    participant.unmuteMic();
  8. Change disableMic() method to muteMic() method of Participant Class.

    For Example:

    v0.0.14
    participant.disableMic();
    v1.0.0
    participant.muteMic();
  9. Change enableWebcam() method to enableCam() method of Participant class.

    For Example:

    v0.0.14
    participant.enableWebcam();
    v1.0.0
    participant.enableCam();
  10. Change disableWebcam() method to disableCam() method of Participant class.

For Example:

v0.0.14
participant.disableWebcam();
v1.0.0
participant.disableCam();
  1. Change enableWebcam() method to enableCam() method of Room class.

For Example:

v0.0.14
meeting.enableWebcam();
v1.0.0
room.enableCam();
  1. Change disableWebcam() method to disableCam() method of Room class.

For Example:

v0.0.14
meeting.disableWebcam();
v1.0.0
room.disableCam();
  1. Change getWebcams() method to getCameras() method of Room class.

For Example:

v0.0.14
meeting.getWebcams();
v1.0.0
room.getCameras();
  1. Change changeWebcam() method to changeCam() method of Room class.

For Example:

v0.0.14
meeting.changeWebcam(deviceId);
v1.0.0
room.changeCam(deviceId);
  1. Change selectedWebcamId property to selectedCamId on Room class.

For Example:

v0.0.14
String webCamId = meeting.selectedWebcamId;
v1.0.0
String webCamId = meeting.selectedCamId;