ngx-lite-video
Version:
ngx-lite-video is an Angular package for lazy loading embedded YouTube and Vimeo videos, improving page speed and user experience.
69 lines (68 loc) • 2.12 kB
TypeScript
import { OnChanges, OnInit } from '@angular/core';
import { SafeUrl } from '@angular/platform-browser';
import { BehaviorSubject } from 'rxjs';
import { ThumbSize } from '../../models';
import { NgxLiteVideoGeneralService } from '../../services/ngx-lite-video-general-service.service';
import * as i0 from "@angular/core";
export declare class NgxLiteYoutubeComponent implements OnInit, OnChanges {
private __ngxService;
_showIframe$: BehaviorSubject<boolean>;
_bannerSrc: string;
_videoUrl: SafeUrl;
/**
* Video ID to be viewed
* @type string
* @Required true
*/
videoId: string;
/**
* Title to be displayed in lazy mode
* @type string
*/
videoTitle: string;
/**
* Lazy image quality
* @type ThumbSize
* @default 'high'
*/
thumbQuality: ThumbSize;
/**
* Shows/hides video controls in iframe
* @type boolean
* @default true
*/
hasControls: boolean;
/**
* Enables video looping
* @type boolean
* @default false
*/
loop: boolean;
/**
* Sets starting video time (in seconds)
* @type number
*/
start: number;
/**
* Enables/disables fullscreen button in iframe
* @type boolean
* @default true
*/
allowFullScreen: boolean;
/**
* Sets ending video time (in seconds)
* @type number
*/
end: number;
/**
* External styling class
* @type string
*/
styleClass: string;
constructor(__ngxService: NgxLiteVideoGeneralService);
ngOnInit(): void;
ngOnChanges(): void;
init(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxLiteYoutubeComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxLiteYoutubeComponent, "ngx-lite-youtube", never, { "videoId": "videoId"; "videoTitle": "videoTitle"; "thumbQuality": "thumbQuality"; "hasControls": "hasControls"; "loop": "loop"; "start": "start"; "allowFullScreen": "allowFullScreen"; "end": "end"; "styleClass": "styleClass"; }, {}, never, never>;
}