ng-cw-v12
Version:
Angular UI component library
43 lines (42 loc) • 1.82 kB
TypeScript
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
import Hls from 'hls.js';
import { LocalService } from './local.service';
import * as i0 from "@angular/core";
export declare class VideoComponent implements OnInit, OnDestroy {
private eleRef;
private ls;
video: HTMLVideoElement;
hls: Hls;
flv: any;
videoUrl: string;
videoHover: boolean;
playError: boolean;
set ncUrl(value: string);
ncCoverUrl: string;
ncLoaded: EventEmitter<HTMLVideoElement>;
ncPlaying: EventEmitter<boolean>;
set ncMuted(value: boolean | string);
set ncAutoplay(value: boolean | string);
set ncLoop(value: boolean | string);
set ncFill(value: boolean | string);
set ncScreenshot(value: boolean | string);
set ncCover(value: boolean | string);
set ncControls(value: boolean | string);
mutedMode: boolean;
autoplayMode: boolean;
loopMode: boolean;
fillMode: boolean;
screenshotMode: boolean;
coverMode: boolean;
controlsMode: boolean;
constructor(eleRef: ElementRef, ls: LocalService);
ngOnInit(): void;
ngOnDestroy(): void;
initVideo(): Promise<void>;
screenshot(): void;
destroyAll(): void;
destroyVideo(video: HTMLVideoElement): void;
captureVideoFrame(url: string, time?: number): Promise<string>;
static ɵfac: i0.ɵɵFactoryDeclaration<VideoComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<VideoComponent, "nc-video", never, { "ncUrl": "ncUrl"; "ncCoverUrl": "ncCoverUrl"; "ncMuted": "ncMuted"; "ncAutoplay": "ncAutoplay"; "ncLoop": "ncLoop"; "ncFill": "ncFill"; "ncScreenshot": "ncScreenshot"; "ncCover": "ncCover"; "ncControls": "ncControls"; }, { "ncLoaded": "ncLoaded"; "ncPlaying": "ncPlaying"; }, never, never>;
}