@daily-co/react-native-daily-js 0.21.0 → 0.24.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/src/main/java/com/daily/reactlibrary/DailyOngoingMeetingForegroundService.java
CHANGED
|
@@ -72,7 +72,7 @@ public class DailyOngoingMeetingForegroundService extends Service {
|
|
|
72
72
|
getPackageName());
|
|
73
73
|
|
|
74
74
|
Intent notificationIntent = new Intent(this, activityClassToOpenFromNotification);
|
|
75
|
-
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent,
|
|
75
|
+
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE);
|
|
76
76
|
|
|
77
77
|
Notification notification = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
|
|
78
78
|
.setContentTitle(title)
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ function setupGlobals() {
|
|
|
92
92
|
return react_native_background_timer_1.default.setTimeout(fn, ms);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
global.DailyNativeUtils = __assign(__assign({}, DailyNativeUtils), { setAudioMode: WebRTCModule.setDailyAudioMode, enableNoOpRecordingEnsuringBackgroundContinuity: WebRTCModule.enableNoOpRecordingEnsuringBackgroundContinuity, addAudioFocusChangeListener: function (listener) {
|
|
95
|
+
global.DailyNativeUtils = __assign(__assign({}, DailyNativeUtils), { setAudioMode: WebRTCModule.setDailyAudioMode, setAudioDevice: WebRTCModule.setAudioDevice, getAudioDevice: WebRTCModule.getAudioDevice, enableNoOpRecordingEnsuringBackgroundContinuity: WebRTCModule.enableNoOpRecordingEnsuringBackgroundContinuity, addAudioFocusChangeListener: function (listener) {
|
|
96
96
|
audioFocusChangeListeners.add(listener);
|
|
97
97
|
}, removeAudioFocusChangeListener: function (listener) {
|
|
98
98
|
audioFocusChangeListeners.delete(listener);
|
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.24.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,18 @@
|
|
|
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.26.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
33
|
+
"//": "WHEN ONE OF THESE CHANGE, PLEASE UPDATE README.md INSTALL SNIPPET ACCORDINGLY",
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@daily-co/react-native-webrtc": "1.94.1-daily.
|
|
35
|
+
"@daily-co/react-native-webrtc": "1.94.1-daily.4",
|
|
35
36
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
36
37
|
"react-native-background-timer": "^2.3.1"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@daily-co/react-native-webrtc": "1.94.1-daily.
|
|
40
|
+
"@daily-co/react-native-webrtc": "1.94.1-daily.4",
|
|
40
41
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
41
42
|
"react-native-background-timer": "^2.3.1",
|
|
42
43
|
"typescript": "^3.8.3"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import {
|
|
10
10
|
MediaStreamTrack,
|
|
11
11
|
MediaDeviceInfo,
|
|
12
|
+
MediaTrackConstraints,
|
|
12
13
|
} from '@daily-co/react-native-webrtc';
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -68,6 +69,7 @@ export type DailyEvent =
|
|
|
68
69
|
| 'waiting-participant-added'
|
|
69
70
|
| 'waiting-participant-updated'
|
|
70
71
|
| 'waiting-participant-removed'
|
|
72
|
+
| 'available-devices-updated'
|
|
71
73
|
| 'receive-settings-updated';
|
|
72
74
|
|
|
73
75
|
export type DailyMeetingState =
|
|
@@ -86,11 +88,7 @@ export type DailyFatalErrorType =
|
|
|
86
88
|
| 'exp-room'
|
|
87
89
|
| 'exp-token';
|
|
88
90
|
|
|
89
|
-
export type DailyNonFatalErrorType =
|
|
90
|
-
| 'input-settings-error'
|
|
91
|
-
| 'screen-share-error'
|
|
92
|
-
| 'video-processor-error'
|
|
93
|
-
| 'remote-media-player-error';
|
|
91
|
+
export type DailyNonFatalErrorType = 'remote-media-player-error';
|
|
94
92
|
|
|
95
93
|
export interface DailyParticipantsObject {
|
|
96
94
|
local: DailyParticipant;
|
|
@@ -124,6 +122,7 @@ export interface DailyLoadOptions extends DailyCallOptions {
|
|
|
124
122
|
|
|
125
123
|
export interface DailyAdvancedConfig {
|
|
126
124
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
125
|
+
userMediaVideoConstraints?: boolean | MediaTrackConstraints;
|
|
127
126
|
preferH264ForCam?: boolean;
|
|
128
127
|
h264Profile?: string;
|
|
129
128
|
}
|
|
@@ -235,6 +234,12 @@ export interface DailyVideoElementInfo {
|
|
|
235
234
|
video_height: number;
|
|
236
235
|
}
|
|
237
236
|
|
|
237
|
+
export interface DailyDeviceInfos {
|
|
238
|
+
camera: {} | MediaDeviceInfo;
|
|
239
|
+
mic: {} | MediaDeviceInfo;
|
|
240
|
+
speaker: {} | MediaDeviceInfo;
|
|
241
|
+
}
|
|
242
|
+
|
|
238
243
|
export interface DailyNetworkStats {
|
|
239
244
|
quality: number;
|
|
240
245
|
stats: {
|
|
@@ -246,6 +251,8 @@ export interface DailyNetworkStats {
|
|
|
246
251
|
videoRecvPacketLoss: number;
|
|
247
252
|
videoSendBitsPerSecond: number;
|
|
248
253
|
videoSendPacketLoss: number;
|
|
254
|
+
totalSendPacketLoss: number;
|
|
255
|
+
totalRecvPacketLoss: number;
|
|
249
256
|
};
|
|
250
257
|
worstVideoRecvPacketLoss: number;
|
|
251
258
|
worstVideoSendPacketLoss: number;
|
|
@@ -269,6 +276,7 @@ export interface DailyRoomInfo {
|
|
|
269
276
|
enable_knocking?: boolean;
|
|
270
277
|
enable_network_ui?: boolean;
|
|
271
278
|
enable_people_ui?: boolean;
|
|
279
|
+
enable_pip_ui?: boolean;
|
|
272
280
|
enable_prejoin_ui?: boolean;
|
|
273
281
|
enable_video_processing_ui?: boolean;
|
|
274
282
|
start_video_off?: boolean;
|
|
@@ -298,6 +306,7 @@ export interface DailyRoomInfo {
|
|
|
298
306
|
max_live_streams?: number;
|
|
299
307
|
enable_network_ui?: boolean;
|
|
300
308
|
enable_people_ui?: boolean;
|
|
309
|
+
enable_pip_ui?: boolean;
|
|
301
310
|
enable_prejoin_ui?: boolean;
|
|
302
311
|
enable_video_processing_ui?: boolean;
|
|
303
312
|
};
|
|
@@ -462,6 +471,11 @@ export interface DailyEventObjectReceiveSettingsUpdated {
|
|
|
462
471
|
receiveSettings: DailyReceiveSettings;
|
|
463
472
|
}
|
|
464
473
|
|
|
474
|
+
export interface DailyEventObjectAvailableDevicesUpdated {
|
|
475
|
+
action: Extract<DailyEvent, 'available-devices-updated'>;
|
|
476
|
+
availableDevices: MediaDeviceInfo[];
|
|
477
|
+
}
|
|
478
|
+
|
|
465
479
|
export interface DailyEventObjectLiveStreamingStarted {
|
|
466
480
|
action: Extract<DailyEvent, 'live-streaming-started'>;
|
|
467
481
|
layout?: DailyStreamingLayoutConfig;
|
|
@@ -484,43 +498,44 @@ export interface DailyEventObjectRemoteMediaPlayerStopped {
|
|
|
484
498
|
reason: DailyRemoteMediaPlayerStopReason;
|
|
485
499
|
}
|
|
486
500
|
|
|
487
|
-
export type DailyEventObject<
|
|
488
|
-
T extends
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
501
|
+
export type DailyEventObject<T extends DailyEvent = any> =
|
|
502
|
+
T extends DailyEventObjectAppMessage['action']
|
|
503
|
+
? DailyEventObjectAppMessage
|
|
504
|
+
: T extends DailyEventObjectNoPayload['action']
|
|
505
|
+
? DailyEventObjectNoPayload
|
|
506
|
+
: T extends DailyEventObjectFatalError['action']
|
|
507
|
+
? DailyEventObjectFatalError
|
|
508
|
+
: T extends DailyEventObjectNonFatalError['action']
|
|
509
|
+
? DailyEventObjectNonFatalError
|
|
510
|
+
: T extends DailyEventObjectGenericError['action']
|
|
511
|
+
? DailyEventObjectGenericError
|
|
512
|
+
: T extends DailyEventObjectParticipants['action']
|
|
513
|
+
? DailyEventObjectParticipants
|
|
514
|
+
: T extends DailyEventObjectParticipant['action']
|
|
515
|
+
? DailyEventObjectParticipant
|
|
516
|
+
: T extends DailyEventObjectWaitingParticipant['action']
|
|
517
|
+
? DailyEventObjectWaitingParticipant
|
|
518
|
+
: T extends DailyEventObjectAccessState['action']
|
|
519
|
+
? DailyEventObjectAccessState
|
|
520
|
+
: T extends DailyEventObjectTrack['action']
|
|
521
|
+
? DailyEventObjectTrack
|
|
522
|
+
: T extends DailyEventObjectRecordingStarted['action']
|
|
523
|
+
? DailyEventObjectRecordingStarted
|
|
524
|
+
: T extends DailyEventObjectRemoteMediaPlayerUpdate['action']
|
|
525
|
+
? DailyEventObjectRemoteMediaPlayerUpdate
|
|
526
|
+
: T extends DailyEventObjectRemoteMediaPlayerStopped['action']
|
|
527
|
+
? DailyEventObjectRemoteMediaPlayerStopped
|
|
528
|
+
: T extends DailyEventObjectNetworkQualityEvent['action']
|
|
529
|
+
? DailyEventObjectNetworkQualityEvent
|
|
530
|
+
: T extends DailyEventObjectNetworkConnectionEvent['action']
|
|
531
|
+
? DailyEventObjectNetworkConnectionEvent
|
|
532
|
+
: T extends DailyEventObjectActiveSpeakerChange['action']
|
|
533
|
+
? DailyEventObjectActiveSpeakerChange
|
|
534
|
+
: T extends DailyEventObjectReceiveSettingsUpdated['action']
|
|
535
|
+
? DailyEventObjectReceiveSettingsUpdated
|
|
536
|
+
: T extends DailyEventObjectAvailableDevicesUpdated['action']
|
|
537
|
+
? DailyEventObjectAvailableDevicesUpdated
|
|
538
|
+
: any;
|
|
524
539
|
|
|
525
540
|
export type DailyNativeInCallAudioMode = 'video' | 'voice';
|
|
526
541
|
|
|
@@ -676,11 +691,18 @@ export interface DailyCall {
|
|
|
676
691
|
cycleCamera(): Promise<{
|
|
677
692
|
device: { facingMode: DailyCameraFacingMode } | null;
|
|
678
693
|
}>;
|
|
694
|
+
setCamera(cameraDeviceId: string | number): Promise<{
|
|
695
|
+
device: { facingMode: DailyCameraFacingMode } | null;
|
|
696
|
+
}>;
|
|
697
|
+
setAudioDevice(deviceId: string): Promise<{
|
|
698
|
+
deviceId: String;
|
|
699
|
+
}>;
|
|
679
700
|
getCameraFacingMode(): Promise<DailyCameraFacingMode | null>;
|
|
680
701
|
nativeInCallAudioMode(): DailyNativeInCallAudioMode;
|
|
681
702
|
setNativeInCallAudioMode(
|
|
682
703
|
inCallAudioMode: DailyNativeInCallAudioMode
|
|
683
704
|
): DailyCall;
|
|
705
|
+
getInputDevices(): Promise<DailyDeviceInfos>;
|
|
684
706
|
startLiveStreaming(options: DailyLiveStreamingOptions): void;
|
|
685
707
|
updateLiveStreaming(options: { layout?: DailyStreamingLayoutConfig }): void;
|
|
686
708
|
stopLiveStreaming(): void;
|