Create a LocalVideoTrack. The track is a sink for caller-supplied
frames, delivered via LocalVideoTrack.write. Frames pushed before
the room emits connected are silently dropped.
If options.name is provided and is not a non-empty string.
Example
// Create a track and connect with it. constvideoTrack = createLocalVideoTrack('camera'); constroom = awaitconnect(token, { videoTracks: [videoTrack] });
Example
// Add video to an already-connected room. constvideoTrack = createLocalVideoTrack({ name:'camera' }); room.localParticipant.publishTrack(videoTrack);
Create a LocalVideoTrack. The track is a sink for caller-supplied frames, delivered via LocalVideoTrack.write. Frames pushed before the room emits
connectedare silently dropped.