Interface VideoDecoder

Hierarchy

  • VideoDecoder

Properties

getFrameData: (() => FrameDataOptions)

Type declaration

seek: ((position: number) => Promise<void>)

Type declaration

    • (position: number): Promise<void>
    • Parameters

      • position: number

        跳转的解码位置,单位 ms

      Returns Promise<void>

start: ((option: VideoDecoderStartOption) => Promise<any>)

Type declaration

remove: (() => Promise<any>)

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

off: ((eventName: string, callback: ((...args: any[]) => any)) => void)

Type declaration

    • (eventName: string, callback: ((...args: any[]) => any)): void
    • Parameters

      • eventName: string

        事件名

      • callback: ((...args: any[]) => any)

        事件触发时执行的回调函数

          • (...args: any[]): any
          • 事件触发时执行的回调函数

            Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

on: ((eventName: "start" | "stop" | "seek" | "bufferchange" | "ended", callback: ((...args: any[]) => any)) => void)

Type declaration

    • (eventName: "start" | "stop" | "seek" | "bufferchange" | "ended", callback: ((...args: any[]) => any)): void
    • Parameters

      • eventName: "start" | "stop" | "seek" | "bufferchange" | "ended"

        事件名

        参数 eventName 可选值:

        • 'start': 开始事件。返回 { width, height };
        • 'stop': 结束事件。;
        • 'seek': seek 完成事件。;
        • 'bufferchange': 缓冲区变化事件。;
        • 'ended': 解码结束事件。;
      • callback: ((...args: any[]) => any)

        事件触发时执行的回调函数

          • (...args: any[]): any
          • 事件触发时执行的回调函数

            Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

Generated using TypeDoc