bitmovin-analytics 2.28.1 → 2.29.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitmovin-analytics.d.ts +652 -4
- package/bitmovinanalytics.min.js +6 -6
- package/bitmovinanalytics.min.js.map +1 -1
- package/package.json +1 -1
- package/js/Version.d.ts +0 -1
- package/js/adapters/Adapter.d.ts +0 -16
- package/js/adapters/Bitmovin7Adapter.d.ts +0 -8
- package/js/adapters/Bitmovin8Adapter.d.ts +0 -7
- package/js/adapters/CAFv3Adapter.d.ts +0 -7
- package/js/adapters/DashjsAdapter.d.ts +0 -7
- package/js/adapters/HTMLVideoElementAdapter.d.ts +0 -7
- package/js/adapters/HlsAdapter.d.ts +0 -7
- package/js/adapters/ShakaAdapter.d.ts +0 -9
- package/js/adapters/VideoJsAdapter.d.ts +0 -7
- package/js/adapters/internal/Bitmovin7InternalAdapter.d.ts +0 -30
- package/js/adapters/internal/Bitmovin8HttpRequestTrackingAdapter.d.ts +0 -12
- package/js/adapters/internal/Bitmovin8InternalAdapter.d.ts +0 -52
- package/js/adapters/internal/Bitmovin8SegmentTrackerAdapter.d.ts +0 -31
- package/js/adapters/internal/Bitmovin8SpeedMeterAdapter.d.ts +0 -8
- package/js/adapters/internal/CAFv3InternalAdapter.d.ts +0 -33
- package/js/adapters/internal/DashjsInternalAdapter.d.ts +0 -35
- package/js/adapters/internal/DeferredLicenseLoadingAdapterAPI.d.ts +0 -8
- package/js/adapters/internal/HTML5InternalAdapter.d.ts +0 -107
- package/js/adapters/internal/HTMLVideoElementInternalAdapter.d.ts +0 -21
- package/js/adapters/internal/HlsInternalAdapter.d.ts +0 -59
- package/js/adapters/internal/HlsSpeedMeterAdapter.d.ts +0 -11
- package/js/adapters/internal/InternalAdapter.d.ts +0 -52
- package/js/adapters/internal/InternalAdapterAPI.d.ts +0 -36
- package/js/adapters/internal/ShakaInternalAdapter.d.ts +0 -36
- package/js/adapters/internal/VideojsInternalAdapter.d.ts +0 -52
- package/js/adapters/internal/ads/AdModuleAPI.d.ts +0 -24
- package/js/adapters/internal/ads/Bitmovin8AdModule.d.ts +0 -14
- package/js/analyticsStateMachines/AnalyticsStateMachine.d.ts +0 -35
- package/js/analyticsStateMachines/Bitmovin7AnalyticsStateMachine.d.ts +0 -28
- package/js/analyticsStateMachines/Bitmovin8AnalyticsStateMachine.d.ts +0 -26
- package/js/analyticsStateMachines/HTML5AnalyticsStateMachine.d.ts +0 -16
- package/js/analyticsStateMachines/VideoJsAnalyticsStateMachine.d.ts +0 -18
- package/js/api/AdapterAPI.d.ts +0 -9
- package/js/core/AdAnalytics.d.ts +0 -48
- package/js/core/Analytics.d.ts +0 -86
- package/js/core/Backend.d.ts +0 -7
- package/js/core/BackendFactory.d.ts +0 -12
- package/js/core/BitmovinAnalyticsExport.d.ts +0 -55
- package/js/core/DebuggingBackend.d.ts +0 -16
- package/js/core/DownloadSpeedMeter.d.ts +0 -18
- package/js/core/EventDispatcher.d.ts +0 -13
- package/js/core/LicenseCheckingBackend.d.ts +0 -29
- package/js/core/LongPlaytimeFilteringBackend.d.ts +0 -11
- package/js/core/Measure.d.ts +0 -11
- package/js/core/NoOpBackend.d.ts +0 -11
- package/js/core/QueueBackend.d.ts +0 -16
- package/js/core/RemoteBackend.d.ts +0 -16
- package/js/core/SegmentTracker.d.ts +0 -9
- package/js/core/SequenceNumberBackend.d.ts +0 -15
- package/js/core/SessionPersistenceHandler.d.ts +0 -12
- package/js/core/VideoCompletionTracker.d.ts +0 -33
- package/js/enums/AnalyticsLicensingStatus.d.ts +0 -5
- package/js/enums/CDNProvider.d.ts +0 -9
- package/js/enums/CastTech.d.ts +0 -5
- package/js/enums/Codecs.d.ts +0 -2
- package/js/enums/ErrorCode.d.ts +0 -10
- package/js/enums/Event.d.ts +0 -71
- package/js/enums/MIMETypes.d.ts +0 -7
- package/js/enums/PageLoadType.d.ts +0 -4
- package/js/enums/Player.d.ts +0 -11
- package/js/enums/PlayerSize.d.ts +0 -4
- package/js/enums/StreamTypes.d.ts +0 -1
- package/js/enums/VideoStartFailedReason.d.ts +0 -10
- package/js/features/Feature.d.ts +0 -14
- package/js/features/FeatureConfig.d.ts +0 -3
- package/js/features/FeatureManager.d.ts +0 -9
- package/js/features/errordetails/ErrorData.d.ts +0 -5
- package/js/features/errordetails/ErrorDetail.d.ts +0 -18
- package/js/features/errordetails/ErrorDetailBackend.d.ts +0 -24
- package/js/features/errordetails/ErrorDetailTracking.d.ts +0 -28
- package/js/features/errordetails/ErrorDetailTrackingConfig.d.ts +0 -4
- package/js/features/errordetails/OnErrorDetailEventObject.d.ts +0 -6
- package/js/features/httprequesttracking/HttpRequest.d.ts +0 -24
- package/js/features/httprequesttracking/HttpRequestTracking.d.ts +0 -17
- package/js/features/httprequesttracking/HttpRequestType.d.ts +0 -24
- package/js/features/httprequesttracking/OnDownloadFinishedEventObject.d.ts +0 -4
- package/js/types/AdAnalyticsSample.d.ts +0 -61
- package/js/types/AdBreakSample.d.ts +0 -20
- package/js/types/AdData.d.ts +0 -20
- package/js/types/AdSample.d.ts +0 -61
- package/js/types/AdapterEventCallback.d.ts +0 -1
- package/js/types/AnalyticsConfig.d.ts +0 -52
- package/js/types/AnalyticsDebugConfig.d.ts +0 -3
- package/js/types/AnalyticsStateMachineOptions.d.ts +0 -3
- package/js/types/AuthenticationCallback.d.ts +0 -4
- package/js/types/CastClientConfig.d.ts +0 -9
- package/js/types/CustomDataValues.d.ts +0 -41
- package/js/types/DownloadSpeedInfo.d.ts +0 -30
- package/js/types/DrmPerformanceInfo.d.ts +0 -4
- package/js/types/EventData.d.ts +0 -28
- package/js/types/FeatureConfigContainer.d.ts +0 -4
- package/js/types/LicensingRequest.d.ts +0 -17
- package/js/types/NoExtraProperties.d.ts +0 -5
- package/js/types/PlaybackInfo.d.ts +0 -29
- package/js/types/ProgressiveSourceConfig.d.ts +0 -5
- package/js/types/QualityLevelInfo.d.ts +0 -5
- package/js/types/Sample.d.ts +0 -74
- package/js/types/SegmentInfo.d.ts +0 -5
- package/js/types/SourceInfo.d.ts +0 -13
- package/js/types/SpeedMeasurement.d.ts +0 -25
- package/js/types/StateMachineCallbacks.d.ts +0 -47
- package/js/types/StreamSources.d.ts +0 -5
- package/js/types/SubtitleInfo.d.ts +0 -11
- package/js/types/Timespan.d.ts +0 -4
- package/js/utils/AnalyticsCall.d.ts +0 -14
- package/js/utils/BitmovinProgressiveSourceHelper.d.ts +0 -3
- package/js/utils/CodecHelper.d.ts +0 -4
- package/js/utils/Converter.d.ts +0 -6
- package/js/utils/EventDebugging.d.ts +0 -8
- package/js/utils/Http.d.ts +0 -1
- package/js/utils/LicenseCall.d.ts +0 -2
- package/js/utils/Logger.d.ts +0 -14
- package/js/utils/Queue.d.ts +0 -9
- package/js/utils/Settings.d.ts +0 -14
- package/js/utils/Utils.d.ts +0 -36
- package/js/utils/ViewportTracker.d.ts +0 -15
- package/js/utils/WindowEventTracker.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"bitmovin-analytics","version":"v2.
|
|
1
|
+
{"name":"bitmovin-analytics","version":"v2.29.0-beta2","description":"Bitmovin Analytics Collector collects monitoring events from video players for the Bitmovin Analytics Service","license":"MIT","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"}]}
|
package/js/Version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VERSION: string;
|
package/js/adapters/Adapter.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../core/Analytics';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { CustomDataValues } from '../types/CustomDataValues';
|
|
4
|
-
import { InternalAdapterAPI } from './internal/InternalAdapterAPI';
|
|
5
|
-
export declare abstract class Adapter {
|
|
6
|
-
protected analytics: Analytics;
|
|
7
|
-
protected internalAdapter: InternalAdapterAPI;
|
|
8
|
-
getCurrentImpressionId(): string | undefined;
|
|
9
|
-
getUserId(): string | undefined;
|
|
10
|
-
setCustomData(values: CustomDataValues): void;
|
|
11
|
-
setCustomDataOnce(values: CustomDataValues): void;
|
|
12
|
-
sourceChange(config: AnalyticsConfig): void;
|
|
13
|
-
protected hasPlayerAlreadyBeenAugmented(player: any): boolean;
|
|
14
|
-
protected markPlayerInstanceAsAugmented(player: any): void;
|
|
15
|
-
private guardAgainstNotInitializedAnalytics;
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
3
|
-
import { Adapter } from './Adapter';
|
|
4
|
-
export declare class Bitmovin7Adapter extends Adapter implements AdapterAPI {
|
|
5
|
-
constructor(player: any, opts?: AnalyticsStateMachineOptions);
|
|
6
|
-
private augment;
|
|
7
|
-
private wrapPlayerLoad;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
3
|
-
import { Adapter } from './Adapter';
|
|
4
|
-
export declare class Bitmovin8Adapter extends Adapter implements AdapterAPI {
|
|
5
|
-
constructor(player: any, opts?: AnalyticsStateMachineOptions);
|
|
6
|
-
private wrapPlayerLoad;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class CAFv3Adapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class DashjsAdapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class HTMLVideoElementAdapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: HTMLVideoElement, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class HlsAdapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class ShakaAdapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
private wrapPlayerLoad;
|
|
8
|
-
private sendError;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdapterAPI } from '../api/AdapterAPI';
|
|
2
|
-
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
|
-
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
|
-
import { Adapter } from './Adapter';
|
|
5
|
-
export declare class VideojsAdapter extends Adapter implements AdapterAPI {
|
|
6
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
7
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import { Player } from '../../enums/Player';
|
|
3
|
-
import { Feature } from '../../features/Feature';
|
|
4
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
-
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
6
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
7
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
8
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
9
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
10
|
-
import { InternalAdapter } from './InternalAdapter';
|
|
11
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
12
|
-
export declare class Bitmovin7InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
|
|
13
|
-
private player;
|
|
14
|
-
private onBeforeUnLoadEvent;
|
|
15
|
-
constructor(player: any, opts?: AnalyticsStateMachineOptions);
|
|
16
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
17
|
-
getPlayerVersion: () => any;
|
|
18
|
-
getPlayerName: () => Player;
|
|
19
|
-
getPlayerTech: () => any;
|
|
20
|
-
getAutoPlay(): boolean;
|
|
21
|
-
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
22
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
23
|
-
register(): void;
|
|
24
|
-
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
25
|
-
protected get currentTime(): number;
|
|
26
|
-
private applySourceProperties;
|
|
27
|
-
private applySubtitleProperties;
|
|
28
|
-
private applyPlaybackQualityProperties;
|
|
29
|
-
private applyCastingProperties;
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PlayerAPI } from 'bitmovin-player';
|
|
2
|
-
import { Subscribable } from '../../core/EventDispatcher';
|
|
3
|
-
import { OnDownloadFinishedEventObject } from '../../features/httprequesttracking/OnDownloadFinishedEventObject';
|
|
4
|
-
export declare class Bitmovin8HttpRequestTrackingAdapter implements Subscribable<OnDownloadFinishedEventObject> {
|
|
5
|
-
private eventDispatcher;
|
|
6
|
-
private playerExports;
|
|
7
|
-
constructor(player: PlayerAPI);
|
|
8
|
-
subscribe(callback: (args: OnDownloadFinishedEventObject) => void): () => void;
|
|
9
|
-
unsubscribe(callback: (args: OnDownloadFinishedEventObject) => void): void;
|
|
10
|
-
private onDownloadFinished;
|
|
11
|
-
private mapHttpRequestType;
|
|
12
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { PlayerAPI } from 'bitmovin-player';
|
|
2
|
-
import { Analytics } from '../../core/Analytics';
|
|
3
|
-
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
4
|
-
import { Player } from '../../enums/Player';
|
|
5
|
-
import { Feature } from '../../features/Feature';
|
|
6
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
7
|
-
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
8
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
9
|
-
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
10
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
11
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
12
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
13
|
-
import { SegmentInfo } from '../../types/SegmentInfo';
|
|
14
|
-
import { AdModuleAPI } from './ads/AdModuleAPI';
|
|
15
|
-
import { InternalAdapter } from './InternalAdapter';
|
|
16
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
17
|
-
export declare class Bitmovin8InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
|
|
18
|
-
private player;
|
|
19
|
-
get downloadSpeedInfo(): DownloadSpeedInfo;
|
|
20
|
-
get segments(): SegmentInfo[];
|
|
21
|
-
get adModule(): AdModuleAPI | undefined;
|
|
22
|
-
get supportsDeferredLicenseLoading(): boolean;
|
|
23
|
-
readonly videoCompletionTracker: VideoCompletionTracker;
|
|
24
|
-
private onBeforeUnLoadEvent;
|
|
25
|
-
private speedMeter;
|
|
26
|
-
private segmentTracker;
|
|
27
|
-
private _adModule?;
|
|
28
|
-
private lastTrackedCurrentTime;
|
|
29
|
-
private videoDuration;
|
|
30
|
-
private httpRequestTrackingAdapter;
|
|
31
|
-
constructor(player: PlayerAPI, opts?: AnalyticsStateMachineOptions);
|
|
32
|
-
protected get currentTime(): number;
|
|
33
|
-
protected get isAdPlaying(): boolean;
|
|
34
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
35
|
-
clearValues(): void;
|
|
36
|
-
clearSegments(): void;
|
|
37
|
-
getPlayerVersion: () => string;
|
|
38
|
-
getPlayerName: () => Player;
|
|
39
|
-
getPlayerTech: () => import("bitmovin-player").PlayerType;
|
|
40
|
-
getAutoPlay(): boolean;
|
|
41
|
-
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
42
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
43
|
-
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
44
|
-
onError(): void;
|
|
45
|
-
private registerPlayerEventListeners;
|
|
46
|
-
private registerUnloadEventListeners;
|
|
47
|
-
private applySourceProperties;
|
|
48
|
-
private applySubtitleProperties;
|
|
49
|
-
private applyPlaybackQualityProperties;
|
|
50
|
-
private applyCastingProperties;
|
|
51
|
-
private allowSeeking;
|
|
52
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PlayerAPI } from 'bitmovin-player';
|
|
2
|
-
import { SegmentTracker } from '../../core/SegmentTracker';
|
|
3
|
-
interface DownloadFinishedEvent {
|
|
4
|
-
attempt?: number;
|
|
5
|
-
downloadType?: string;
|
|
6
|
-
httpStatus: number;
|
|
7
|
-
mimeType?: string;
|
|
8
|
-
success: boolean;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
type: string;
|
|
11
|
-
url: string;
|
|
12
|
-
}
|
|
13
|
-
interface SegmentPlaybackEvent {
|
|
14
|
-
duration?: number;
|
|
15
|
-
mediaInfo?: any;
|
|
16
|
-
mimeType?: string;
|
|
17
|
-
playbackTime?: number;
|
|
18
|
-
representationId?: string;
|
|
19
|
-
timestamp?: number;
|
|
20
|
-
type?: string;
|
|
21
|
-
uid?: string;
|
|
22
|
-
url?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare class Bitmovin8SegmentTrackerAdapter {
|
|
25
|
-
private segmentTracker;
|
|
26
|
-
constructor(player: PlayerAPI, segmentTracker: SegmentTracker);
|
|
27
|
-
getSegmentTracker(): SegmentTracker;
|
|
28
|
-
handleOnDownloadFinishEvent(event: DownloadFinishedEvent & any): void;
|
|
29
|
-
handleSegmentPlaybackEvent: (event: SegmentPlaybackEvent & any) => void;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PlayerAPI } from 'bitmovin-player';
|
|
2
|
-
import { DownloadSpeedMeter } from '../../core/DownloadSpeedMeter';
|
|
3
|
-
export declare class Bitmovin8SpeedMeterAdapter {
|
|
4
|
-
private meter;
|
|
5
|
-
constructor(player: PlayerAPI, meter: DownloadSpeedMeter);
|
|
6
|
-
getDownloadSpeedMeter(): DownloadSpeedMeter;
|
|
7
|
-
handleOnDownloadFinishEvent(event: any): void;
|
|
8
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import { Player } from '../../enums/Player';
|
|
3
|
-
import { Feature } from '../../features/Feature';
|
|
4
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
-
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
6
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
7
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
8
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
9
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
10
|
-
import { InternalAdapter } from './InternalAdapter';
|
|
11
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
12
|
-
export declare class CAFv3InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
|
|
13
|
-
protected context: any;
|
|
14
|
-
private playerManager;
|
|
15
|
-
private mediaInformation;
|
|
16
|
-
private activeAudioTrack;
|
|
17
|
-
private activeTextTracks;
|
|
18
|
-
private currentItem;
|
|
19
|
-
private isSeeking;
|
|
20
|
-
constructor(context: any, opts?: AnalyticsStateMachineOptions);
|
|
21
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
22
|
-
getPlayerVersion(): string;
|
|
23
|
-
getPlayerName: () => Player;
|
|
24
|
-
getPlayerTech: () => string;
|
|
25
|
-
getAutoPlay: () => any;
|
|
26
|
-
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
27
|
-
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
28
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
29
|
-
register(): void;
|
|
30
|
-
onPaused(currentTime?: number): void;
|
|
31
|
-
protected get currentTime(): number;
|
|
32
|
-
private getIsLive;
|
|
33
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import { Player } from '../../enums/Player';
|
|
3
|
-
import { Feature } from '../../features/Feature';
|
|
4
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
6
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
7
|
-
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
|
|
8
|
-
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
|
|
9
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
10
|
-
export declare class DashjsInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {
|
|
11
|
-
private mediaPlayer;
|
|
12
|
-
constructor(mediaPlayer: any, opts?: AnalyticsStateMachineOptions);
|
|
13
|
-
/**
|
|
14
|
-
* @override
|
|
15
|
-
*/
|
|
16
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
17
|
-
registerMediaElementEventsForDashJS(): void;
|
|
18
|
-
getPlayerName: () => Player;
|
|
19
|
-
getPlayerVersion: () => any;
|
|
20
|
-
/**
|
|
21
|
-
* @override
|
|
22
|
-
*/
|
|
23
|
-
getMIMEType(): string;
|
|
24
|
-
/**
|
|
25
|
-
* @override
|
|
26
|
-
*/
|
|
27
|
-
getStreamURL(): string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Implemented by sub-class to deliver current quality-level info
|
|
30
|
-
* specific to media-engine.
|
|
31
|
-
* @override
|
|
32
|
-
* @returns {QualityLevelInfo}
|
|
33
|
-
*/
|
|
34
|
-
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
35
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Subscribable } from '../../core/EventDispatcher';
|
|
2
|
-
export interface DeferredLicenseLoadingAdapterAPI {
|
|
3
|
-
readonly supportsDeferredLicenseLoading?: boolean;
|
|
4
|
-
readonly onLicenseKeyReceived: Subscribable<{
|
|
5
|
-
licenseKey: string;
|
|
6
|
-
}>;
|
|
7
|
-
readonly onLicenseCallFailed: Subscribable<{}>;
|
|
8
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
3
|
-
import { Player } from '../../enums/Player';
|
|
4
|
-
import { Feature } from '../../features/Feature';
|
|
5
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
6
|
-
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
7
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
8
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
9
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
10
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
11
|
-
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
|
|
12
|
-
import { SegmentInfo } from '../../types/SegmentInfo';
|
|
13
|
-
import { StreamSources } from '../../types/StreamSources';
|
|
14
|
-
import { SubtitleInfo } from '../../types/SubtitleInfo';
|
|
15
|
-
import { InternalAdapter } from './InternalAdapter';
|
|
16
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
17
|
-
export declare abstract class HTML5InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
|
|
18
|
-
protected mediaElement: HTMLVideoElement | null;
|
|
19
|
-
get segments(): SegmentInfo[];
|
|
20
|
-
private static BUFFERING_TIMECHANGED_TIMEOUT;
|
|
21
|
-
mediaElEventHandlers: Array<{
|
|
22
|
-
event: string;
|
|
23
|
-
handler: any;
|
|
24
|
-
}>;
|
|
25
|
-
abstract getPlayerVersion: () => string;
|
|
26
|
-
readonly videoCompletionTracker: VideoCompletionTracker;
|
|
27
|
-
protected needsFirstPlayIntent: boolean;
|
|
28
|
-
private onBeforeUnLoadEvent;
|
|
29
|
-
private bufferingTimeout?;
|
|
30
|
-
private isBuffering;
|
|
31
|
-
private lastIsLiveStatus;
|
|
32
|
-
private isPaused;
|
|
33
|
-
private isSeeking;
|
|
34
|
-
private previousMediaTime;
|
|
35
|
-
private previousClientTime;
|
|
36
|
-
private needsReadyEvent;
|
|
37
|
-
private mediaElementSet;
|
|
38
|
-
private previousMutedValue;
|
|
39
|
-
constructor(mediaElement: HTMLVideoElement | null, opts?: AnalyticsStateMachineOptions);
|
|
40
|
-
getPlayerName: () => Player;
|
|
41
|
-
getPlayerTech: () => string;
|
|
42
|
-
getAutoPlay: () => boolean;
|
|
43
|
-
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
44
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
45
|
-
isLive: () => boolean;
|
|
46
|
-
getStreamSources(url: string | undefined): StreamSources;
|
|
47
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
48
|
-
protected get currentTime(): number;
|
|
49
|
-
/**
|
|
50
|
-
* Used to setup against the media element.
|
|
51
|
-
* We need this method to desynchronize construction of this class
|
|
52
|
-
* and the actual initialization against the media element.
|
|
53
|
-
* That is because at construction some media engine
|
|
54
|
-
* may not already have the media element attached, for example
|
|
55
|
-
* when passing in the DOM element is happening at once with passing the source URL
|
|
56
|
-
* and can not be decoupled.
|
|
57
|
-
* We are then awaiting an event from the engine and calling this with the media element
|
|
58
|
-
* as argument from our sub-class.
|
|
59
|
-
*
|
|
60
|
-
* This method can also be called without arguments and then it will perform
|
|
61
|
-
* initialization against the existing media element (should only be called once, will throw an error otherwise)
|
|
62
|
-
*
|
|
63
|
-
* It can also be used to replace the element.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
setMediaElement(mediaElement?: HTMLVideoElement | null): void;
|
|
68
|
-
abstract getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
69
|
-
/**
|
|
70
|
-
* Can be overriden by sub-classes
|
|
71
|
-
* @returns {string}
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
getMIMEType(): string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Can be overriden by sub-classes
|
|
77
|
-
* @returns {string}
|
|
78
|
-
*/
|
|
79
|
-
getStreamType(): string | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Can be overriden by subclasses.
|
|
82
|
-
* @returns {string}
|
|
83
|
-
*/
|
|
84
|
-
getStreamURL(): string | undefined;
|
|
85
|
-
resetMedia(): void;
|
|
86
|
-
registerMediaElement(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Should only be calld when a mediaElement is attached
|
|
89
|
-
*/
|
|
90
|
-
listenToMediaElementEvent(event: any, handler: any): void;
|
|
91
|
-
onMaybeReady(): void;
|
|
92
|
-
/**
|
|
93
|
-
* Should only be calld when a mediaElement is attached
|
|
94
|
-
*/
|
|
95
|
-
unregisterMediaElement(): void;
|
|
96
|
-
onBuffering(): void;
|
|
97
|
-
onPaused(currentTime?: number): void;
|
|
98
|
-
registerWindowEvents(): void;
|
|
99
|
-
onPageClose(): void;
|
|
100
|
-
checkPlayheadProgress(): void;
|
|
101
|
-
checkQualityLevelAttributes(silent?: boolean): void;
|
|
102
|
-
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
103
|
-
getSelectedSubtitleFromMediaElement(mediaElement: any): SubtitleInfo | undefined;
|
|
104
|
-
protected initializeStateMachine(): void;
|
|
105
|
-
private wrapMediaElementLoad;
|
|
106
|
-
private checkSeeking;
|
|
107
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Player } from '../../enums/Player';
|
|
2
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
3
|
-
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
|
|
4
|
-
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
|
|
5
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
6
|
-
export declare class HTMLVideoElementInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {
|
|
7
|
-
constructor(mediaElement: HTMLVideoElement, opts?: AnalyticsStateMachineOptions);
|
|
8
|
-
getPlayerName: () => Player;
|
|
9
|
-
getPlayerVersion: () => string;
|
|
10
|
-
/**
|
|
11
|
-
* @override
|
|
12
|
-
*/
|
|
13
|
-
getStreamURL(): string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Implemented by sub-class to deliver current quality-level info
|
|
16
|
-
* specific to media-engine.
|
|
17
|
-
* @override
|
|
18
|
-
* @returns {QualityLevelInfo}
|
|
19
|
-
*/
|
|
20
|
-
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/// <reference types="hls.js" />
|
|
2
|
-
import { Analytics } from '../../core/Analytics';
|
|
3
|
-
import { Player } from '../../enums/Player';
|
|
4
|
-
import { Feature } from '../../features/Feature';
|
|
5
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
6
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
7
|
-
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
8
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
9
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
10
|
-
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
|
|
11
|
-
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
|
|
12
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
13
|
-
export declare class HlsInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {
|
|
14
|
-
private hls;
|
|
15
|
-
get downloadSpeedInfo(): DownloadSpeedInfo;
|
|
16
|
-
private speedMeter;
|
|
17
|
-
constructor(hls: Hls, opts?: AnalyticsStateMachineOptions);
|
|
18
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
19
|
-
clearValues(): void;
|
|
20
|
-
getPlayerName: () => Player;
|
|
21
|
-
getPlayerVersion: () => any;
|
|
22
|
-
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
23
|
-
/**
|
|
24
|
-
* @override
|
|
25
|
-
*/
|
|
26
|
-
isLive: () => boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @override
|
|
29
|
-
*/
|
|
30
|
-
getMIMEType(): string;
|
|
31
|
-
/**
|
|
32
|
-
* @override
|
|
33
|
-
*/
|
|
34
|
-
getStreamURL(): any;
|
|
35
|
-
registerHlsEvents(): void;
|
|
36
|
-
onMediaAttaching(): void;
|
|
37
|
-
onMediaDetaching(): void;
|
|
38
|
-
onManifestLoading(): void;
|
|
39
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
40
|
-
/**
|
|
41
|
-
* errorData: { type : error type, details : error details, fatal : if true, hls.js cannot/will not try to recover, if false, hls.js will try to recover,other error specific data }
|
|
42
|
-
* https://hls-js.netlify.com/api-docs/file/src/events.js.html#lineNumber98
|
|
43
|
-
*/
|
|
44
|
-
onHlsError(errorName: any, errorData: any): void;
|
|
45
|
-
onAudioTrackSwitched(event: string, data: {
|
|
46
|
-
id: string;
|
|
47
|
-
}): void;
|
|
48
|
-
onSubtitleLanguageSwitched(event: string, data: {
|
|
49
|
-
id: string;
|
|
50
|
-
}): void;
|
|
51
|
-
private onDestroying;
|
|
52
|
-
/**
|
|
53
|
-
* returns mapped error code for Hlsjs ErrorTypes
|
|
54
|
-
* @param type one of the ErrorTypes according to https://github.com/video-dev/hls.js/blob/master/src/errors.ts
|
|
55
|
-
*/
|
|
56
|
-
private getErrorCodeFromHlsErrorType;
|
|
57
|
-
private getSelectedAudioLanguage;
|
|
58
|
-
private getSelectedSubtitleLanguage;
|
|
59
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DownloadSpeedMeter } from '../../core/DownloadSpeedMeter';
|
|
2
|
-
export declare class HlsSpeedMeterAdapter {
|
|
3
|
-
private meter;
|
|
4
|
-
constructor(hls: any, meter: DownloadSpeedMeter);
|
|
5
|
-
getDownloadSpeedMeter(): DownloadSpeedMeter;
|
|
6
|
-
handleFragmentLoadedEvent(data: {
|
|
7
|
-
frag: any;
|
|
8
|
-
stats: any;
|
|
9
|
-
networkDetails: any;
|
|
10
|
-
}): void;
|
|
11
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AnalyticsStateMachine } from '../../analyticsStateMachines/AnalyticsStateMachine';
|
|
2
|
-
import { EventDispatcher } from '../../core/EventDispatcher';
|
|
3
|
-
import { Event, EventMap } from '../../enums/Event';
|
|
4
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
5
|
-
import { CustomDataValues } from '../../types/CustomDataValues';
|
|
6
|
-
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
7
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
8
|
-
import { NoExtraProperties } from '../../types/NoExtraProperties';
|
|
9
|
-
import { SegmentInfo } from '../../types/SegmentInfo';
|
|
10
|
-
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
|
|
11
|
-
import { WindowEventTracker } from '../../utils/WindowEventTracker';
|
|
12
|
-
export declare abstract class InternalAdapter {
|
|
13
|
-
stateMachineCallbacks: StateMachineCallbacks;
|
|
14
|
-
protected stateMachine: AnalyticsStateMachine;
|
|
15
|
-
protected opts: AnalyticsStateMachineOptions;
|
|
16
|
-
protected _onLicenseKeyReceived: EventDispatcher<{
|
|
17
|
-
licenseKey: string;
|
|
18
|
-
}>;
|
|
19
|
-
protected _onLicenseCallFailed: EventDispatcher<{}>;
|
|
20
|
-
protected drmPerformanceInfo: DrmPerformanceInfo | undefined;
|
|
21
|
-
protected previousVideoBitrate: number;
|
|
22
|
-
protected previousAudioBitrate: number;
|
|
23
|
-
protected qualityChangeCount: number;
|
|
24
|
-
protected abstract get currentTime(): number;
|
|
25
|
-
private _windowEventTracker;
|
|
26
|
-
get windowEventTracker(): WindowEventTracker;
|
|
27
|
-
get onLicenseKeyReceived(): EventDispatcher<{
|
|
28
|
-
licenseKey: string;
|
|
29
|
-
}>;
|
|
30
|
-
get onLicenseCallFailed(): EventDispatcher<{}>;
|
|
31
|
-
get downloadSpeedInfo(): DownloadSpeedInfo;
|
|
32
|
-
get segments(): SegmentInfo[];
|
|
33
|
-
constructor(opts?: AnalyticsStateMachineOptions);
|
|
34
|
-
release(): void;
|
|
35
|
-
eventCallback: <StatemachineEvent extends Event, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>) => void;
|
|
36
|
-
getCommonPlaybackInfo(): {
|
|
37
|
-
screenHeight: number;
|
|
38
|
-
screenWidth: number;
|
|
39
|
-
};
|
|
40
|
-
clearValues(): void;
|
|
41
|
-
clearSegments(): void;
|
|
42
|
-
increaseQualityChangeCount(): void;
|
|
43
|
-
resetQualityChangeCount(): void;
|
|
44
|
-
resetSourceRelatedState(): void;
|
|
45
|
-
isQualityChangeEventEnabled(): boolean;
|
|
46
|
-
setCustomData(values: CustomDataValues): void;
|
|
47
|
-
protected shouldAllowVideoQualityChange(newBitrate: number | undefined): boolean;
|
|
48
|
-
protected setPreviousVideoBitrate(newBitrate: number): void;
|
|
49
|
-
protected shouldAllowAudioQualityChange(newBitrate: number | undefined): boolean;
|
|
50
|
-
protected setPreviousAudioBitrate(newBitrate: number): void;
|
|
51
|
-
protected isAudioMuted(playerIsMuted: boolean, currentVolume: number): boolean;
|
|
52
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
3
|
-
import { Feature } from '../../features/Feature';
|
|
4
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
-
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
6
|
-
import { CustomDataValues } from '../../types/CustomDataValues';
|
|
7
|
-
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
8
|
-
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
9
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
10
|
-
import { PlaybackInfo } from '../../types/PlaybackInfo';
|
|
11
|
-
import { SegmentInfo } from '../../types/SegmentInfo';
|
|
12
|
-
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
|
|
13
|
-
import { AdModuleAPI } from './ads/AdModuleAPI';
|
|
14
|
-
import { DeferredLicenseLoadingAdapterAPI } from './DeferredLicenseLoadingAdapterAPI';
|
|
15
|
-
export interface InternalAdapterAPI extends DeferredLicenseLoadingAdapterAPI {
|
|
16
|
-
readonly downloadSpeedInfo: DownloadSpeedInfo;
|
|
17
|
-
readonly segments: SegmentInfo[];
|
|
18
|
-
readonly stateMachineCallbacks: StateMachineCallbacks;
|
|
19
|
-
readonly adModule?: AdModuleAPI;
|
|
20
|
-
readonly videoCompletionTracker?: VideoCompletionTracker;
|
|
21
|
-
isQualityChangeEventEnabled(): boolean;
|
|
22
|
-
increaseQualityChangeCount(): void;
|
|
23
|
-
resetQualityChangeCount(): void;
|
|
24
|
-
resetSourceRelatedState(): void;
|
|
25
|
-
getPlayerVersion(): string;
|
|
26
|
-
getPlayerName(): string;
|
|
27
|
-
getPlayerTech(): string;
|
|
28
|
-
getAutoPlay(): boolean;
|
|
29
|
-
getDrmPerformanceInfo(): DrmPerformanceInfo | undefined;
|
|
30
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
31
|
-
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
32
|
-
sourceChange(config: AnalyticsConfig, timestamp: number): any;
|
|
33
|
-
clearValues(): void;
|
|
34
|
-
onError?(): void;
|
|
35
|
-
setCustomData(values: CustomDataValues): void;
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '../../core/Analytics';
|
|
2
|
-
import { Player } from '../../enums/Player';
|
|
3
|
-
import { Feature } from '../../features/Feature';
|
|
4
|
-
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
-
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
6
|
-
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
7
|
-
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
|
|
8
|
-
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
|
|
9
|
-
import { InternalAdapterAPI } from './InternalAdapterAPI';
|
|
10
|
-
export declare class ShakaInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {
|
|
11
|
-
private player;
|
|
12
|
-
constructor(player: any, opts?: AnalyticsStateMachineOptions);
|
|
13
|
-
/**
|
|
14
|
-
* @override
|
|
15
|
-
*/
|
|
16
|
-
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
17
|
-
getPlayerName: () => Player;
|
|
18
|
-
getPlayerVersion: () => any;
|
|
19
|
-
isLive: () => any;
|
|
20
|
-
/**
|
|
21
|
-
* @override
|
|
22
|
-
*/
|
|
23
|
-
getMIMEType(): string;
|
|
24
|
-
/**
|
|
25
|
-
* @override
|
|
26
|
-
*/
|
|
27
|
-
getStreamURL(): any;
|
|
28
|
-
/**
|
|
29
|
-
* Implemented by sub-class to deliver current quality-level info
|
|
30
|
-
* specific to media-engine.
|
|
31
|
-
* @override
|
|
32
|
-
* @returns {QualityLevelInfo}
|
|
33
|
-
*/
|
|
34
|
-
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
35
|
-
private onUnloading;
|
|
36
|
-
}
|