UNPKG

@project-sunbird/sunbird-video-player-v9

Version:

The Video player library is powered by Angular. This player is primarily designed to be used on Sunbird consumption platforms _(mobile app, web portal, offline desktop app)_ to drive reusability and maintainability, hence reducing the redundant developmen

64 lines (63 loc) 2.76 kB
import { ChangeDetectorRef, EventEmitter, OnInit, OnChanges, SimpleChanges, ElementRef, AfterViewInit, Renderer2, OnDestroy } from '@angular/core'; import { ErrorService, ISideBarEvent } from '@project-sunbird/sunbird-player-sdk-v9'; import { PlayerConfig } from './playerInterfaces'; import { IAction } from './playerInterfaces'; import { ViewerService } from './services/viewer.service'; import { SunbirdVideoPlayerService } from './sunbird-video-player.service'; import * as i0 from "@angular/core"; export declare class SunbirdVideoPlayerComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges { videoPlayerService: SunbirdVideoPlayerService; viewerService: ViewerService; cdr: ChangeDetectorRef; private renderer2; errorService: ErrorService; playerConfig: PlayerConfig; action?: IAction; playerEvent: EventEmitter<object>; telemetryEvent: EventEmitter<any>; videoPlayerRef: ElementRef; viewState: string; traceId: string; nextContent: any; showContentError: boolean; showControls: boolean; sideMenuConfig: { showShare: boolean; showDownload: boolean; showReplay: boolean; showExit: boolean; }; private unlistenTouchStart; private unlistenMouseMove; isPaused: boolean; showQumlPlayer: boolean; QumlPlayerConfig: any; videoInstance: any; currentInterceptionTime: any; currentInterceptionUIId: any; isFullScreen: boolean; playerAction: IAction; isInitialized: boolean; constructor(videoPlayerService: SunbirdVideoPlayerService, viewerService: ViewerService, cdr: ChangeDetectorRef, renderer2: Renderer2, errorService: ErrorService); onTelemetryEvent(event: any): void; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; raiseInternetDisconnectionError: () => void; ngAfterViewInit(): void; sideBarEvents(event: ISideBarEvent): void; setTelemetryObjectRollup(id: any): void; playContent(event: any): void; replayContent(event: any): void; exitContent(event: any): void; downloadVideo(): void; qumlPlayerEvents(event: any): void; questionSetData({ response, time, identifier }: { response: any; time: any; identifier: any; }): void; playerInstance(event: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SunbirdVideoPlayerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SunbirdVideoPlayerComponent, "sunbird-video-player", never, { "playerConfig": { "alias": "playerConfig"; "required": false; }; "action": { "alias": "action"; "required": false; }; }, { "playerEvent": "playerEvent"; "telemetryEvent": "telemetryEvent"; }, never, never, false, never>; }