@100mslive/react-native-hms 1.1.0 → 1.2.0
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/README.md +145 -340
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +205 -75
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +127 -127
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +153 -115
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +147 -17
- package/android/src/main/java/com/reactnativehmssdk/HMSSDKViewManager.kt +7 -7
- package/ios/HMSDecoder.swift +205 -129
- package/ios/HMSHelper.swift +3 -3
- package/ios/HMSManager.m +3 -0
- package/ios/HMSManager.swift +22 -1
- package/ios/HMSRNSDK.swift +228 -79
- package/ios/HMSView.m +2 -0
- package/ios/HMSView.swift +35 -3
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/yogesh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +133 -84
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +0 -2
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js +106 -0
- package/lib/commonjs/classes/HMSNativeEventEmitter.js.map +1 -0
- package/lib/commonjs/classes/HMSPeer.js +4 -0
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +0 -6
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +0 -6
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +3 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +465 -137
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +0 -2
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +133 -84
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +0 -2
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +1 -1
- package/lib/module/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/module/classes/HMSNativeEventEmitter.js +99 -0
- package/lib/module/classes/HMSNativeEventEmitter.js.map +1 -0
- package/lib/module/classes/HMSPeer.js +4 -0
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +0 -6
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSRole.js +0 -6
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +3 -1
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +466 -138
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +0 -2
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSBrowserRecordingState.d.ts +4 -4
- package/lib/typescript/classes/HMSChangeTrackStateRequest.d.ts +2 -2
- package/lib/typescript/classes/HMSEncoder.d.ts +3 -0
- package/lib/typescript/classes/HMSHLSStreamingState.d.ts +2 -2
- package/lib/typescript/classes/HMSLocalVideoTrack.d.ts +0 -2
- package/lib/typescript/classes/HMSMessageRecipient.d.ts +2 -2
- package/lib/typescript/classes/HMSNativeEventEmitter.d.ts +13 -0
- package/lib/typescript/classes/HMSPublishSettings.d.ts +8 -15
- package/lib/typescript/classes/HMSRole.d.ts +0 -6
- package/lib/typescript/classes/HMSRoleChangeRequest.d.ts +2 -2
- package/lib/typescript/classes/HMSRtmpStreamingState.d.ts +4 -4
- package/lib/typescript/classes/HMSSDK.d.ts +2 -12
- package/lib/typescript/classes/HMSServerRecordingState.d.ts +2 -2
- package/lib/typescript/classes/HMSSubscribeSettings.d.ts +0 -2
- package/lib/typescript/index.d.ts +1 -0
- package/package.json +6 -4
- package/react-native-hms.podspec +1 -1
- package/sdk-versions.json +5 -0
- package/src/classes/HMSBrowserRecordingState.ts +4 -4
- package/src/classes/HMSChangeTrackStateRequest.ts +2 -2
- package/src/classes/HMSEncoder.ts +186 -99
- package/src/classes/HMSHLSStreamingState.ts +2 -2
- package/src/classes/HMSLocalVideoTrack.ts +0 -2
- package/src/classes/HMSMessageRecipient.ts +3 -3
- package/src/classes/HMSNativeEventEmitter.ts +86 -0
- package/src/classes/HMSPeer.ts +4 -0
- package/src/classes/HMSPublishSettings.ts +8 -18
- package/src/classes/HMSRole.ts +0 -9
- package/src/classes/HMSRoleChangeRequest.ts +5 -3
- package/src/classes/HMSRtmpStreamingState.ts +4 -4
- package/src/classes/HMSSDK.tsx +629 -269
- package/src/classes/HMSServerRecordingState.ts +2 -2
- package/src/classes/HMSSubscribeSettings.ts +1 -7
- package/src/index.ts +1 -0
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\nexport * from './classes/HMSMessageType';\nexport * from './classes/HMSPIPListenerActions';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,cAAc,mB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,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,iCAAiC;
|
|
1
|
+
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\nexport * from './classes/HMSMessageType';\nexport * from './classes/HMSPIPListenerActions';\nexport type { HmsViewComponent as HMSView } from './classes/HmsView';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,c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C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,iCAAiC;AAG/C,SAASA,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,eAAeA,UAAU"}
|
|
@@ -2,12 +2,12 @@ import type { HMSException } from './HMSException';
|
|
|
2
2
|
export declare class HMSBrowserRecordingState {
|
|
3
3
|
running: boolean;
|
|
4
4
|
error?: HMSException;
|
|
5
|
-
startedAt
|
|
6
|
-
stoppedAt
|
|
5
|
+
startedAt?: Date;
|
|
6
|
+
stoppedAt?: Date;
|
|
7
7
|
constructor(params: {
|
|
8
8
|
running: boolean;
|
|
9
9
|
error?: HMSException;
|
|
10
|
-
startedAt
|
|
11
|
-
stoppedAt
|
|
10
|
+
startedAt?: Date;
|
|
11
|
+
stoppedAt?: Date;
|
|
12
12
|
});
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { HMSPeer } from './HMSPeer';
|
|
2
2
|
export declare class HMSChangeTrackStateRequest {
|
|
3
|
-
requestedBy
|
|
3
|
+
requestedBy?: HMSPeer;
|
|
4
4
|
trackType: string;
|
|
5
5
|
mute: boolean;
|
|
6
6
|
constructor(params: {
|
|
7
|
-
requestedBy
|
|
7
|
+
requestedBy?: HMSPeer;
|
|
8
8
|
trackType: string;
|
|
9
9
|
mute: boolean;
|
|
10
10
|
});
|
|
@@ -29,6 +29,8 @@ import { HMSMessage } from './HMSMessage';
|
|
|
29
29
|
import { HMSMessageRecipient } from './HMSMessageRecipient';
|
|
30
30
|
import { HMSException } from './HMSException';
|
|
31
31
|
export declare class HMSEncoder {
|
|
32
|
+
private static data;
|
|
33
|
+
static clearData(): void;
|
|
32
34
|
static encodeHmsRoom(room: HMSRoom, id: string): HMSRoom;
|
|
33
35
|
static encodeHmsPeers(peers: any, id: string): HMSPeer[];
|
|
34
36
|
static encodeHmsPeer(peer: any, id: string): HMSPeer;
|
|
@@ -58,6 +60,7 @@ export declare class HMSEncoder {
|
|
|
58
60
|
static encodeBrowserRecordingState(data: any): HMSBrowserRecordingState;
|
|
59
61
|
static encodeServerRecordingState(data: any): HMSServerRecordingState;
|
|
60
62
|
static encodeRTMPStreamingState(data: any): HMSRtmpStreamingState;
|
|
63
|
+
static encodeDate(dateData: any): Date | undefined;
|
|
61
64
|
static encodeHLSStreamingState(data: any): HMSHLSStreamingState;
|
|
62
65
|
static encodeHLSRecordingState(data: any): HMSHLSRecordingState | undefined;
|
|
63
66
|
static encodeHLSVariants(data: any): HMSHLSVariant[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { HMSHLSVariant } from './HMSHLSVariant';
|
|
2
2
|
export declare class HMSHLSStreamingState {
|
|
3
3
|
running: boolean;
|
|
4
|
-
variants
|
|
4
|
+
variants?: Array<HMSHLSVariant>;
|
|
5
5
|
constructor(params: {
|
|
6
6
|
running: boolean;
|
|
7
|
-
variants
|
|
7
|
+
variants?: Array<HMSHLSVariant>;
|
|
8
8
|
});
|
|
9
9
|
}
|
|
@@ -3,8 +3,6 @@ import type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';
|
|
|
3
3
|
import type { HMSTrackType } from './HMSTrackType';
|
|
4
4
|
export declare class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
5
5
|
settings?: HMSVideoTrackSettings;
|
|
6
|
-
startCapturing?: Function;
|
|
7
|
-
stopCapturing?: Function;
|
|
8
6
|
id: string;
|
|
9
7
|
/**
|
|
10
8
|
* switches camera between front/back
|
|
@@ -2,9 +2,9 @@ import type { HMSMessageRecipientType } from './HMSMessageRecipientType';
|
|
|
2
2
|
import type { HMSPeer } from './HMSPeer';
|
|
3
3
|
import type { HMSRole } from './HMSRole';
|
|
4
4
|
export declare class HMSMessageRecipient {
|
|
5
|
-
recipientType
|
|
5
|
+
recipientType: HMSMessageRecipientType;
|
|
6
6
|
recipientPeer?: HMSPeer;
|
|
7
|
-
recipientRoles
|
|
7
|
+
recipientRoles: HMSRole[];
|
|
8
8
|
constructor(params: {
|
|
9
9
|
recipientType: HMSMessageRecipientType;
|
|
10
10
|
recipientPeer?: HMSPeer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type HMSEventSubscription = {
|
|
2
|
+
remove(): void;
|
|
3
|
+
};
|
|
4
|
+
export declare class HMSNativeEventEmitter {
|
|
5
|
+
private _nativeEventEmitter;
|
|
6
|
+
private _nativeModule;
|
|
7
|
+
constructor(nativeModule: any);
|
|
8
|
+
listenerCount(eventType: string): number;
|
|
9
|
+
addListener(id: string, eventType: string, listener: (...args: any[]) => any): HMSEventSubscription;
|
|
10
|
+
removeAllListeners(id: string, eventType: string): void;
|
|
11
|
+
private enableHMSEventType;
|
|
12
|
+
private disableHMSEventType;
|
|
13
|
+
}
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import type { HMSAudioSettings } from './HMSAudioSettings';
|
|
2
|
-
import type { HMSSimulcastSettings } from './HMSSimulcastSettings';
|
|
3
2
|
import type { HMSVideoSettings } from './HMSVideoSettings';
|
|
4
3
|
export declare class HMSPublishSettings {
|
|
5
|
-
audio
|
|
6
|
-
video
|
|
7
|
-
screen
|
|
8
|
-
|
|
9
|
-
videoSimulcast?: HMSSimulcastSettings;
|
|
10
|
-
screenSimulcast?: HMSSimulcastSettings;
|
|
11
|
-
allowed?: [string];
|
|
4
|
+
audio?: HMSAudioSettings;
|
|
5
|
+
video?: HMSVideoSettings;
|
|
6
|
+
screen?: HMSVideoSettings;
|
|
7
|
+
allowed?: string[];
|
|
12
8
|
constructor(params: {
|
|
13
|
-
audio
|
|
14
|
-
video
|
|
15
|
-
screen
|
|
16
|
-
|
|
17
|
-
videoSimulcast?: HMSSimulcastSettings;
|
|
18
|
-
screenSimulcast?: HMSSimulcastSettings;
|
|
19
|
-
allowed?: [string];
|
|
9
|
+
audio?: HMSAudioSettings;
|
|
10
|
+
video?: HMSVideoSettings;
|
|
11
|
+
screen?: HMSVideoSettings;
|
|
12
|
+
allowed?: string[];
|
|
20
13
|
});
|
|
21
14
|
}
|
|
@@ -7,17 +7,11 @@ export declare class HMSRole {
|
|
|
7
7
|
subscribeSettings?: HMSSubscribeSettings;
|
|
8
8
|
permissions?: HMSPermissions;
|
|
9
9
|
priority?: number;
|
|
10
|
-
generalPermissions?: any;
|
|
11
|
-
internalPlugins?: any;
|
|
12
|
-
externalPlugins?: any;
|
|
13
10
|
constructor(params?: {
|
|
14
11
|
name?: string;
|
|
15
12
|
priority?: number;
|
|
16
13
|
permissions?: HMSPermissions;
|
|
17
14
|
publishSettings?: HMSPublishSettings;
|
|
18
15
|
subscribeSettings?: HMSSubscribeSettings;
|
|
19
|
-
generalPermissions?: any;
|
|
20
|
-
internalPlugins?: any;
|
|
21
|
-
externalPlugins?: any;
|
|
22
16
|
});
|
|
23
17
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { HMSRole } from './HMSRole';
|
|
2
2
|
import type { HMSPeer } from './HMSPeer';
|
|
3
3
|
export declare class HMSRoleChangeRequest {
|
|
4
|
-
requestedBy
|
|
4
|
+
requestedBy?: HMSPeer;
|
|
5
5
|
suggestedRole: HMSRole;
|
|
6
6
|
constructor(params: {
|
|
7
|
-
requestedBy
|
|
7
|
+
requestedBy?: HMSPeer;
|
|
8
8
|
suggestedRole: HMSRole;
|
|
9
9
|
});
|
|
10
10
|
}
|
|
@@ -2,12 +2,12 @@ import type { HMSException } from './HMSException';
|
|
|
2
2
|
export declare class HMSRtmpStreamingState {
|
|
3
3
|
running: boolean;
|
|
4
4
|
error?: HMSException;
|
|
5
|
-
startedAt
|
|
6
|
-
stoppedAt
|
|
5
|
+
startedAt?: Date;
|
|
6
|
+
stoppedAt?: Date;
|
|
7
7
|
constructor(params: {
|
|
8
8
|
running: boolean;
|
|
9
9
|
error?: HMSException;
|
|
10
|
-
startedAt
|
|
11
|
-
stoppedAt
|
|
10
|
+
startedAt?: Date;
|
|
11
|
+
stoppedAt?: Date;
|
|
12
12
|
});
|
|
13
13
|
}
|
|
@@ -57,6 +57,7 @@ export declare class HMSSDK {
|
|
|
57
57
|
private onRemoteVideoStatsDelegate?;
|
|
58
58
|
private onAudioDeviceChangedDelegate?;
|
|
59
59
|
private onPIPRoomLeaveDelegate?;
|
|
60
|
+
private emitterSubscriptions;
|
|
60
61
|
private constructor();
|
|
61
62
|
/**
|
|
62
63
|
* - Returns an instance of [HMSSDK] {@link HMSSDK}
|
|
@@ -99,18 +100,6 @@ export declare class HMSSDK {
|
|
|
99
100
|
* @memberof HMSSDK
|
|
100
101
|
*/
|
|
101
102
|
destroy: () => Promise<any>;
|
|
102
|
-
/**
|
|
103
|
-
* - Attaches all the listeners to native callbacks.
|
|
104
|
-
* Note: this function connects sdk to native side and not app to sdk.
|
|
105
|
-
* @memberof HMSSDK
|
|
106
|
-
*/
|
|
107
|
-
attachListeners: () => void;
|
|
108
|
-
/**
|
|
109
|
-
* Disconnects all the listeners of this sdk from native listeners.
|
|
110
|
-
* Note: this function is only called from destroy function and should only be called when the current instance of {@link HMSSDK} is not required anymore.
|
|
111
|
-
* @memberof HMSSDK
|
|
112
|
-
*/
|
|
113
|
-
removeListeners: () => void;
|
|
114
103
|
/**
|
|
115
104
|
* takes an instance of [HMSConfig]{@link HMSConfig} and joins the room.
|
|
116
105
|
* after joining the room user will start receiving the events and updates of the room.
|
|
@@ -155,6 +144,7 @@ export declare class HMSSDK {
|
|
|
155
144
|
* @memberof HMSSDK
|
|
156
145
|
*/
|
|
157
146
|
HmsView: React.ForwardRefExoticComponent<HmsViewProps & React.RefAttributes<any>>;
|
|
147
|
+
roomLeaveCleanup: () => void;
|
|
158
148
|
/**
|
|
159
149
|
* Calls leave function of native sdk and session of current user is invalidated.
|
|
160
150
|
*
|
|
@@ -2,10 +2,10 @@ import type { HMSException } from './HMSException';
|
|
|
2
2
|
export declare class HMSServerRecordingState {
|
|
3
3
|
running: boolean;
|
|
4
4
|
error?: HMSException;
|
|
5
|
-
startedAt
|
|
5
|
+
startedAt?: Date;
|
|
6
6
|
constructor(params: {
|
|
7
7
|
running: boolean;
|
|
8
8
|
error?: HMSException;
|
|
9
|
-
startedAt
|
|
9
|
+
startedAt?: Date;
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -75,5 +75,6 @@ export * from './classes/HMSLogSettings';
|
|
|
75
75
|
export * from './classes/HMSLogAlarmManager';
|
|
76
76
|
export * from './classes/HMSMessageType';
|
|
77
77
|
export * from './classes/HMSPIPListenerActions';
|
|
78
|
+
export type { HmsViewComponent as HMSView } from './classes/HmsView';
|
|
78
79
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
79
80
|
export default HmsManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-hms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The React Native package for 100ms SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"ios",
|
|
15
15
|
"cpp",
|
|
16
16
|
"react-native-hms.podspec",
|
|
17
|
+
"sdk-versions.json",
|
|
17
18
|
"!lib/typescript/example",
|
|
18
19
|
"!android/build",
|
|
19
20
|
"!ios/build",
|
|
@@ -82,10 +83,9 @@
|
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"@commitlint/config-conventional": "^11.0.0",
|
|
84
85
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
85
|
-
"@release-it/conventional-changelog": "^2.0.0",
|
|
86
86
|
"@types/jest": "^26.0.0",
|
|
87
87
|
"@types/react": "^16.9.19",
|
|
88
|
-
"@types/react-native": "0.
|
|
88
|
+
"@types/react-native": "^0.64.5",
|
|
89
89
|
"commitlint": "^11.0.0",
|
|
90
90
|
"eslint": "^7.2.0",
|
|
91
91
|
"eslint-config-prettier": "^7.0.0",
|
|
@@ -94,7 +94,9 @@
|
|
|
94
94
|
"jest": "^26.0.1",
|
|
95
95
|
"prettier": "^2.0.5",
|
|
96
96
|
"react-native-builder-bob": "^0.18.0",
|
|
97
|
-
"typescript": "^4.6.3"
|
|
97
|
+
"typescript": "^4.6.3",
|
|
98
|
+
"react": "17.0.1",
|
|
99
|
+
"react-native": "0.64.4"
|
|
98
100
|
},
|
|
99
101
|
"peerDependencies": {
|
|
100
102
|
"react": "*",
|
package/react-native-hms.podspec
CHANGED
|
@@ -3,14 +3,14 @@ import type { HMSException } from './HMSException';
|
|
|
3
3
|
export class HMSBrowserRecordingState {
|
|
4
4
|
running: boolean;
|
|
5
5
|
error?: HMSException;
|
|
6
|
-
startedAt
|
|
7
|
-
stoppedAt
|
|
6
|
+
startedAt?: Date;
|
|
7
|
+
stoppedAt?: Date;
|
|
8
8
|
|
|
9
9
|
constructor(params: {
|
|
10
10
|
running: boolean;
|
|
11
11
|
error?: HMSException;
|
|
12
|
-
startedAt
|
|
13
|
-
stoppedAt
|
|
12
|
+
startedAt?: Date;
|
|
13
|
+
stoppedAt?: Date;
|
|
14
14
|
}) {
|
|
15
15
|
this.running = params.running;
|
|
16
16
|
this.error = params.error;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { HMSPeer } from './HMSPeer';
|
|
2
2
|
|
|
3
3
|
export class HMSChangeTrackStateRequest {
|
|
4
|
-
requestedBy
|
|
4
|
+
requestedBy?: HMSPeer;
|
|
5
5
|
trackType: string;
|
|
6
6
|
mute: boolean;
|
|
7
7
|
|
|
8
8
|
constructor(params: {
|
|
9
|
-
requestedBy
|
|
9
|
+
requestedBy?: HMSPeer;
|
|
10
10
|
trackType: string;
|
|
11
11
|
mute: boolean;
|
|
12
12
|
}) {
|