@100mslive/hms-video-store 0.2.76 → 0.2.77
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 +8 -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/hms-video-store.cjs.development.js +159 -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 +159 -129
- package/dist/hms-video-store.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/core/IHMSActions.ts +9 -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
|
@@ -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,13 @@ 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
|
+
*/
|
|
238
|
+
updatePeer(params: HMSPeerUpdateConfig): Promise<void>;
|
|
232
239
|
/**
|
|
233
240
|
* Set the type of logs from the SDK you want to be logged in the browser console.
|
|
234
241
|
*
|
|
@@ -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>;
|