@daily-co/react-native-daily-js 0.42.1 → 0.44.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
CHANGED
|
@@ -15,7 +15,7 @@ Install `react-native-daily-js` along with its peer dependencies:
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
npm i @daily-co/react-native-daily-js @react-native-async-storage/async-storage@^1.15.7 react-native-background-timer@^2.3.1
|
|
18
|
-
npm i --save-exact @daily-co/react-native-webrtc@
|
|
18
|
+
npm i --save-exact @daily-co/react-native-webrtc@111.0.0-daily.1
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Then, follow the below steps to set up your native project on each platform. **Note that these steps assume you're using a version of React Native that supports autolinking (>= 60).**
|
|
@@ -30,14 +30,6 @@ Update the `platform` in your `Podfile`, since `@daily-co/react-native-webrtc` o
|
|
|
30
30
|
platform :ios, '11.0'
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
If you plan on doing a release build with bitcode enabled, run:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
./node_modules/@daily-co/react-native-webrtc/tools/downloadBitcode.sh
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
(But don't fret—you can always run it later, before you do your release build.)
|
|
40
|
-
|
|
41
33
|
Then run:
|
|
42
34
|
|
|
43
35
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "React Native library for making video calls using Daily",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@daily-co/daily-js": "^0.
|
|
29
|
+
"@daily-co/daily-js": "^0.46.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@daily-co/react-native-webrtc": "^
|
|
34
|
+
"@daily-co/react-native-webrtc": "^111.0.0-daily.1",
|
|
35
35
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
36
36
|
"react-native-background-timer": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@daily-co/react-native-webrtc": "^
|
|
39
|
+
"@daily-co/react-native-webrtc": "^111.0.0-daily.1",
|
|
40
40
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
41
41
|
"react-native-background-timer": "^2.3.1",
|
|
42
42
|
"typescript": "^4.8.4"
|
|
@@ -46,6 +46,7 @@ export type DailyEvent =
|
|
|
46
46
|
| 'joining-meeting'
|
|
47
47
|
| 'joined-meeting'
|
|
48
48
|
| 'left-meeting'
|
|
49
|
+
| 'call-instance-destroyed'
|
|
49
50
|
| 'participant-joined'
|
|
50
51
|
| 'participant-updated'
|
|
51
52
|
| 'participant-left'
|
|
@@ -139,9 +140,10 @@ export interface DailyCallOptions {
|
|
|
139
140
|
dailyConfig?: DailyAdvancedConfig;
|
|
140
141
|
subscribeToTracksAutomatically?: boolean;
|
|
141
142
|
reactNativeConfig?: DailyReactNativeConfig;
|
|
142
|
-
videoSource?: string | MediaStreamTrack;
|
|
143
|
-
audioSource?: string | MediaStreamTrack;
|
|
143
|
+
videoSource?: string | MediaStreamTrack | boolean;
|
|
144
|
+
audioSource?: string | MediaStreamTrack | boolean;
|
|
144
145
|
receiveSettings?: DailyReceiveSettings;
|
|
146
|
+
sendSettings?: DailySendSettings;
|
|
145
147
|
userName?: string;
|
|
146
148
|
userData?: unknown;
|
|
147
149
|
startVideoOff?: boolean;
|
|
@@ -164,6 +166,7 @@ export interface CamSimulcastEncoding {
|
|
|
164
166
|
|
|
165
167
|
export interface DailyAdvancedConfig {
|
|
166
168
|
camSimulcastEncodings?: CamSimulcastEncoding[];
|
|
169
|
+
v2CamAndMic?: boolean;
|
|
167
170
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
168
171
|
micAudioMode?: 'music' | 'speech';
|
|
169
172
|
userMediaAudioConstraints?: MediaTrackConstraints;
|
|
@@ -206,7 +209,12 @@ export interface DailyTrackState {
|
|
|
206
209
|
byCanSendPermission?: boolean;
|
|
207
210
|
byServerLimit?: boolean;
|
|
208
211
|
};
|
|
212
|
+
// guaranteed-playable reference to the track
|
|
213
|
+
// (it's only present when state === 'playable')
|
|
209
214
|
track?: MediaStreamTrack;
|
|
215
|
+
// not-guaranteed-playable reference to the track
|
|
216
|
+
// (it may be present when state !== 'playable')
|
|
217
|
+
persistentTrack?: MediaStreamTrack;
|
|
210
218
|
}
|
|
211
219
|
|
|
212
220
|
export interface DailyParticipantPermissions {
|
|
@@ -228,18 +236,37 @@ export type DailyParticipantPermissionsUpdate = {
|
|
|
228
236
|
};
|
|
229
237
|
|
|
230
238
|
export interface DailyParticipant {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
/**
|
|
240
|
+
* @deprecated This property will be removed. Use tracks.audio.persistentTrack instead.
|
|
241
|
+
*/
|
|
242
|
+
audioTrack?: MediaStreamTrack | false;
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated This property will be removed. Use tracks.video.persistentTrack instead.
|
|
245
|
+
*/
|
|
246
|
+
videoTrack?: MediaStreamTrack | false;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated This property will be removed. Use tracks.screenVideo.persistentTrack instead.
|
|
249
|
+
*/
|
|
250
|
+
screenVideoTrack?: MediaStreamTrack | false;
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated This property will be removed. Use tracks.screenAudio.persistentTrack instead.
|
|
253
|
+
*/
|
|
254
|
+
screenAudioTrack?: MediaStreamTrack | false;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @deprecated This property will be removed. Use tracks.audio.state instead.
|
|
258
|
+
*/
|
|
238
259
|
audio: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated This property will be removed. Use tracks.video.state instead.
|
|
262
|
+
*/
|
|
239
263
|
video: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* @deprecated This property will be removed. Use tracks.screenVideo.state instead.
|
|
266
|
+
*/
|
|
240
267
|
screen: boolean;
|
|
241
268
|
|
|
242
|
-
//
|
|
269
|
+
// track state
|
|
243
270
|
tracks: {
|
|
244
271
|
audio: DailyTrackState;
|
|
245
272
|
video: DailyTrackState;
|
|
@@ -510,6 +537,7 @@ export interface DailyEventObjectNoPayload {
|
|
|
510
537
|
| 'loaded'
|
|
511
538
|
| 'joining-meeting'
|
|
512
539
|
| 'left-meeting'
|
|
540
|
+
| 'call-instance-destroyed'
|
|
513
541
|
| 'recording-stats'
|
|
514
542
|
>;
|
|
515
543
|
}
|