bitmovin-analytics
Advanced tools
Comparing version 2.21.2 to 2.22.0
@@ -0,4 +1,8 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -11,3 +15,3 @@ import { InternalAdapter } from './InternalAdapter'; | ||
constructor(player: any, opts?: AnalyticsStateMachineOptions); | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
getPlayerVersion: () => any; | ||
@@ -14,0 +18,0 @@ getPlayerName: () => Player; |
import { PlayerAPI } from 'bitmovin-player'; | ||
import { Analytics } from '../../core/Analytics'; | ||
import VideoCompletionTracker from '../../core/VideoCompletionTracker'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -24,5 +28,6 @@ import { SegmentInfo } from '../../types/SegmentInfo'; | ||
private lastTrackedCurrentTime; | ||
private httpRequestTrackingAdapter; | ||
constructor(player: PlayerAPI, opts?: AnalyticsStateMachineOptions); | ||
protected get currentTime(): number; | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
clearValues(): void; | ||
@@ -29,0 +34,0 @@ clearSegments(): void; |
@@ -0,4 +1,8 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -16,3 +20,3 @@ import { InternalAdapter } from './InternalAdapter'; | ||
constructor(context: any, opts?: AnalyticsStateMachineOptions); | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
getPlayerVersion(): string; | ||
@@ -19,0 +23,0 @@ getPlayerName: () => Player; |
@@ -0,3 +1,7 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { QualityLevelInfo } from '../../types/QualityLevelInfo'; | ||
@@ -12,3 +16,3 @@ import { HTML5InternalAdapter } from './HTML5InternalAdapter'; | ||
*/ | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
registerMediaElementEventsForDashJS(): void; | ||
@@ -15,0 +19,0 @@ getPlayerName: () => Player; |
/// <reference types="hls.js" /> | ||
import { Analytics } from '../../core/Analytics'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -14,3 +18,3 @@ import { QualityLevelInfo } from '../../types/QualityLevelInfo'; | ||
constructor(hls: Hls, opts?: AnalyticsStateMachineOptions); | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
clearValues(): void; | ||
@@ -17,0 +21,0 @@ getPlayerName: () => Player; |
@@ -0,5 +1,9 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import VideoCompletionTracker from '../../core/VideoCompletionTracker'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -38,3 +42,3 @@ import { QualityLevelInfo } from '../../types/QualityLevelInfo'; | ||
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined; | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
isLive: () => boolean; | ||
@@ -41,0 +45,0 @@ getStreamSources(url: string | undefined): StreamSources; |
import { AnalyticsStateMachine } from '../../analyticsStateMachines/AnalyticsStateMachine'; | ||
import { EventDispatcher } from '../../core/EventDispatcher'; | ||
import { Event, EventMap } from '../../enums/Event'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
@@ -7,2 +8,3 @@ import { CustomDataValues } from '../../types/CustomDataValues'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { NoExtraProperties } from '../../types/NoExtraProperties'; | ||
import { SegmentInfo } from '../../types/SegmentInfo'; | ||
@@ -30,3 +32,3 @@ import { StateMachineCallbacks } from '../../types/StateMachineCallbacks'; | ||
constructor(opts?: AnalyticsStateMachineOptions); | ||
eventCallback: (eventType: string, eventObject: any) => void; | ||
eventCallback: <StatemachineEvent extends Event, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>) => void; | ||
getCommonPlaybackInfo(): { | ||
@@ -33,0 +35,0 @@ screenHeight: number; |
@@ -0,5 +1,9 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import VideoCompletionTracker from '../../core/VideoCompletionTracker'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { CustomDataValues } from '../../types/CustomDataValues'; | ||
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -24,3 +28,3 @@ import { SegmentInfo } from '../../types/SegmentInfo'; | ||
getDrmPerformanceInfo(): DrmPerformanceInfo | undefined; | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
getCurrentPlaybackInfo(): PlaybackInfo; | ||
@@ -27,0 +31,0 @@ sourceChange(config: any, timestamp: number): any; |
@@ -0,3 +1,7 @@ | ||
import { Analytics } from '../../core/Analytics'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { QualityLevelInfo } from '../../types/QualityLevelInfo'; | ||
@@ -12,3 +16,3 @@ import { HTML5InternalAdapter } from './HTML5InternalAdapter'; | ||
*/ | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
getPlayerName: () => Player; | ||
@@ -15,0 +19,0 @@ getPlayerVersion: () => any; |
/// <reference types="video.js" /> | ||
import { Analytics } from '../../core/Analytics'; | ||
import VideoCompletionTracker from '../../core/VideoCompletionTracker'; | ||
import { Player } from '../../enums/Player'; | ||
import { Feature } from '../../features/Feature'; | ||
import { FeatureConfig } from '../../features/FeatureConfig'; | ||
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions'; | ||
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo'; | ||
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer'; | ||
import { PlaybackInfo } from '../../types/PlaybackInfo'; | ||
@@ -19,3 +23,3 @@ import { QualityLevelInfo } from '../../types/QualityLevelInfo'; | ||
constructor(player: videojs.default.Player, opts?: AnalyticsStateMachineOptions); | ||
initialize(): void; | ||
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>; | ||
getPlayerVersion: () => any; | ||
@@ -22,0 +26,0 @@ getPlayerName: () => Player; |
@@ -0,4 +1,6 @@ | ||
import { EventMap } from '../enums/Event'; | ||
import { VideoStartFailedReason } from '../enums/VideoStartFailedReason'; | ||
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions'; | ||
import * as ErrorData from '../types/EventData'; | ||
import { NoExtraProperties } from '../types/NoExtraProperties'; | ||
import { StateMachineCallbacks } from '../types/StateMachineCallbacks'; | ||
@@ -19,3 +21,3 @@ export declare abstract class AnalyticsStateMachine { | ||
abstract createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine; | ||
abstract callEvent(eventType: string, eventObject: any, timestamp: number): void; | ||
abstract callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void; | ||
abstract sourceChange(config: any, timestamp: number, currentTime?: number): void; | ||
@@ -28,3 +30,3 @@ get currentState(): string; | ||
protected clearRebufferingTimeoutHandle(reset: boolean): void; | ||
protected getVideoStartupFailedEventData(timestamp: number, event?: string, errorData?: any): ErrorData.VideoStartFailedEvent; | ||
protected getVideoStartupFailedEventData(currentTime: number, event?: string, eventObject?: any): ErrorData.VideoStartFailedEvent; | ||
protected getReasonForVideoStartFailure(event?: string): VideoStartFailedReason; | ||
@@ -31,0 +33,0 @@ protected setVideoStartTimeout(): void; |
import * as StateMachine from 'javascript-state-machine'; | ||
import { EventMap } from '../enums/Event'; | ||
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions'; | ||
import { NoExtraProperties } from '../types/NoExtraProperties'; | ||
import { StateMachineCallbacks } from '../types/StateMachineCallbacks'; | ||
@@ -21,3 +23,3 @@ import { EventDebugging } from '../utils/EventDebugging'; | ||
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine; | ||
callEvent(eventType: string, eventObject: any, timestamp: number): void; | ||
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void; | ||
addStatesToLog(event: string | undefined, from: string | undefined, to: string | undefined, timestamp: number, eventObject: any): void; | ||
@@ -24,0 +26,0 @@ getStates(): EventDebugging[]; |
import * as StateMachine from 'javascript-state-machine'; | ||
import { EventMap } from '../enums/Event'; | ||
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions'; | ||
import { NoExtraProperties } from '../types/NoExtraProperties'; | ||
import { StateMachineCallbacks } from '../types/StateMachineCallbacks'; | ||
@@ -18,3 +20,3 @@ import { EventDebugging } from '../utils/EventDebugging'; | ||
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine; | ||
callEvent(eventType: string, eventObject: any, timestamp: number): void; | ||
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void; | ||
addStatesToLog(event: string | undefined, from: string | undefined, to: string | undefined, timestamp: number, eventObject: any): void; | ||
@@ -21,0 +23,0 @@ getStates(): EventDebugging[]; |
import * as StateMachine from 'javascript-state-machine'; | ||
import { EventMap } from '../enums/Event'; | ||
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions'; | ||
import { NoExtraProperties } from '../types/NoExtraProperties'; | ||
import { StateMachineCallbacks } from '../types/StateMachineCallbacks'; | ||
@@ -11,4 +13,4 @@ import { AnalyticsStateMachine } from './AnalyticsStateMachine'; | ||
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine; | ||
callEvent(eventType: string, eventObject: any, timestamp: number): void; | ||
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void; | ||
sourceChange: (config: any, timestamp: number, currentTime?: number | undefined) => void; | ||
} |
import * as StateMachine from 'javascript-state-machine'; | ||
import { EventMap } from '../enums/Event'; | ||
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions'; | ||
import { NoExtraProperties } from '../types/NoExtraProperties'; | ||
import { StateMachineCallbacks } from '../types/StateMachineCallbacks'; | ||
@@ -13,4 +15,4 @@ import { AnalyticsStateMachine } from './AnalyticsStateMachine'; | ||
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine; | ||
callEvent(eventType: string, eventObject: any, timestamp: number): void; | ||
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void; | ||
sourceChange: (config: any, timestamp: number, currentTime?: number | undefined) => void; | ||
} |
import { InternalAdapterAPI } from '../adapters/internal/InternalAdapterAPI'; | ||
import { ErrorDetailTrackingSettingsProvider } from '../features/errordetails/ErrorDetailTracking'; | ||
import { OnErrorDetailEventObject } from '../features/errordetails/OnErrorDetailEventObject'; | ||
import { AnalyticsConfig } from '../types/AnalyticsConfig'; | ||
@@ -8,2 +10,3 @@ import { CastClientConfig } from '../types/CastClientConfig'; | ||
import { BackendFactory } from './BackendFactory'; | ||
import { Subscribable } from './EventDispatcher'; | ||
export declare class Analytics { | ||
@@ -21,2 +24,4 @@ get version(): string; | ||
backend: Backend; | ||
errorDetailTrackingSettingsProvider: ErrorDetailTrackingSettingsProvider; | ||
get errorDetailSubscribable(): Subscribable<OnErrorDetailEventObject>; | ||
private config; | ||
@@ -29,2 +34,5 @@ private sessionHandler; | ||
private resetQualityChangeCountIntervalId?; | ||
private featureManager; | ||
private onErrorDetailEventDispatcher; | ||
private authenticationCallback; | ||
constructor(config: AnalyticsConfig, adapter: InternalAdapterAPI, backendFactory?: BackendFactory); | ||
@@ -69,2 +77,3 @@ getPlayerInformationFromAdapter(): { | ||
private createBackend; | ||
private getDomain; | ||
private setCompletionValues; | ||
@@ -71,0 +80,0 @@ private sendQualityChange; |
import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI'; | ||
import { AnalyticsConfig } from '../types/AnalyticsConfig'; | ||
import { AuthenticationCallback } from '../types/AuthenticationCallback'; | ||
import { LicensingRequest } from '../types/LicensingRequest'; | ||
import { Backend } from './Backend'; | ||
export declare class BackendFactory { | ||
createBackend(analyticsConfig: AnalyticsConfig, licensingRequest: LicensingRequest, adapter: DeferredLicenseLoadingAdapterAPI): Backend; | ||
createBackend(analyticsConfig: AnalyticsConfig, licensingRequest: LicensingRequest, adapter: DeferredLicenseLoadingAdapterAPI, authenticationCallback: AuthenticationCallback): Backend; | ||
private decorateWithDebuggingBackend; | ||
@@ -8,0 +9,0 @@ private decorateWithBackendFromConfigIfAvailable; |
@@ -5,2 +5,3 @@ import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI'; | ||
import { AdSample } from '../types/AdSample'; | ||
import { AuthenticationCallback } from '../types/AuthenticationCallback'; | ||
import { LicenseCallFunc, LicensingRequest, LicensingResponse } from '../types/LicensingRequest'; | ||
@@ -13,2 +14,3 @@ import { Sample } from '../types/Sample'; | ||
private adapter; | ||
private authenticationCallback; | ||
promise?: Promise<LicensingResponse>; | ||
@@ -18,3 +20,3 @@ private licenseLazyLoadingTimeoutHandle?; | ||
private info; | ||
constructor(info: LicensingRequest, licenseCall: LicenseCallFunc, backendBaseUrl: string, adapter: DeferredLicenseLoadingAdapterAPI); | ||
constructor(info: LicensingRequest, licenseCall: LicenseCallFunc, backendBaseUrl: string, adapter: DeferredLicenseLoadingAdapterAPI, authenticationCallback: AuthenticationCallback); | ||
performLicenseCheck(): Promise<LicensingResponse>; | ||
@@ -29,2 +31,3 @@ sendRequest(sample: Sample): void; | ||
private unsubscribeFromAdapter; | ||
private wrapLicenseCheckPromiseWithCallback; | ||
} |
@@ -1,7 +0,10 @@ | ||
export declare enum ErrorCode { | ||
BitmovinPlayerLicensingError = 1103, | ||
SetupMissingLicenseWhitelist = 1105, | ||
QualityChangeThresholdExceeded = 10000, | ||
BufferingTimeoutReached = 10001, | ||
VideoStartupTimeoutReached = 10002 | ||
export declare class ErrorCode { | ||
readonly code: number; | ||
readonly message: string; | ||
static BITMOVIN_PLAYER_LICENSING_ERROR: ErrorCode; | ||
static SETUP_MISSING_LICENSE_WHITELIST: ErrorCode; | ||
static QUALITY_CHANGE_THRESHOLD_EXCEEDED: ErrorCode; | ||
static BUFFERING_TIMEOUT_REACHED: ErrorCode; | ||
static VIDEO_STARTUP_TIMEOUT_REACHED: ErrorCode; | ||
private constructor(); | ||
} |
@@ -0,1 +1,2 @@ | ||
import { AnalyticsEventBase, AudioChangeEvent, ErrorEvent, SourceChangeEvent, VideoChangeEvent } from '../types/EventData'; | ||
export declare enum Event { | ||
@@ -34,1 +35,34 @@ READY = "ready", | ||
} | ||
export interface EventMap { | ||
[Event.READY]: AnalyticsEventBase; | ||
[Event.SOURCE_LOADED]: AnalyticsEventBase; | ||
[Event.PLAY]: AnalyticsEventBase; | ||
[Event.PLAYING]: AnalyticsEventBase; | ||
[Event.PAUSE]: AnalyticsEventBase; | ||
[Event.TIMECHANGED]: AnalyticsEventBase; | ||
[Event.SEEK]: AnalyticsEventBase; | ||
[Event.SEEKED]: AnalyticsEventBase; | ||
[Event.START_CAST]: AnalyticsEventBase; | ||
[Event.END_CAST]: AnalyticsEventBase; | ||
[Event.START_BUFFERING]: AnalyticsEventBase; | ||
[Event.END_BUFFERING]: AnalyticsEventBase; | ||
[Event.AUDIOTRACK_CHANGED]: AnalyticsEventBase; | ||
[Event.AUDIO_CHANGE]: AudioChangeEvent; | ||
[Event.VIDEO_CHANGE]: VideoChangeEvent; | ||
[Event.START_FULLSCREEN]: AnalyticsEventBase; | ||
[Event.END_FULLSCREEN]: AnalyticsEventBase; | ||
[Event.START_AD]: AnalyticsEventBase; | ||
[Event.SUBTITLE_CHANGE]: AnalyticsEventBase; | ||
[Event.END_AD]: AnalyticsEventBase; | ||
[Event.MUTE]: AnalyticsEventBase; | ||
[Event.UN_MUTE]: AnalyticsEventBase; | ||
[Event.ERROR]: ErrorEvent; | ||
[Event.PLAYBACK_FINISHED]: AnalyticsEventBase; | ||
[Event.SCREEN_RESIZE]: AnalyticsEventBase; | ||
[Event.UNLOAD]: AnalyticsEventBase; | ||
[Event.END]: AnalyticsEventBase; | ||
[Event.SOURCE_UNLOADED]: AnalyticsEventBase; | ||
[Event.MANUAL_SOURCE_CHANGE]: SourceChangeEvent; | ||
[Event.VIDEOSTART_TIMEOUT]: AnalyticsEventBase; | ||
[Event.CUSTOM_DATA_CHANGE]: AnalyticsEventBase; | ||
} |
@@ -1,6 +0,10 @@ | ||
export declare enum VideoStartFailedReason { | ||
PageClosed = "PAGE_CLOSED", | ||
PlayerError = "PLAYER_ERROR", | ||
Timeout = "TIMEOUT", | ||
Unknown = "UNKNOWN" | ||
import { ErrorCode } from './ErrorCode'; | ||
export declare class VideoStartFailedReason { | ||
readonly reason: string; | ||
readonly errorCode: ErrorCode | null; | ||
static PAGE_CLOSED: VideoStartFailedReason; | ||
static PLAYER_ERROR: VideoStartFailedReason; | ||
static TIMEOUT: VideoStartFailedReason; | ||
static UNKNOWN: VideoStartFailedReason; | ||
private constructor(); | ||
} |
import { VideoStartFailedReason } from '../enums/VideoStartFailedReason'; | ||
import ErrorEventObject from './ErrorEventObject'; | ||
export interface ErrorEvent { | ||
code: number; | ||
message: string; | ||
data: unknown; | ||
import { ErrorData } from '../features/errordetails/ErrorData'; | ||
import { AnalyticsConfig } from './AnalyticsConfig'; | ||
export interface AnalyticsEventBase { | ||
currentTime?: number; | ||
} | ||
export interface VideoStartFailedEvent { | ||
timestamp: number; | ||
export interface SourceChangeEvent extends AnalyticsEventBase { | ||
config: AnalyticsConfig; | ||
} | ||
export interface ErrorEvent extends AnalyticsEventBase { | ||
code: number | undefined; | ||
message: string | undefined; | ||
legacyData?: any; | ||
data: ErrorData; | ||
} | ||
export interface AudioChangeEvent extends AnalyticsEventBase { | ||
bitrate?: number; | ||
codec?: string; | ||
} | ||
export interface VideoChangeEvent extends AnalyticsEventBase { | ||
bitrate?: number; | ||
height?: number; | ||
width?: number; | ||
codec?: string; | ||
} | ||
export interface VideoStartFailedEvent extends AnalyticsEventBase { | ||
reason: VideoStartFailedReason; | ||
errorData?: ErrorEventObject; | ||
} |
@@ -0,1 +1,2 @@ | ||
import { FeatureConfigContainer } from './FeatureConfigContainer'; | ||
export interface LicensingRequest { | ||
@@ -14,3 +15,4 @@ key?: string; | ||
message: string; | ||
features?: FeatureConfigContainer; | ||
} | ||
export declare type LicenseCallFunc = (key: string, domain: string, version: string, baseUrl: string) => Promise<LicensingResponse>; |
export declare class CodecHelper { | ||
static get supportedVideoFormats(): string[]; | ||
static get supportedVideoFormats(): string[] | undefined; | ||
static isCodecSupported(codec: string): boolean; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"name":"bitmovin-analytics","version":"v2.21.2","description":"Bitmovin Analytics Collector collects monitoring devents from video players for the Bitmovin Analytics Service","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitmovin/bitmovin-analytics-collector.git"},"main":"bitmovinanalytics.min.js","types":"bitmovin-analytics.d.ts","author":"Bitmovin Inc","homepage":"https://bitmovin.com/video-analytics/","maintainers":[{"name":"bitadmin","email":"admin@bitmovin.com"}]} | ||
{"name":"bitmovin-analytics","version":"v2.22.0","description":"Bitmovin Analytics Collector collects monitoring devents from video players for the Bitmovin Analytics Service","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitmovin/bitmovin-analytics-collector.git"},"main":"bitmovinanalytics.min.js","types":"bitmovin-analytics.d.ts","author":"Bitmovin Inc","homepage":"https://bitmovin.com/video-analytics/","maintainers":[{"name":"bitadmin","email":"admin@bitmovin.com"}]} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
827454
121
2927