Web SDK
In a browser, publishing is handled by the Web SDK. It captures the camera and microphone itself, so a few lines are enough:
session
.createStream({
name: 'alice-live',
display: localPreview,
constraints: {
video: { width: 1280, height: 720 },
audio: true,
},
})
.publish();The stream name is set by name: 'alice-live': viewers play the stream by this name.













