@100mslive/react-native-hms 1.10.4 → 1.10.6-beta.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/android/build.gradle +9 -2
- package/android/local.properties +1 -8
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +8 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +52 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +6 -4
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityDecoder.kt +50 -25
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSRNInteractivityCenter.kt +69 -1
- package/ios/HMSConstants.swift +1 -0
- package/ios/HMSDecoder.swift +9 -1
- package/ios/HMSHLSPlayerManager.swift +4 -1
- package/ios/HMSHelper.swift +28 -2
- package/ios/HMSInteractivityDecoder.swift +41 -0
- package/ios/HMSManager.m +34 -0
- package/ios/HMSManager.swift +66 -1
- package/ios/HMSRNInteractivityCenter.swift +41 -0
- package/ios/HMSRNSDK.swift +201 -3
- package/lib/commonjs/classes/HMSInteractivityCenter.js +58 -4
- package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/commonjs/classes/HMSInteractivityEncoder.js +6 -0
- package/lib/commonjs/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +2 -0
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +3 -2
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js +6 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js +11 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/index.js +39 -0
- package/lib/commonjs/classes/whiteboard/index.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js +26 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js +58 -4
- package/lib/module/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/module/classes/HMSInteractivityEncoder.js +6 -0
- package/lib/module/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +2 -0
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSSessionStore.js +1 -1
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +3 -2
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/whiteboard/HMSWhiteboard.js +2 -0
- package/lib/module/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js +5 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/module/classes/whiteboard/index.js +4 -0
- package/lib/module/classes/whiteboard/index.js.map +1 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js +18 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSInteractivityCenter.d.ts +19 -2
- package/lib/typescript/classes/HMSInteractivityEncoder.d.ts +2 -0
- package/lib/typescript/classes/HMSPermissions.d.ts +7 -0
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +11 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboard.d.ts +10 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardListenerActions.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardState.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardUpdateType.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/index.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/registerCallbacks.d.ts +8 -0
- package/lib/typescript/index.d.ts +1 -0
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/src/classes/HMSInteractivityCenter.ts +89 -10
- package/src/classes/HMSInteractivityEncoder.ts +8 -0
- package/src/classes/HMSPermissions.ts +9 -0
- package/src/classes/HMSSessionStore.ts +0 -3
- package/src/classes/HMSVideoTrackSettings.ts +15 -0
- package/src/classes/whiteboard/HMSWhiteboard.tsx +16 -0
- package/src/classes/whiteboard/HMSWhiteboardListenerActions.ts +3 -0
- package/src/classes/whiteboard/HMSWhiteboardState.tsx +4 -0
- package/src/classes/whiteboard/HMSWhiteboardUpdateType.tsx +4 -0
- package/src/classes/whiteboard/index.ts +3 -0
- package/src/classes/whiteboard/registerCallbacks.ts +34 -0
- package/src/index.ts +1 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
import type { ImageURISource, ImageRequireSource } from 'react-native';
|
|
1
2
|
import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';
|
|
2
3
|
import type { HMSCameraFacing } from './HMSCameraFacing';
|
|
3
4
|
import type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';
|
|
4
5
|
|
|
6
|
+
export declare class HMSVirtualBackgroundPlugin {
|
|
7
|
+
static NAME: string;
|
|
8
|
+
constructor();
|
|
9
|
+
enable(): Promise<boolean>;
|
|
10
|
+
disable(): Promise<boolean>;
|
|
11
|
+
setBlur(blurRadius: number): Promise<boolean>;
|
|
12
|
+
setBackground(
|
|
13
|
+
backgroundImage: ImageURISource | ImageRequireSource
|
|
14
|
+
): Promise<boolean>;
|
|
15
|
+
}
|
|
16
|
+
|
|
5
17
|
/**
|
|
6
18
|
* Customize local peer's Video track settings before Joining the Room.
|
|
7
19
|
*
|
|
@@ -13,6 +25,7 @@ export class HMSVideoTrackSettings {
|
|
|
13
25
|
cameraFacing?: HMSCameraFacing;
|
|
14
26
|
forceSoftwareDecoder?: boolean; // android only
|
|
15
27
|
disableAutoResize?: boolean; // android only
|
|
28
|
+
videoPlugin?: HMSVirtualBackgroundPlugin;
|
|
16
29
|
|
|
17
30
|
constructor(params: {
|
|
18
31
|
simulcastSettings?: HMSSimulcastLayerSettings[];
|
|
@@ -20,11 +33,13 @@ export class HMSVideoTrackSettings {
|
|
|
20
33
|
cameraFacing?: HMSCameraFacing;
|
|
21
34
|
forceSoftwareDecoder?: boolean;
|
|
22
35
|
disableAutoResize?: boolean;
|
|
36
|
+
videoPlugin?: HMSVirtualBackgroundPlugin;
|
|
23
37
|
}) {
|
|
24
38
|
this.simulcastSettings = params.simulcastSettings;
|
|
25
39
|
this.initialState = params.initialState;
|
|
26
40
|
this.cameraFacing = params.cameraFacing;
|
|
27
41
|
this.forceSoftwareDecoder = params.forceSoftwareDecoder;
|
|
28
42
|
this.disableAutoResize = params.disableAutoResize;
|
|
43
|
+
this.videoPlugin = params.videoPlugin;
|
|
29
44
|
}
|
|
30
45
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HMSPeer } from '../HMSPeer';
|
|
2
|
+
import type { HMSWhiteboardState } from './HMSWhiteboardState';
|
|
3
|
+
|
|
4
|
+
export interface HMSWhiteboard {
|
|
5
|
+
id: string;
|
|
6
|
+
|
|
7
|
+
title?: string;
|
|
8
|
+
|
|
9
|
+
state: HMSWhiteboardState;
|
|
10
|
+
|
|
11
|
+
isOwner: boolean;
|
|
12
|
+
|
|
13
|
+
owner?: HMSPeer;
|
|
14
|
+
|
|
15
|
+
url?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HMSConstants } from '../HMSConstants';
|
|
2
|
+
import type { HMSEventSubscription } from '../HMSNativeEventEmitter';
|
|
3
|
+
import HMSNativeEventListener from '../HMSNativeEventListener';
|
|
4
|
+
import type { HMSWhiteboard } from './HMSWhiteboard';
|
|
5
|
+
import { HMSWhiteboardListenerActions } from './HMSWhiteboardListenerActions';
|
|
6
|
+
import type { HMSWhiteboardUpdateType } from './HMSWhiteboardUpdateType';
|
|
7
|
+
|
|
8
|
+
export type WhiteboardUpdateListener = (data: {
|
|
9
|
+
hmsWhiteboard: HMSWhiteboard;
|
|
10
|
+
updateType: HMSWhiteboardUpdateType;
|
|
11
|
+
}) => void;
|
|
12
|
+
|
|
13
|
+
let whiteboardUpdateSubscription: null | HMSEventSubscription = null;
|
|
14
|
+
|
|
15
|
+
export function registerWhiteboardUpdateListener(
|
|
16
|
+
listener: WhiteboardUpdateListener
|
|
17
|
+
) {
|
|
18
|
+
if (whiteboardUpdateSubscription !== null) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
whiteboardUpdateSubscription = HMSNativeEventListener.addListener(
|
|
22
|
+
HMSConstants.DEFAULT_SDK_ID,
|
|
23
|
+
HMSWhiteboardListenerActions.ON_WHITEBOARD_UPDATE,
|
|
24
|
+
listener
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function unregisterWhiteboardUpdateListener() {
|
|
29
|
+
if (whiteboardUpdateSubscription === null) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
whiteboardUpdateSubscription.remove();
|
|
33
|
+
whiteboardUpdateSubscription = null;
|
|
34
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -99,6 +99,7 @@ export type { HMSPIPConfig } from './classes/HMSPIPConfig';
|
|
|
99
99
|
export { HMSRecordingState } from './classes/HMSRecordingState';
|
|
100
100
|
export type { HMSPoll } from './classes/polls/HMSPoll';
|
|
101
101
|
export * from './classes/HMSNoiseCancellationPlugin';
|
|
102
|
+
export * from './classes/whiteboard';
|
|
102
103
|
|
|
103
104
|
export { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';
|
|
104
105
|
export { HMSPollType } from './classes/polls/HMSPollType';
|
|
Binary file
|
package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Hmssdk.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|