@daily-co/react-native-daily-js 0.24.0 → 0.25.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@1.94.1-daily.
|
|
18
|
+
npm i --save-exact @daily-co/react-native-webrtc@1.94.1-daily.4
|
|
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).**
|
package/android/build.gradle
CHANGED
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
// original location:
|
|
11
11
|
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
|
|
12
12
|
|
|
13
|
-
def DEFAULT_COMPILE_SDK_VERSION =
|
|
14
|
-
def DEFAULT_BUILD_TOOLS_VERSION = '
|
|
15
|
-
def DEFAULT_MIN_SDK_VERSION =
|
|
16
|
-
def DEFAULT_TARGET_SDK_VERSION =
|
|
13
|
+
def DEFAULT_COMPILE_SDK_VERSION = 31
|
|
14
|
+
def DEFAULT_BUILD_TOOLS_VERSION = '31.0.0'
|
|
15
|
+
def DEFAULT_MIN_SDK_VERSION = 24
|
|
16
|
+
def DEFAULT_TARGET_SDK_VERSION = 31
|
|
17
17
|
|
|
18
18
|
def safeExtGet(prop, fallback) {
|
|
19
19
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'maven'
|
|
24
23
|
|
|
25
24
|
buildscript {
|
|
26
25
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
@@ -39,7 +38,6 @@ buildscript {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
apply plugin: 'com.android.library'
|
|
42
|
-
apply plugin: 'maven'
|
|
43
41
|
|
|
44
42
|
android {
|
|
45
43
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
@@ -113,17 +111,18 @@ afterEvaluate { project ->
|
|
|
113
111
|
task androidJavadoc(type: Javadoc) {
|
|
114
112
|
source = android.sourceSets.main.java.srcDirs
|
|
115
113
|
classpath += files(android.bootClasspath)
|
|
116
|
-
|
|
114
|
+
project.getConfigurations().getByName('implementation').setCanBeResolved(true)
|
|
115
|
+
classpath += files(project.getConfigurations().getByName('implementation').asList())
|
|
117
116
|
include '**/*.java'
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
121
|
-
|
|
120
|
+
archiveClassifier.set("javadoc")
|
|
122
121
|
from androidJavadoc.destinationDir
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
task androidSourcesJar(type: Jar) {
|
|
126
|
-
|
|
125
|
+
archiveClassifier.set("sources")
|
|
127
126
|
from android.sourceSets.main.java.srcDirs
|
|
128
127
|
include '**/*.java'
|
|
129
128
|
}
|
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.25.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,7 +26,7 @@
|
|
|
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.27.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
@@ -53,6 +53,9 @@ export type DailyEvent =
|
|
|
53
53
|
| 'recording-stopped'
|
|
54
54
|
| 'recording-stats'
|
|
55
55
|
| 'recording-error'
|
|
56
|
+
| 'transcription-started'
|
|
57
|
+
| 'transcription-stopped'
|
|
58
|
+
| 'transcription-error'
|
|
56
59
|
| 'app-message'
|
|
57
60
|
| 'active-speaker-change'
|
|
58
61
|
| 'network-quality-change'
|
|
@@ -120,7 +123,14 @@ export interface DailyLoadOptions extends DailyCallOptions {
|
|
|
120
123
|
baseUrl?: string;
|
|
121
124
|
}
|
|
122
125
|
|
|
126
|
+
export interface CamSimulcastEncoding {
|
|
127
|
+
maxBitrate: number;
|
|
128
|
+
maxFramerate?: number;
|
|
129
|
+
scaleResolutionDownBy?: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
123
132
|
export interface DailyAdvancedConfig {
|
|
133
|
+
camSimulcastEncodings?: CamSimulcastEncoding[];
|
|
124
134
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
125
135
|
userMediaVideoConstraints?: boolean | MediaTrackConstraints;
|
|
126
136
|
preferH264ForCam?: boolean;
|
|
@@ -481,6 +491,18 @@ export interface DailyEventObjectLiveStreamingStarted {
|
|
|
481
491
|
layout?: DailyStreamingLayoutConfig;
|
|
482
492
|
}
|
|
483
493
|
|
|
494
|
+
export interface DailyEventObjectTranscriptionStarted {
|
|
495
|
+
action: Extract<DailyEvent, 'transcription-started'>;
|
|
496
|
+
language: string;
|
|
497
|
+
model: string;
|
|
498
|
+
startedBy: string;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface DailyEventObjectTranscriptionStopped {
|
|
502
|
+
action: Extract<DailyEvent, 'transcription-stopped'>;
|
|
503
|
+
updatedBy: string;
|
|
504
|
+
}
|
|
505
|
+
|
|
484
506
|
export interface DailyEventObjectRemoteMediaPlayerUpdate {
|
|
485
507
|
action: Extract<
|
|
486
508
|
DailyEvent,
|
|
@@ -608,12 +630,18 @@ export type DailyAccessRequest = {
|
|
|
608
630
|
export interface DailyStreamingOptions {
|
|
609
631
|
width?: number;
|
|
610
632
|
height?: number;
|
|
633
|
+
fps?: number;
|
|
611
634
|
backgroundColor?: string;
|
|
612
635
|
layout?: DailyStreamingLayoutConfig;
|
|
613
636
|
}
|
|
614
637
|
|
|
638
|
+
export interface DailyStreamingEndpoint {
|
|
639
|
+
endpoint: string;
|
|
640
|
+
}
|
|
641
|
+
|
|
615
642
|
export interface DailyLiveStreamingOptions extends DailyStreamingOptions {
|
|
616
|
-
rtmpUrl
|
|
643
|
+
rtmpUrl?: string | string[];
|
|
644
|
+
endpoints?: DailyStreamingEndpoint[];
|
|
617
645
|
}
|
|
618
646
|
|
|
619
647
|
export interface RemoteMediaPlayerSimulcastEncoding {
|
|
@@ -650,6 +678,11 @@ export interface DailyRemoteMediaPlayerInfo {
|
|
|
650
678
|
remoteMediaPlayerState: DailyRemoteMediaPlayerState;
|
|
651
679
|
}
|
|
652
680
|
|
|
681
|
+
export interface DailyTranscriptionDeepgramOptions {
|
|
682
|
+
language?: string;
|
|
683
|
+
model?: string;
|
|
684
|
+
}
|
|
685
|
+
|
|
653
686
|
export interface DailyCall {
|
|
654
687
|
join(properties?: DailyCallOptions): Promise<DailyParticipantsObject | void>;
|
|
655
688
|
leave(): Promise<void>;
|
|
@@ -705,6 +738,12 @@ export interface DailyCall {
|
|
|
705
738
|
getInputDevices(): Promise<DailyDeviceInfos>;
|
|
706
739
|
startLiveStreaming(options: DailyLiveStreamingOptions): void;
|
|
707
740
|
updateLiveStreaming(options: { layout?: DailyStreamingLayoutConfig }): void;
|
|
741
|
+
addLiveStreamingEndpoints(options: {
|
|
742
|
+
endpoints: DailyStreamingEndpoint[];
|
|
743
|
+
}): void;
|
|
744
|
+
removeLiveStreamingEndpoints(options: {
|
|
745
|
+
endpoints: DailyStreamingEndpoint[];
|
|
746
|
+
}): void;
|
|
708
747
|
stopLiveStreaming(): void;
|
|
709
748
|
startRemoteMediaPlayer(
|
|
710
749
|
options: DailyRemoteMediaPlayerStartOptions
|
|
@@ -713,6 +752,8 @@ export interface DailyCall {
|
|
|
713
752
|
updateRemoteMediaPlayer(
|
|
714
753
|
options: DailyRemoteMediaPlayerUpdateOptions
|
|
715
754
|
): Promise<DailyRemoteMediaPlayerInfo>;
|
|
755
|
+
startTranscription(options?: DailyTranscriptionDeepgramOptions): void;
|
|
756
|
+
stopTranscription(): void;
|
|
716
757
|
preAuth(properties?: DailyCallOptions): Promise<{ access: DailyAccess }>;
|
|
717
758
|
load(properties?: DailyLoadOptions): Promise<void>;
|
|
718
759
|
startRecording(options?: DailyStreamingOptions): void;
|