UNPKG

@namiml/web-sdk

Version:

Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing

21 lines (20 loc) 806 B
import { NamiPaywallAction } from "src/types/externals/paywall"; export declare class VideoService { video: HTMLVideoElement; playing: boolean; muted: boolean; muteByDefault: boolean; loopVideo: boolean; autoplayVideo: boolean; videoComponentName: string; videoComponentId: string; videoSrc: string; toggling: boolean; static instance: VideoService; constructor(video: HTMLVideoElement, name?: string, id?: string); handleVideoEvents: () => void; togglePlayVideo(): void; toggleMuteVideo(): void; videoPlayingAction(): NamiPaywallAction.VIDEO_STARTED | NamiPaywallAction.VIDEO_PAUSED | NamiPaywallAction.VIDEO_RESUMED | NamiPaywallAction.VIDEO_ENDED | NamiPaywallAction.UNKNOWN; handlePlayerAnalytics(action?: NamiPaywallAction): void; }