@100mslive/hms-video-store 0.2.75-1 → 0.2.78
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/core/IHMSActions.d.ts +9 -1
- package/dist/core/hmsSDKStore/HMSSDKActions.d.ts +1 -0
- package/dist/core/hmsSDKStore/common/mapping.d.ts +1 -0
- package/dist/core/hmsSDKStore/sdkTypes.d.ts +2 -2
- package/dist/core/schema/notification.d.ts +3 -1
- package/dist/core/schema/requests.d.ts +1 -1
- package/dist/core/selectors/selectors.d.ts +10 -0
- package/dist/core/selectors/selectorsByID.d.ts +7 -1
- package/dist/hms-video-store.cjs.development.js +173 -129
- package/dist/hms-video-store.cjs.development.js.map +1 -1
- package/dist/hms-video-store.cjs.production.min.js +1 -1
- package/dist/hms-video-store.cjs.production.min.js.map +1 -1
- package/dist/hms-video-store.esm.js +173 -130
- package/dist/hms-video-store.esm.js.map +1 -1
- package/dist/test/fakeStore.d.ts +2 -1
- package/package.json +3 -3
- package/src/core/IHMSActions.ts +10 -1
- package/src/core/hmsSDKStore/HMSNotifications.ts +7 -2
- package/src/core/hmsSDKStore/HMSSDKActions.ts +16 -14
- package/src/core/hmsSDKStore/common/mapping.ts +9 -0
- package/src/core/hmsSDKStore/sdkTypes.ts +2 -0
- package/src/core/schema/notification.ts +2 -0
- package/src/core/schema/requests.ts +1 -1
- package/src/core/selectors/selectorsByID.ts +17 -1
- package/src/test/fakeStore.ts +14 -3
- package/src/test/unit/roleSelectors.test.ts +9 -2
- package/src/test/unit/selectors.test.ts +11 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HMSConfig, HMSSimulcastLayer, HMSAudioTrackSettings, HMSVideoTrackSettings, HMSLogLevel, HMSVideoPlugin, HMSAudioPlugin } from '@100mslive/hms-video';
|
|
2
2
|
import { HMSMessageID, HMSPeerID, HMSRoleName, HMSTrackID, HMSTrackSource, IHMSPlaylistActions, HMSChangeMultiTrackStateParams } from './schema';
|
|
3
3
|
import { HMSRoleChangeRequest } from './selectors';
|
|
4
|
-
import { RTMPRecordingConfig } from './hmsSDKStore/sdkTypes';
|
|
4
|
+
import { RTMPRecordingConfig, HMSPeerUpdateConfig } from './hmsSDKStore/sdkTypes';
|
|
5
5
|
/**
|
|
6
6
|
* The below interface defines our SDK API Surface for taking room related actions.
|
|
7
7
|
* It talks to our 100ms backend and handles error reconnections, state managements
|
|
@@ -229,6 +229,14 @@ export interface IHMSActions {
|
|
|
229
229
|
* If you want to stop both RTMP streaming and recording.
|
|
230
230
|
*/
|
|
231
231
|
stopRTMPAndRecording(): Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* If both name and data is undefined: Message is ignored.
|
|
234
|
+
* If data is undefined: Name of the peer is changed.
|
|
235
|
+
* If name is undefined: Metadata of the peer is updated.
|
|
236
|
+
* If both name and data is defined: Both name and metadata is updated.
|
|
237
|
+
* @alpha
|
|
238
|
+
*/
|
|
239
|
+
updatePeer(params: HMSPeerUpdateConfig): Promise<void>;
|
|
232
240
|
/**
|
|
233
241
|
* Set the type of logs from the SDK you want to be logged in the browser console.
|
|
234
242
|
*
|
|
@@ -74,6 +74,7 @@ export declare class HMSSDKActions implements IHMSActions {
|
|
|
74
74
|
removePeer(peerID: string, reason: string): Promise<void>;
|
|
75
75
|
startRTMPOrRecording(params: sdkTypes.RTMPRecordingConfig): Promise<void>;
|
|
76
76
|
stopRTMPAndRecording(): Promise<void>;
|
|
77
|
+
updatePeer(params: sdkTypes.HMSPeerUpdateConfig): Promise<void>;
|
|
77
78
|
setRemoteTrackEnabled(trackID: HMSTrackID | HMSTrackID[], enabled: boolean): Promise<void>;
|
|
78
79
|
setRemoteTracksEnabled(params: HMSChangeMultiTrackStateParams): Promise<void>;
|
|
79
80
|
setLogLevel(level: HMSLogLevel): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HMSException, HMSSimulcastLayer, HMSPeerUpdate, HMSRoomUpdate, HMSTrackUpdate, HMSAudioTrackSettings, HMSVideoTrackSettings, HMSPeer, HMSRoom, HMSMessage, HMSConfig, HMSSpeaker, HMSRole, HMSLocalPeer, HMSRemotePeer, SimulcastLayerDefinition, DeviceMap, HMSLogLevel, HMSDeviceChangeEvent, HMSPlaylistItem, HMSPlaylistManager, HMSPlaylistProgressEvent, RTMPRecordingConfig, HMSRecording, HMSRTMP } from '@100mslive/hms-video';
|
|
2
|
-
export { HMSPeer, HMSRoom, HMSMessage, HMSSpeaker, HMSConfig, HMSAudioTrackSettings, HMSVideoTrackSettings, HMSException, HMSSimulcastLayer, HMSRoomUpdate, HMSPeerUpdate, HMSTrackUpdate, HMSRole, HMSLocalPeer, HMSRemotePeer, HMSLogLevel, SimulcastLayerDefinition, DeviceMap, HMSDeviceChangeEvent, HMSPlaylistItem, HMSPlaylistManager, HMSPlaylistProgressEvent, RTMPRecordingConfig, HMSRecording, HMSRTMP, };
|
|
1
|
+
import { HMSException, HMSSimulcastLayer, HMSPeerUpdate, HMSRoomUpdate, HMSTrackUpdate, HMSAudioTrackSettings, HMSVideoTrackSettings, HMSPeer, HMSRoom, HMSMessage, HMSConfig, HMSSpeaker, HMSRole, HMSLocalPeer, HMSRemotePeer, SimulcastLayerDefinition, DeviceMap, HMSLogLevel, HMSDeviceChangeEvent, HMSPlaylistItem, HMSPlaylistManager, HMSPlaylistProgressEvent, RTMPRecordingConfig, HMSRecording, HMSRTMP, HMSPeerUpdateConfig } from '@100mslive/hms-video';
|
|
2
|
+
export { HMSPeer, HMSRoom, HMSMessage, HMSSpeaker, HMSConfig, HMSAudioTrackSettings, HMSVideoTrackSettings, HMSException, HMSSimulcastLayer, HMSRoomUpdate, HMSPeerUpdate, HMSTrackUpdate, HMSRole, HMSLocalPeer, HMSRemotePeer, HMSLogLevel, SimulcastLayerDefinition, DeviceMap, HMSDeviceChangeEvent, HMSPlaylistItem, HMSPlaylistManager, HMSPlaylistProgressEvent, RTMPRecordingConfig, HMSRecording, HMSRTMP, HMSPeerUpdateConfig, };
|
|
@@ -32,5 +32,7 @@ export declare enum HMSNotificationTypes {
|
|
|
32
32
|
ROOM_ENDED = "ROOM_ENDED",
|
|
33
33
|
REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM",
|
|
34
34
|
DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE",
|
|
35
|
-
PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED"
|
|
35
|
+
PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED",
|
|
36
|
+
NAME_UPDATED = "NAME_UPDATED",
|
|
37
|
+
METADATA_UPDATED = "METADATA_UPDATED"
|
|
36
38
|
}
|
|
@@ -170,12 +170,22 @@ export declare const selectPermissions: import("reselect").OutputSelector<HMSSto
|
|
|
170
170
|
unmute: boolean;
|
|
171
171
|
mute: boolean;
|
|
172
172
|
changeRole: boolean;
|
|
173
|
+
rtmp: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
recording: boolean;
|
|
173
178
|
} | undefined, (res: HMSRole | null) => {
|
|
174
179
|
endRoom: boolean;
|
|
175
180
|
removeOthers: boolean;
|
|
176
181
|
unmute: boolean;
|
|
177
182
|
mute: boolean;
|
|
178
183
|
changeRole: boolean;
|
|
184
|
+
rtmp: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
recording: boolean;
|
|
179
189
|
} | undefined>;
|
|
180
190
|
export declare const selectRecordingState: import("reselect").OutputSelector<HMSStore, import("@100mslive/hms-video/dist/interfaces/room").HMSRecording, (res: HMSRoom) => import("@100mslive/hms-video/dist/interfaces/room").HMSRecording>;
|
|
181
191
|
export declare const selectRTMPState: import("reselect").OutputSelector<HMSStore, import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP, (res: HMSRoom) => import("@100mslive/hms-video/dist/interfaces/room").HMSRTMP>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HMSStore, HMSTrack } from '../schema';
|
|
1
|
+
import { HMSRoleName, HMSStore, HMSTrack } from '../schema';
|
|
2
2
|
/**
|
|
3
3
|
* StoreSelector is a function that takes in {@link HMSStore} as argument
|
|
4
4
|
* and returns a part of the store that is queried using the selector.
|
|
@@ -113,4 +113,10 @@ export declare const selectMessagesByPeerID: (id?: string | undefined) => StoreS
|
|
|
113
113
|
export declare const selectMessagesByRole: (id?: string | undefined) => StoreSelector<import("../schema").HMSMessage[] | undefined>;
|
|
114
114
|
export declare const selectMessagesUnreadCountByRole: (id?: string | undefined) => StoreSelector<number>;
|
|
115
115
|
export declare const selectMessagesUnreadCountByPeerID: (id?: string | undefined) => StoreSelector<number>;
|
|
116
|
+
/**
|
|
117
|
+
* Select an array of peers of a particular role
|
|
118
|
+
* @param role HMSRoleName
|
|
119
|
+
* @returns HMSPeer[]
|
|
120
|
+
*/
|
|
121
|
+
export declare const selectPeersByRole: (role: HMSRoleName) => import("reselect").OutputSelector<HMSStore, import("../schema").HMSPeer[], (res: import("../schema").HMSPeer[]) => import("../schema").HMSPeer[]>;
|
|
116
122
|
export {};
|