ng-cw-v12
Version:
Angular UI Component Library
42 lines (41 loc) • 1.73 kB
TypeScript
import { ElementRef, OnDestroy, SimpleChanges, AfterViewInit, EventEmitter } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import * as i0 from "@angular/core";
export declare class VideoEasyComponent implements AfterViewInit, OnDestroy {
private eleRef;
private sanitizer;
/** 返回播放状态 */
ncPlaying: EventEmitter<boolean>;
/** 返回播放器 */
ncLoaded: EventEmitter<any>;
/** 视频地址 */
ncUrl: string;
/** 超时 */
ncTimeout: number;
/** 播放失败文案 */
ncErrorText: string;
/** 播放超时文案 */
ncTimeoutText: string;
/** 静音 */
private _muted;
set ncMuted(value: boolean | string);
get ncMuted(): boolean | string;
/** 自动播放 */
private _autoplay;
set ncAutoplay(value: boolean | string);
get ncAutoplay(): boolean | string;
viewerUrl: SafeResourceUrl;
private messageListener;
private errorSubject;
private iframeElement;
private playerController;
private uniqueId;
constructor(eleRef: ElementRef, sanitizer: DomSanitizer);
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
private updateVideoUrl;
private sendCommandToIframe;
static ɵfac: i0.ɵɵFactoryDeclaration<VideoEasyComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<VideoEasyComponent, "nc-video-easy", never, { "ncUrl": "ncUrl"; "ncTimeout": "ncTimeout"; "ncErrorText": "ncErrorText"; "ncTimeoutText": "ncTimeoutText"; "ncMuted": "ncMuted"; "ncAutoplay": "ncAutoplay"; }, { "ncPlaying": "ncPlaying"; "ncLoaded": "ncLoaded"; }, never, never>;
}