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

68 lines (67 loc) 2.52 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'; import * as i0 from "@angular/core"; 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: number; artifactUrl: any; visitedLength: number; uniqueVisitedLength: any; sidebarMenuEvent: EventEmitter<any>; traceId: string; isAvailableLocally: boolean; interceptionPoints: any; interceptionResponses: any; showScore: boolean; scoreObtained: any; maxScore: number; playerInstance: any; contentMap: {}; playerTimeSlots: any[]; isEndEventRaised: boolean; transcripts: Transcripts; playBitStartTime: number; playBitEndTime: number; 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; getUniqueVisitedLength(): number; getVisitedLength(): number; getNextMarker(): any; raiseStartEvent(event: any): void; calculateScore(): void; raiseEndEvent(isOnPlayInterrupt?: boolean): void; raiseHeartBeatEvent(type: string, extraValues?: any): void; raiseImpressionEvent(pageId: string, cdata?: any): void; raiseExceptionLog(errorCode: string, errorType: string, stacktrace: any, traceId: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<ViewerService, [null, null, null, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<ViewerService>; }