UNPKG

@xnstream/player-sdk

Version:

XStream Player SDK - A powerful video player SDK for streaming content

29 lines 685 B
import Hls from 'hls.js'; import type { UDevice, Resource } from '../types'; export interface AnalyticsEvent { name: string; timestamp: number; data: object; } export interface Collector { flush(): AnalyticsEvent[]; destroy(): void; streamCode: string; } export interface AnalyticsCollectorOptions { host: string; appVersion: string; pb_id: string; hlsPlayer: Hls; video: HTMLVideoElement; stream_code: string; resource: Resource; appId: string; sid: string; edge_id: string; device: UDevice; flushIntervalMs?: number; ref?: string; userContext?: Record<string, any>; } //# sourceMappingURL=types.d.ts.map