LocalTrackPublication<T extends LocalTrack> constructor
- {required LocalParticipant participant,
- required TrackInfo info,
- required T track}
Implementation
LocalTrackPublication({
required this.participant,
required lk_models.TrackInfo info,
required T track,
}) : super(info: info) {
updateTrack(track);
// register dispose func
onDispose(() async {
// this object is responsible for disposing track
await this.track?.dispose();
});
}