@cloudflare/realtimekit-react-native 0.3.1-staging.1 → 0.3.1
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/src/main/java/com/cloudflare/realtimekit/incallmanager/AppRTCBluetoothManager.java +3 -1
- package/android/src/main/java/com/cloudflare/realtimekit/incallmanager/InCallManagerModule.java +21 -7
- package/lib/commonjs/BackgroundHandler.js +2 -0
- package/lib/commonjs/BackgroundHandler.js.map +1 -1
- package/lib/commonjs/LocalMediaHandler.js +44 -17
- package/lib/commonjs/LocalMediaHandler.js.map +1 -1
- package/lib/commonjs/LocalMediaUtils.js +6 -3
- package/lib/commonjs/LocalMediaUtils.js.map +1 -1
- package/lib/commonjs/NativeAudioManager.js +25 -6
- package/lib/commonjs/NativeAudioManager.js.map +1 -1
- package/lib/commonjs/utils/version.js +1 -1
- package/lib/commonjs/utils/version.js.map +1 -1
- package/lib/module/BackgroundHandler.js +2 -0
- package/lib/module/BackgroundHandler.js.map +1 -1
- package/lib/module/LocalMediaHandler.js +47 -20
- package/lib/module/LocalMediaHandler.js.map +1 -1
- package/lib/module/LocalMediaUtils.js +6 -3
- package/lib/module/LocalMediaUtils.js.map +1 -1
- package/lib/module/NativeAudioManager.js +25 -6
- package/lib/module/NativeAudioManager.js.map +1 -1
- package/lib/module/utils/version.js +1 -1
- package/lib/module/utils/version.js.map +1 -1
- package/lib/typescript/LocalMediaHandler.d.ts +4 -4
- package/lib/typescript/LocalMediaUtils.d.ts +4 -4
- package/lib/typescript/NativeAudioManager.d.ts +4 -3
- package/lib/typescript/utils/version.d.ts +1 -1
- package/package.json +4 -2
|
@@ -82,20 +82,20 @@ export default class LocalMediaUtils {
|
|
|
82
82
|
/**
|
|
83
83
|
* Returns all audio input devices (microphone devices).
|
|
84
84
|
*/
|
|
85
|
-
getAudioDevices(): MediaDeviceInfo[]
|
|
85
|
+
getAudioDevices(): Promise<MediaDeviceInfo[]>;
|
|
86
86
|
/**
|
|
87
87
|
* Returns all video input devices.
|
|
88
88
|
*/
|
|
89
|
-
getVideoDevices(): MediaDeviceInfo[]
|
|
89
|
+
getVideoDevices(): Promise<MediaDeviceInfo[]>;
|
|
90
90
|
/**
|
|
91
91
|
* Returns all audio output devices (speaker devices).
|
|
92
92
|
*/
|
|
93
|
-
getSpeakerDevices(): {
|
|
93
|
+
getSpeakerDevices(): Promise<{
|
|
94
94
|
deviceId: string;
|
|
95
95
|
label: string;
|
|
96
96
|
kind: string;
|
|
97
97
|
groupId: string;
|
|
98
98
|
facing: string;
|
|
99
99
|
toJSON(): any;
|
|
100
|
-
}[]
|
|
100
|
+
}[]>;
|
|
101
101
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare class
|
|
1
|
+
declare class NativeAudioManager {
|
|
2
2
|
constructor();
|
|
3
3
|
start(setup: any): void;
|
|
4
|
-
stop(
|
|
4
|
+
stop(): void;
|
|
5
5
|
getIsWiredHeadsetPluggedIn(): Promise<any>;
|
|
6
6
|
isBluetoothHeadsetConnected(): Promise<any>;
|
|
7
7
|
setKeepScreenOn(enable: any): void;
|
|
@@ -12,6 +12,7 @@ declare class InCallManager {
|
|
|
12
12
|
requestAudioFocus(): Promise<any>;
|
|
13
13
|
abandonAudioFocus(): Promise<any>;
|
|
14
14
|
forceUpdateAudioDevices(): void;
|
|
15
|
+
getCurrentAudioDevice(): Promise<any>;
|
|
15
16
|
}
|
|
16
|
-
declare const _default:
|
|
17
|
+
declare const _default: NativeAudioManager;
|
|
17
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.3.1
|
|
1
|
+
export declare const SDK_VERSION = "0.3.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit-react-native",
|
|
3
|
-
"version": "0.3.1
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Cloudflare RealtimeKit SDK for react native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"author": "Cloudflare",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
"react-native": ">=0.77.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
|
-
"
|
|
47
|
+
"registry": "https://registry.npmjs.org/",
|
|
48
|
+
"access": "public",
|
|
49
|
+
"tag": "latest"
|
|
48
50
|
},
|
|
49
51
|
"scripts": {
|
|
50
52
|
"postpublish": "mv package.json.bak package.json"
|