@broadcastingplatforms/player 1.4.10 → 1.5.1
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/dist/bp-player.js +154 -154
- package/dist/bp-player.mjs +154 -154
- package/dist/bp-player.standalone.mjs +172 -172
- package/dist/core/index.d.ts +1 -1
- package/dist/core/player-core.d.ts +1 -0
- package/dist/core/state.d.ts +8 -0
- package/dist/elements/hls-video.test.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createPlayerCore, PlayerCoreImpl } from './player-core';
|
|
2
2
|
export type { PlayerCore, PlayerCoreEventMap, PlayerCoreEventType, SourceLoadResult } from './player-core';
|
|
3
|
-
export { createInitialState, classifyNanoPlayerError, classifyLiveKitError, NANOPLAYER_NO_REPLAY_CODES } from './state';
|
|
3
|
+
export { createInitialState, classifyNanoPlayerError, classifyLiveKitError, classifyHlsError, NANOPLAYER_NO_REPLAY_CODES, HLS_ERROR_CODES } from './state';
|
|
4
4
|
export type { PlayerState, QualityLevel, PresentationMode, ConnectionState, StreamType, ProviderType, PlayerError, ErrorCategory, } from './state';
|
|
5
5
|
export { StateReceiverMixin, StateReceiverProps, isStateReceiverElement, forEachStateReceiverElement, propagateStateToReceiver, removeStateFromReceiver, } from './state-receiver';
|
|
6
6
|
export type { StateReceiverElement, StateReceiverPropertyMap } from './state-receiver';
|
|
@@ -163,6 +163,7 @@ export declare class PlayerCoreImpl implements PlayerCore {
|
|
|
163
163
|
private _currentProviderType;
|
|
164
164
|
private _ready;
|
|
165
165
|
private _loadGeneration;
|
|
166
|
+
private _attachedElementGeneration;
|
|
166
167
|
constructor();
|
|
167
168
|
get state(): PlayerState;
|
|
168
169
|
get videoElement(): HTMLVideoElement | null;
|
package/dist/core/state.d.ts
CHANGED
|
@@ -49,5 +49,13 @@ export interface PlayerError {
|
|
|
49
49
|
export declare const NANOPLAYER_NO_REPLAY_CODES: readonly [1005, 1007, 1008, 1009, 3001, 3002, 3003, 3004, 3005, 3100, 3101, 3200, 4003];
|
|
50
50
|
export declare function classifyNanoPlayerError(code: number): ErrorCategory;
|
|
51
51
|
export declare function classifyLiveKitError(code: number): ErrorCategory;
|
|
52
|
+
export declare const HLS_ERROR_CODES: {
|
|
53
|
+
readonly network: 6001;
|
|
54
|
+
readonly media: 6002;
|
|
55
|
+
readonly keySystem: 6003;
|
|
56
|
+
readonly other: 6004;
|
|
57
|
+
readonly auth: 6005;
|
|
58
|
+
};
|
|
59
|
+
export declare function classifyHlsError(code: number): ErrorCategory;
|
|
52
60
|
export declare function createInitialState(): PlayerState;
|
|
53
61
|
//# sourceMappingURL=state.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { Attribute, toggleAttribute } from './util/attribute';
|
|
|
7
7
|
export { HlsVideoElement, HlsVideo, Hls, NanoVideoElement, NanoVideo, LiveKitVideoElement, LiveKitVideo, } from './elements/index';
|
|
8
8
|
export { createPlayerCore } from './core/player-core';
|
|
9
9
|
export type { PlayerCore, PlayerCoreEventMap, PlayerCoreEventType, CustomVideoElement } from './core/player-core';
|
|
10
|
-
export { createInitialState, classifyNanoPlayerError, classifyLiveKitError, NANOPLAYER_NO_REPLAY_CODES } from './core/state';
|
|
10
|
+
export { createInitialState, classifyNanoPlayerError, classifyLiveKitError, classifyHlsError, NANOPLAYER_NO_REPLAY_CODES, HLS_ERROR_CODES } from './core/state';
|
|
11
11
|
export type { PlayerState, QualityLevel, PresentationMode, ConnectionState, StreamType, ContentType, PlayerError, ErrorCategory, } from './core/state';
|
|
12
12
|
export { StateReceiverMixin, StateReceiverProps, isStateReceiverElement, forEachStateReceiverElement, propagateStateToReceiver, removeStateFromReceiver, } from './core/state-receiver';
|
|
13
13
|
export type { StateReceiverElement, StateReceiverPropertyMap } from './core/state-receiver';
|