UNPKG

videogular2

Version:

Videogular is a video application framework for desktop and mobile powered by Angular

58 lines (57 loc) 1.93 kB
/// <reference path="google.ima.d.ts" /> import { ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core'; import { IPlayable } from '../core/vg-media/i-playable'; import { VgAPI } from '../core/services/vg-api'; import { VgFullscreenAPI } from '../core/services/vg-fullscreen-api'; import { Subscription } from 'rxjs'; export declare class VgImaAds implements OnInit, OnDestroy { API: VgAPI; fsAPI: VgFullscreenAPI; vgFor: string; vgNetwork: string; vgUnitPath: string; vgCompanion: string; vgCompanionSize: Array<Number>; vgAdTagUrl: string; vgSkipButton: string; onAdStart: EventEmitter<boolean>; onAdStop: EventEmitter<boolean>; onSkipAd: EventEmitter<boolean>; elem: HTMLElement; target: IPlayable; ima: Ima; isFullscreen: boolean; skipButton: HTMLElement; subscriptions: Subscription[]; displayState: string; constructor(ref: ElementRef, API: VgAPI, fsAPI: VgFullscreenAPI); ngOnInit(): void; onPlayerReady(): void; initializations(): void; loadAds(): void; onUpdateState(event: any): void; requestAds(adTagUrl: string): void; onAdsManagerLoaded(evt: google.ima.AdsManagerLoadedEvent): void; processAdsManager(adsManager: google.ima.AdsManager): void; onSkippableStateChanged(): void; onClickSkip(): void; onContentPauseRequested(): void; onContentResumeRequested(): void; onAdError(evt: any): void; onAllAdsComplete(): void; onAdComplete(): void; show(): void; hide(): void; onContentEnded(): void; onChangeFullscreen(fsState: boolean): void; private onMissingGoogleImaLoader; ngOnDestroy(): void; } export declare class Ima { adDisplayContainer: google.ima.AdDisplayContainer; adsLoader: google.ima.AdsLoader; adsManager: google.ima.AdsManager; adsLoaded: boolean; currentAd: number; constructor(imaAdsElement: HTMLElement); }