Enode — API Reference
    Preparing search index...

    Function playVideo

    • Start playback without leaving the promise of play() unhandled.

      play() rejects in situations that are part of normal use: the user pauses or seeks before playback has started ("interrupted by a call to pause()"), the platform refuses playback without a fresh user gesture, or the source turns out to be unplayable. None of them needs handling here — an unplayable source also raises the element's own error event, which the players react to — but left unhandled each rejection was filed as a crash report.

      Parameters

      • video: HTMLVideoElement

        the element to play.

      Returns void