import type { AtomPlayerConfig } from "../AtomPlayer"; import { AtomPlayer } from "../AtomPlayer"; export interface NativeVideoPlayerConfig extends AtomPlayerConfig { video: HTMLVideoElement; } /** * **Note**: to play with HLS, * ```js * if (/\.m3u8/i.test(videoSRC) && Hls.isSupported()) { * const hls = new Hls(); * hls.loadSource(videoSRC); * hls.attachMedia($video); * } else if ($video.canPlayType("application/vnd.apple.mpegurl")) { * $video.src = videoSRC; * } * ``` */ export declare class NativeVideoPlayer extends AtomPlayer { private readonly video; constructor(config: NativeVideoPlayerConfig); protected readyImpl(): Promise; protected playImpl(): Promise; protected pauseImpl(): Promise; protected stopImpl(): Promise; protected seekImpl(ms: number): Promise; protected setPlaybackRateImpl(value: number): void; }