Function attachMediaStream

  • Attach a given media stream to a HTMLVideoElement.

    This function sets the source of the video element to the provided media stream. It supports different ways of attaching the stream based on browser compatibility.

    Parameters

    • videoElement: HTMLVideoElement

      The HTMLVideoElement to which the media stream will be attached.

    • stream: MediaStream

      The MediaStream to be attached to the video element.

    Returns void

Generated using TypeDoc