@vindral/web-sdk 4.8.0 → 4.8.1-10-gcc2fea9d
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/{DN0QZ0Rd.js → BSFFFGdZ.js} +1060 -1030
- package/{BaDhuUsA.js → Bg5VLlmK.js} +13 -4
- package/{DQ5kuB8C.js → CLvW8aae.js} +1 -1
- package/api-client.d.ts +2 -2
- package/cast-sender.d.ts +5 -0
- package/cast-sender.js +1 -1
- package/core.d.ts +12 -6
- package/core.js +1 -1
- package/legacy.d.ts +12 -6
- package/legacy.es.js +715 -672
- package/legacy.umd.js +16 -16
- package/{Bf7Esc1M.js → oiQZIm8G.js} +654 -622
- package/package.json +1 -1
- package/player.d.ts +9 -3
- package/player.js +2 -2
- package/react.d.ts +9 -3
- package/vindral-player-component.js +2 -2
package/package.json
CHANGED
package/player.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ type VoidKeys<Record> = MatchingKeys<Record, void>;
|
|
|
49
49
|
type EventListenerReturnType = (() => void) | void;
|
|
50
50
|
declare class Emitter<TEvents, TEmits = TEvents, ArgLessEvents extends VoidKeys<TEvents> = VoidKeys<TEvents>, ArgEvents extends Exclude<keyof TEvents, ArgLessEvents> = Exclude<keyof TEvents, ArgLessEvents>, ArgLessEmits extends VoidKeys<TEmits> = VoidKeys<TEmits>, ArgEmits extends Exclude<keyof TEmits, ArgLessEmits> = Exclude<keyof TEmits, ArgLessEmits>> {
|
|
51
51
|
private listeners;
|
|
52
|
+
/**
|
|
53
|
+
* Called when a listener or a deferred function throws. Rethrows by default, which stops the dispatch;
|
|
54
|
+
* an override that returns lets the remaining listeners and deferred functions run.
|
|
55
|
+
*/
|
|
56
|
+
protected handleListenerError(error: unknown, _eventName: PropertyKey): void;
|
|
52
57
|
emit<T extends ArgLessEmits>(eventName: T): void;
|
|
53
58
|
emit<T extends ArgEmits>(eventName: T, args: TEmits[T]): void;
|
|
54
59
|
/**
|
|
@@ -742,7 +747,7 @@ declare class ApiClient {
|
|
|
742
747
|
* Fetches information regarding a single channel.
|
|
743
748
|
*
|
|
744
749
|
* @param channelId the channel to fetch
|
|
745
|
-
* @returns a
|
|
750
|
+
* @returns a {@link Channel} containing information about the requested channel.
|
|
746
751
|
*/
|
|
747
752
|
getChannel(channelId: string): Promise<Channel>;
|
|
748
753
|
/**
|
|
@@ -751,7 +756,7 @@ declare class ApiClient {
|
|
|
751
756
|
* Note: The returned list includes inactive channels - check isLive to filter out only active channels
|
|
752
757
|
*
|
|
753
758
|
* @param channelGroupId the channel group to fetch channels from
|
|
754
|
-
* @returns an array of
|
|
759
|
+
* @returns an array of {@link Channel} that belong to the channel group
|
|
755
760
|
*/
|
|
756
761
|
getChannels(channelGroupId: string): Promise<Channel[]>;
|
|
757
762
|
private getHeaders;
|
|
@@ -1094,6 +1099,7 @@ declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1094
1099
|
private static BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT;
|
|
1095
1100
|
/** How long a pause on a visible page may still turn out to be the platform backgrounding us. */
|
|
1096
1101
|
private static VISIBLE_PAUSE_DISCONNECT_DELAY;
|
|
1102
|
+
protected handleListenerError(error: unknown, eventName: PropertyKey): void;
|
|
1097
1103
|
/**
|
|
1098
1104
|
* Picture in picture
|
|
1099
1105
|
*/
|
|
@@ -1334,7 +1340,7 @@ declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1334
1340
|
/**
|
|
1335
1341
|
* Set the current channelId
|
|
1336
1342
|
*
|
|
1337
|
-
* Possible channels to set are available from
|
|
1343
|
+
* Possible channels to set are available from {@link channels}
|
|
1338
1344
|
*
|
|
1339
1345
|
* Note that the following scenarios are not possible right now:
|
|
1340
1346
|
* - switching channel from a channel with audio to a channel without audio (unless audio only mode is active)
|
package/player.js
CHANGED
package/react.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ type VoidKeys<Record> = MatchingKeys<Record, void>;
|
|
|
51
51
|
type EventListenerReturnType = (() => void) | void;
|
|
52
52
|
declare class Emitter<TEvents, TEmits = TEvents, ArgLessEvents extends VoidKeys<TEvents> = VoidKeys<TEvents>, ArgEvents extends Exclude<keyof TEvents, ArgLessEvents> = Exclude<keyof TEvents, ArgLessEvents>, ArgLessEmits extends VoidKeys<TEmits> = VoidKeys<TEmits>, ArgEmits extends Exclude<keyof TEmits, ArgLessEmits> = Exclude<keyof TEmits, ArgLessEmits>> {
|
|
53
53
|
private listeners;
|
|
54
|
+
/**
|
|
55
|
+
* Called when a listener or a deferred function throws. Rethrows by default, which stops the dispatch;
|
|
56
|
+
* an override that returns lets the remaining listeners and deferred functions run.
|
|
57
|
+
*/
|
|
58
|
+
protected handleListenerError(error: unknown, _eventName: PropertyKey): void;
|
|
54
59
|
emit<T extends ArgLessEmits>(eventName: T): void;
|
|
55
60
|
emit<T extends ArgEmits>(eventName: T, args: TEmits[T]): void;
|
|
56
61
|
/**
|
|
@@ -744,7 +749,7 @@ declare class ApiClient {
|
|
|
744
749
|
* Fetches information regarding a single channel.
|
|
745
750
|
*
|
|
746
751
|
* @param channelId the channel to fetch
|
|
747
|
-
* @returns a
|
|
752
|
+
* @returns a {@link Channel} containing information about the requested channel.
|
|
748
753
|
*/
|
|
749
754
|
getChannel(channelId: string): Promise<Channel>;
|
|
750
755
|
/**
|
|
@@ -753,7 +758,7 @@ declare class ApiClient {
|
|
|
753
758
|
* Note: The returned list includes inactive channels - check isLive to filter out only active channels
|
|
754
759
|
*
|
|
755
760
|
* @param channelGroupId the channel group to fetch channels from
|
|
756
|
-
* @returns an array of
|
|
761
|
+
* @returns an array of {@link Channel} that belong to the channel group
|
|
757
762
|
*/
|
|
758
763
|
getChannels(channelGroupId: string): Promise<Channel[]>;
|
|
759
764
|
private getHeaders;
|
|
@@ -1096,6 +1101,7 @@ declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1096
1101
|
private static BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT;
|
|
1097
1102
|
/** How long a pause on a visible page may still turn out to be the platform backgrounding us. */
|
|
1098
1103
|
private static VISIBLE_PAUSE_DISCONNECT_DELAY;
|
|
1104
|
+
protected handleListenerError(error: unknown, eventName: PropertyKey): void;
|
|
1099
1105
|
/**
|
|
1100
1106
|
* Picture in picture
|
|
1101
1107
|
*/
|
|
@@ -1336,7 +1342,7 @@ declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1336
1342
|
/**
|
|
1337
1343
|
* Set the current channelId
|
|
1338
1344
|
*
|
|
1339
|
-
* Possible channels to set are available from
|
|
1345
|
+
* Possible channels to set are available from {@link channels}
|
|
1340
1346
|
*
|
|
1341
1347
|
* Note that the following scenarios are not possible right now:
|
|
1342
1348
|
* - switching channel from a channel with audio to a channel without audio (unless audio only mode is active)
|