Closed cloudwebrtc closed 8 months ago
There are several breaking changes between v1 and v2. Please consult our migration guide when upgrading to v2.
Room.participants
Room.remoteParticipants
Room.{audio/video}Tracks
Room.{audio/video}TrackPublications
LocalParticipant.publishData
Room.sid
await room.getSid();
VideoQuality.OFF
VideoQuality
LiveKitClient.connect
var room = Room(...)
room.connect
track in TrackMutedEvent/TrackUnmutedEvent
publication
TrackStreamStateUpdatedEvent.trackPublication
TrackStreamStateUpdatedEvent.publication
RemotePublication.videoQuality
RemotePublication.setVideoQuality(quality)
RemotePublication.subscribed
RemotePublication.subscribe()
unsubscribe()
RemotePublication.enabled
RemotePublication.enable()
disable()
Participant.unpublishTrack
Participant.removePublishedTrack
AudioPublishOptions.stopMicTrackOnMute
2.0.0
Breaking Changes
There are several breaking changes between v1 and v2. Please consult our migration guide when upgrading to v2.
Room.participants
was renamed toRoom.remoteParticipants
Room.{audio/video}Tracks
was renamed toRoom.{audio/video}TrackPublications
LocalParticipant.publishData
now uses participant identity as destinations instead of participant sids.Room.sid
now changed toawait room.getSid();
.VideoQuality.OFF
fromVideoQuality
enum.Removal of previously deprecated APIs
LiveKitClient.connect
- Please usevar room = Room(...)
androom.connect
instead.track in TrackMutedEvent/TrackUnmutedEvent
- Usepublication
insteadTrackStreamStateUpdatedEvent.trackPublication
- UseTrackStreamStateUpdatedEvent.publication
insteadRemotePublication.videoQuality
- UseRemotePublication.setVideoQuality(quality)
insteadRemotePublication.subscribed
- UseRemotePublication.subscribe()
orunsubscribe()
insteadRemotePublication.enabled
- UseRemotePublication.enable()
ordisable()
insteadParticipant.unpublishTrack
- UseParticipant.removePublishedTrack
insteadAudioPublishOptions.stopMicTrackOnMute
Other changes