UNPKG

dictrigyn-video-player

Version:

Contains Video player library components powered by angular. These components are designed to be used in sunbird consumption platforms *(mobile app, web portal, offline desktop app)* to drive reusability, maintainability hence reducing the redundant devel

59 lines (58 loc) 2.15 kB
import { HttpClient } from '@angular/common/http'; import { EventEmitter } from '@angular/core'; import { PlayerConfig, Transcripts } from '../playerInterfaces'; import { SunbirdVideoPlayerService } from '../sunbird-video-player.service'; import { UtilService } from './util.service'; import { QuestionCursor } from '@project-sunbird/sunbird-quml-player-v9'; export declare class ViewerService { private videoPlayerService; private utilService; private http; questionCursor: QuestionCursor; endPageSeen: boolean; timeSpent: string; private version; playerEvent: EventEmitter<any>; contentName: string; showDownloadPopup: boolean; streamingUrl: string; mimeType: string; artifactMimeType: string; userName: string; metaData: any; PlayerLoadStartedAt: number; totalLength: any; currentlength: any; totalSeekedLength: any; artifactUrl: any; visitedLength: any; sidebarMenuEvent: EventEmitter<any>; traceId: string; isAvailableLocally: boolean; interceptionPoints: any; interceptionResponses: any; showScore: boolean; scoreObtained: any; maxScore: number; playerInstance: any; contentMap: {}; isEndEventRaised: boolean; transcripts: Transcripts; constructor(videoPlayerService: SunbirdVideoPlayerService, utilService: UtilService, http: HttpClient, questionCursor: QuestionCursor); initialize({ context, config, metadata }: PlayerConfig): void; handleTranscriptsData(selectedTranscripts: any): Transcripts; getPlayerOptions(): Promise<{ src: any; type: string; }[]>; getMarkers(): any; getQuestionSet(identifier: any): import("rxjs").Observable<any>; preFetchContent(): void; getNextMarker(): any; raiseStartEvent(event: any): void; calculateScore(): void; raiseEndEvent(): void; raiseHeartBeatEvent(type: string, extraValues?: any): void; raiseImpressionEvent(pageId: string, cdata?: any): void; raiseExceptionLog(errorCode: string, errorType: string, stacktrace: any, traceId: any): void; }