Options
All
  • Public
  • Public/Protected
  • All
Menu

Player input from video

Hierarchy

  • Video

Implements

Index

Constructors

Methods

Constructors

constructor

  • new Video(source: string, options?: Partial<Pick<HTMLVideoElement, "loop">>): Video
  • new Video(source: Blob, options?: Partial<Pick<HTMLVideoElement, "loop">>): Video
  • Creates Video input from the given Url

    example
    const video = new Video("https://www.youtube.com/watch?v=sv4EWcMs3xE")
    

    Parameters

    • source: string
    • Optional options: Partial<Pick<HTMLVideoElement, "loop">>

    Returns Video

  • Creates Video input from the given Blob

    example
    const file = $("#file-input").files[0] // File is subclass of Blob
    const video = new Image(file, { loop: true })
    

    Parameters

    • source: Blob
    • Optional options: Partial<Pick<HTMLVideoElement, "loop">>

    Returns Video

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](options?: InputOptions): AsyncGenerator<ImageData, void, unknown>

stop

  • stop(): void
  • Stops underlying video

    Returns void