Type Alias MediaVideoSource
MediaVideoSource:
| { Kind: "stream"; Stream: MediaStream }
| { Kind: "element"; Attach(element: HTMLVideoElement): () => void }
Type Declaration
- { Kind: "stream"; Stream: MediaStream }
- { Kind: "element"; Attach(element: HTMLVideoElement): () => void }
A source of video to show: a live
MediaStream(a camera, a shared screen, a WebRTC track), or a player that must own the<video>element (MSE or WebCodecs playout of encoded video, such as an avatar). Renderers show either withAttachVideoSource.