Avena Webapp API - v0.0.1
    Preparing search index...

    Function playLiveMp4

    • Starts playing url into video and keeps it live until stopped.

      Parameters

      • video: HTMLVideoElement

        The element to play into; it should be muted so autoplay is allowed.

      • url: string

        A same-origin URL serving fragmented MP4 with its codecs in the Content-Type header.

      • onLive: (live: boolean) => void

        Called with true once frames are playing and false while (re)connecting.

      Returns () => void

      A function that stops playback, ends the request and stops reconnecting.