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.
20 lines (19 loc) • 1.12 kB
TypeScript
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
import { ThumbSize, VimeoLazyData } from '../models';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class NgxLiteVideoGeneralService {
private __domSanitizer;
private __http;
private readonly __youtubeSizes;
private readonly __thumbHelper;
constructor(__domSanitizer: DomSanitizer, __http: HttpClient);
getYouTubeBanner(videoId: string, quality: ThumbSize): string;
getYouTubeUrl(videoId: string, hasControls: boolean, allowFullScreen: boolean, loop: boolean, start: number, end: number): SafeUrl;
getVimeoVideoUrl(videoId: string, hasControls: boolean, loop: boolean, isBackground: boolean): SafeUrl;
getVimeoBanner(videoId: string, quality: ThumbSize): Observable<VimeoLazyData>;
hasNoVideoId(videoId: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxLiteVideoGeneralService, [null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxLiteVideoGeneralService>;
}