Web SDK - RainwayConfig.onStreamAnnouncement

Home > rainway-sdk > RainwayConfig > onStreamAnnouncement

RainwayConfig.onStreamAnnouncement property

Called when a remote peer has a media stream it wants this peer to know about.

Use RainwayStreamAnnouncement.join to start consuming the stream.

Signature:

onStreamAnnouncement?: (runtime: RainwayRuntime, peer: RainwayPeer, announcement: RainwayStreamAnnouncement) => void;