@daily-co/react-native-daily-js 0.70.0 → 0.72.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@daily-co/daily-js": "^0.
|
|
31
|
+
"@daily-co/daily-js": "^0.75.0",
|
|
32
32
|
"@types/react-native-background-timer": "^2.0.0",
|
|
33
33
|
"base-64": "^1.0.0",
|
|
34
34
|
"react-native-url-polyfill": "^1.1.2"
|
|
@@ -213,7 +213,15 @@ export interface DailyAdvancedConfig {
|
|
|
213
213
|
*/
|
|
214
214
|
v2CamAndMic?: boolean;
|
|
215
215
|
micAudioMode?: 'music' | 'speech';
|
|
216
|
+
/**
|
|
217
|
+
* @deprecated This property will be removed. Instead, use inputSettings,
|
|
218
|
+
* which is found in DailyCallOptions.
|
|
219
|
+
*/
|
|
216
220
|
userMediaAudioConstraints?: MediaTrackConstraints;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated This property will be removed. Instead, use inputSettings,
|
|
223
|
+
* which is found in DailyCallOptions.
|
|
224
|
+
*/
|
|
217
225
|
userMediaVideoConstraints?: MediaTrackConstraints;
|
|
218
226
|
preferH264ForCam?: boolean;
|
|
219
227
|
h264Profile?: string;
|
|
@@ -276,6 +284,14 @@ export type DailyParticipantPermissionsCanAdminValues =
|
|
|
276
284
|
| 'streaming'
|
|
277
285
|
| 'transcription';
|
|
278
286
|
|
|
287
|
+
export type DailyParticipantTypeValues =
|
|
288
|
+
| 'remote-media-player'
|
|
289
|
+
| 'sip-dial-in'
|
|
290
|
+
| 'sip-dial-out'
|
|
291
|
+
| 'pstn-dial-in'
|
|
292
|
+
| 'pstn-dial-out'
|
|
293
|
+
| 'unknown';
|
|
294
|
+
|
|
279
295
|
export interface DailyParticipantPermissions {
|
|
280
296
|
hasPresence: boolean;
|
|
281
297
|
canSend: Set<DailyParticipantPermissionsCanSendValues> | boolean;
|
|
@@ -348,6 +364,7 @@ export interface DailyParticipant {
|
|
|
348
364
|
owner: boolean;
|
|
349
365
|
permissions: DailyParticipantPermissions;
|
|
350
366
|
record: boolean;
|
|
367
|
+
participantType?: DailyParticipantTypeValues;
|
|
351
368
|
|
|
352
369
|
// video element info (iframe-based calls using standard UI only)
|
|
353
370
|
/**
|
|
@@ -415,6 +432,12 @@ export interface DailyVideoElementInfo {
|
|
|
415
432
|
video_height: number;
|
|
416
433
|
}
|
|
417
434
|
|
|
435
|
+
/**
|
|
436
|
+
* DailyDeviceInfos reports the device information for the camera, mic, and
|
|
437
|
+
* speaker currently in use or expected. If the given device has not been
|
|
438
|
+
* specified and has not yet been acquired, the object will be empty ({}).
|
|
439
|
+
* The object will also be empty if a custom track has been provided.
|
|
440
|
+
*/
|
|
418
441
|
export interface DailyDeviceInfos {
|
|
419
442
|
camera: {} | MediaDeviceInfo;
|
|
420
443
|
mic: {} | MediaDeviceInfo;
|
|
@@ -704,6 +727,23 @@ export interface DailyReceiveSettingsUpdates {
|
|
|
704
727
|
| 'inherit';
|
|
705
728
|
}
|
|
706
729
|
|
|
730
|
+
export interface DailyInputSettings {
|
|
731
|
+
audio?: DailyInputAudioSettings;
|
|
732
|
+
video?: DailyInputVideoSettings;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export interface DailyCustomTrackSettings {
|
|
736
|
+
customTrack: MediaStreamTrack;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export interface DailyInputAudioSettings {
|
|
740
|
+
settings?: MediaTrackConstraints | DailyCustomTrackSettings;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface DailyInputVideoSettings {
|
|
744
|
+
settings?: MediaTrackConstraints | DailyCustomTrackSettings;
|
|
745
|
+
}
|
|
746
|
+
|
|
707
747
|
export type DailyEventObjectBase = {
|
|
708
748
|
action: DailyEvent;
|
|
709
749
|
callClientId: string;
|
|
@@ -739,6 +779,7 @@ export interface DailyCamDeviceNotFoundError extends DailyCameraError {
|
|
|
739
779
|
export interface DailyCamConstraintsError extends DailyCameraError {
|
|
740
780
|
type: Extract<DailyCameraErrorType, 'constraints'>;
|
|
741
781
|
reason: 'invalid' | 'none-specified';
|
|
782
|
+
failedMedia: Array<'video' | 'audio'>;
|
|
742
783
|
}
|
|
743
784
|
|
|
744
785
|
export interface DailyCamInUseError extends DailyCameraError {
|
|
@@ -976,6 +1017,7 @@ export interface DailyEventObjectTranscriptionMessage
|
|
|
976
1017
|
extends DailyEventObjectBase {
|
|
977
1018
|
action: Extract<DailyEvent, 'transcription-message'>;
|
|
978
1019
|
instanceId?: string;
|
|
1020
|
+
trackType?: 'cam-audio' | 'screen-audio' | 'rmpAudio' | string;
|
|
979
1021
|
participantId: string;
|
|
980
1022
|
text: string;
|
|
981
1023
|
timestamp: Date;
|
|
@@ -1530,6 +1572,9 @@ export interface DailyCall {
|
|
|
1530
1572
|
updateReceiveSettings(
|
|
1531
1573
|
receiveSettings: DailyReceiveSettingsUpdates
|
|
1532
1574
|
): Promise<DailyReceiveSettings>;
|
|
1575
|
+
updateInputSettings(
|
|
1576
|
+
inputSettings: DailyInputSettings
|
|
1577
|
+
): Promise<{ inputSettings: DailyInputSettings }>;
|
|
1533
1578
|
startCamera(properties?: DailyCallOptions): Promise<void>;
|
|
1534
1579
|
startLocalAudioLevelObserver(interval?: number): Promise<void>;
|
|
1535
1580
|
isLocalAudioLevelObserverRunning(): boolean;
|