@cloudflare/realtimekit-react-native 0.0.1 → 0.1.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/lib/LocalMediaHandler.d.ts +1 -1
- package/lib/LocalMediaUtils.d.ts +6 -6
- package/lib/LocalMediaUtils.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +6 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
2
|
import LocalMediaUtils from './LocalMediaUtils';
|
|
3
3
|
import { MediaPermission } from './LocalMediaInterfaces';
|
|
4
|
-
import type { MediaStreamTrack } from '@
|
|
4
|
+
import type { MediaStreamTrack } from '@cloudflare/react-native-webrtc';
|
|
5
5
|
import type { MediaDeviceInfo } from './LocalMediaInterfaces';
|
|
6
6
|
export declare enum MediaEvents {
|
|
7
7
|
AUDIO_TRACK_CHANGE = 0,
|
package/lib/LocalMediaUtils.d.ts
CHANGED
|
@@ -59,15 +59,15 @@ export default class LocalMediaUtils {
|
|
|
59
59
|
frameRate?: ConstrainDouble;
|
|
60
60
|
}): RealtimeKitMediaStreamConstraints;
|
|
61
61
|
private static getUserMediaWithTimeout;
|
|
62
|
-
static getAudioTrack(): Promise<import("@
|
|
63
|
-
static getVideoTrack(constraints: RealtimeKitMediaStreamConstraints): Promise<import("@
|
|
62
|
+
static getAudioTrack(): Promise<import("@cloudflare/react-native-webrtc").MediaStreamTrack>;
|
|
63
|
+
static getVideoTrack(constraints: RealtimeKitMediaStreamConstraints): Promise<import("@cloudflare/react-native-webrtc").MediaStreamTrack>;
|
|
64
64
|
static getScreenShareTracks(): Promise<{
|
|
65
|
-
video: import("@
|
|
66
|
-
audio: import("@
|
|
65
|
+
video: import("@cloudflare/react-native-webrtc").MediaStreamTrack;
|
|
66
|
+
audio: import("@cloudflare/react-native-webrtc").MediaStreamTrack;
|
|
67
67
|
}>;
|
|
68
68
|
static getAudioAndVideoTrack(constraints: RealtimeKitMediaStreamConstraints): Promise<{
|
|
69
|
-
audioTrack: import("@
|
|
70
|
-
videoTrack: import("@
|
|
69
|
+
audioTrack: import("@cloudflare/react-native-webrtc").MediaStreamTrack;
|
|
70
|
+
videoTrack: import("@cloudflare/react-native-webrtc").MediaStreamTrack;
|
|
71
71
|
}>;
|
|
72
72
|
onDeviceChange(callback: (changedDevices: {
|
|
73
73
|
added: MediaDeviceInfo[];
|
package/lib/LocalMediaUtils.js
CHANGED
|
@@ -20,7 +20,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
20
20
|
};
|
|
21
21
|
var _LocalMediaUtils_availableDevices, _LocalMediaUtils_nativeEventEmitter;
|
|
22
22
|
import { NativeEventEmitter, NativeModules, LogBox } from 'react-native';
|
|
23
|
-
import { mediaDevices } from '@
|
|
23
|
+
import { mediaDevices } from '@cloudflare/react-native-webrtc';
|
|
24
24
|
import LocalMediaError from './LocalMediaError';
|
|
25
25
|
import NativeAudioManager from './NativeAudioManager';
|
|
26
26
|
LogBox.ignoreLogs(['new NativeEventEmitter']);
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NativeModules, Platform } from 'react-native';
|
|
2
2
|
import RealtimeKitMeeting from '@cloudflare/realtimekit';
|
|
3
3
|
import LocalMediaHandler from './LocalMediaHandler';
|
|
4
|
-
import { registerGlobals } from '@
|
|
4
|
+
import { registerGlobals } from '@cloudflare/react-native-webrtc';
|
|
5
5
|
import './utils/crypto';
|
|
6
6
|
import 'text-encoding-polyfill';
|
|
7
7
|
import 'node-libs-react-native/globals';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit-react-native",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Cloudflare RealtimeKit SDK for react native",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Dyte <dev@dyte.io> (https://github.com/dyte-in/)",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"private": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@cloudflare/realtimekit": "
|
|
28
|
+
"@cloudflare/realtimekit": "1.0.1",
|
|
29
29
|
"events": "^3.3.0",
|
|
30
30
|
"fast-base64-decode": "1.0.0",
|
|
31
31
|
"node-libs-react-native": "^1.2.1",
|
|
@@ -38,13 +38,15 @@
|
|
|
38
38
|
"android"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@
|
|
41
|
+
"@cloudflare/react-native-webrtc": "114.0.16",
|
|
42
42
|
"@expo/config-plugins": "*",
|
|
43
43
|
"react": "*",
|
|
44
44
|
"react-native": "*"
|
|
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"
|