Web
This document describes how an anchor publishes audio/video streams. "Publishing" refers to turning on the mic and camera to make the audio heard and video seen by other users in the room.
Step 1. Enter Room
Step 2. Turn on camera
// To preview the camera image, you need to place an HTMLElement in the DOM, which can be a div tag, assuming its id is local-video.const view = 'local-video';await trtc.startLocalVideo({ view });
Step 3. Turn on microphone
await trtc.startLocalAudio();