@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.
@@ -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;
@@ -3,4 +3,5 @@ interface notifcationMap {
3
3
  }
4
4
  export declare const PEER_NOTIFICATION_TYPES: notifcationMap;
5
5
  export declare const TRACK_NOTIFICATION_TYPES: notifcationMap;
6
+ export declare const ACTION_TYPES: notifcationMap;
6
7
  export {};
@@ -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
  }
@@ -25,7 +25,7 @@ export interface HMSChangeMultiTrackStateParams {
25
25
  source?: HMSTrackSource;
26
26
  }
27
27
  export interface HMSLeaveRoomRequest {
28
- requestedBy: HMSPeer;
28
+ requestedBy?: HMSPeer;
29
29
  reason: string;
30
30
  roomEnded: boolean;
31
31
  }
@@ -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 {};