@dicdikshaorg/epub-player-v9
Version:
Contains Epub 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 develo
37 lines (36 loc) • 1.5 kB
TypeScript
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';
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>;
raiseHeartBeatEventNew(type: string, telemetryType1: string, pageId: number | string, nextContentId?: string): void;
}