ng-plyr
Version:
An HTML5 media player for developers, built using Angular, having interface similar to Youtube player.
30 lines (29 loc) • 967 B
TypeScript
import * as i0 from "@angular/core";
export declare class CastService {
private isInitialized;
private castContext;
private currentSession;
player: any;
playerController: any;
constructor();
isSdkAvailable(): boolean;
initializeCastApi(): void;
loadMedia(mediaURL?: string, contentType?: string): void;
getCastContext(): any;
isCasting(): boolean;
endCurrentSession(stopCasting: boolean): void;
private playOrPauseCasting;
play(): void;
pause(): void;
stopCasting(): void;
seekTo(toSec: number): void;
private muteOrUnmute;
mute(): void;
unmute(): void;
setVolumeLevel(volume: number): void;
skipAd(): void;
onCastEvent(eventName: string, cb: Function): Promise<unknown>;
stopListeningRemotePlayerEvents(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CastService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CastService>;
}