UNPKG

@project-sunbird/sunbird-epub-player-v9

Version:

The Epub 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 development

39 lines (38 loc) 1.51 kB
import { EventEmitter } from '@angular/core'; import { PlayerConfig } from '../../sunbird-epub-player.interface'; import { EpubPlayerService } from '../../sunbird-epub-player.service'; import { UtilService } from '../utilService/util.service'; import { HttpClient } from '@angular/common/http'; import * as i0 from "@angular/core"; export declare class ViwerService { private utilService; private epubPlayerService; private http; currentIndex: number; totalNumberOfPages: number; epubPlayerStartTime: number; epubLastPageTime: number; endPageSeen: boolean; timeSpent: string; private version; playerEvent: EventEmitter<any>; contentName: string; loadingProgress: number; showDownloadPopup: boolean; src: string; userName: string; metaData: any; identifier: any; artifactUrl: any; isAvailableLocally: boolean; isEndEventRaised: boolean; constructor(utilService: UtilService, epubPlayerService: EpubPlayerService, http: HttpClient); initialize({ context, config, metadata }: PlayerConfig): void; raiseStartEvent(event: any): void; raiseHeartBeatEvent(event: any, teleType?: any): void; raiseEndEvent(event: any): void; raiseExceptionLog(errorCode: string, pageIndex: any, errorType: string, traceId: any, stacktrace: Error): void; isValidEpubSrc(src: any): Promise<Blob>; static ɵfac: i0.ɵɵFactoryDeclaration<ViwerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ViwerService>; }