react-native-webrtc 124.0.1 → 124.0.3
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/build.gradle +1 -0
- package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +3 -8
- package/ios/RCTWebRTC/RTCVideoViewManager.m +4 -11
- package/package.json +1 -1
- package/.github/stale.yml +0 -15
- package/.github/workflows/android_ci.yml +0 -36
- package/.github/workflows/ci.yml +0 -17
- package/.github/workflows/ios_ci.yml +0 -54
- package/android/build/generated/source/buildConfig/debug/com/oney/WebRTCModule/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -23
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -5
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6064
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merged.dir/values/values.xml +0 -9
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -4
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +0 -6
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -4
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/AbstractVideoCaptureController$CapturerEventsListener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/AbstractVideoCaptureController.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/CameraCaptureController$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/CameraCaptureController$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/CameraCaptureController.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/CameraEventsHandler.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/DataChannelWrapper$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/DataChannelWrapper.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/DisplayUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/EglUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/GetUserMediaImpl$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/GetUserMediaImpl$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/GetUserMediaImpl$BiConsumer.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/GetUserMediaImpl$TrackPrivate.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/GetUserMediaImpl.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/LibraryLoader.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/MediaProjectionNotification.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/MediaProjectionService.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/PeerConnectionObserver$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/PeerConnectionObserver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/RTCVideoViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ReactBridgeUtil$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ReactBridgeUtil.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ScreenCaptureController$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ScreenCaptureController$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ScreenCaptureController.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/SerializeUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/SerializeUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/StringUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/ThreadUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/TrackCapturerEventsEmitter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/UVCCamera2Enumerator.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/UVCVideoCapturer$PreviewDataCallback.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/UVCVideoCapturer.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/VideoTrackAdapter$TrackMuteUnmuteImpl$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/VideoTrackAdapter$TrackMuteUnmuteImpl.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/VideoTrackAdapter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$5.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule$6.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModuleOptions.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCModulePackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCView$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCView$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCView$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/WebRTCView.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/videoEffects/ProcessorProvider.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/videoEffects/VideoEffectProcessor.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/videoEffects/VideoFrameProcessor.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/videoEffects/VideoFrameProcessorFactoryInterface.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/webrtcutils/H264AndSoftwareVideoDecoderFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/webrtcutils/H264AndSoftwareVideoEncoderFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/webrtcutils/SoftwareVideoDecoderFactoryProxy.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/oney/WebRTCModule/webrtcutils/SoftwareVideoEncoderFactoryProxy.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -6
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -36
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -23
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
- package/android/build/intermediates/packaged_res/debug/values/values.xml +0 -9
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -4347
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -51
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
package/android/build.gradle
CHANGED
|
@@ -102,6 +102,9 @@ public class WebRTCModule extends ReactContextBaseJavaModule {
|
|
|
102
102
|
.setVideoDecoderFactory(decoderFactory)
|
|
103
103
|
.createPeerConnectionFactory();
|
|
104
104
|
|
|
105
|
+
// PeerConnectionFactory now owns the adm native pointer, and we don't need it anymore.
|
|
106
|
+
adm.release();
|
|
107
|
+
|
|
105
108
|
// Saving the encoder and decoder factories to get codec info later when needed.
|
|
106
109
|
mVideoEncoderFactory = encoderFactory;
|
|
107
110
|
mVideoDecoderFactory = decoderFactory;
|
|
@@ -116,14 +119,6 @@ public class WebRTCModule extends ReactContextBaseJavaModule {
|
|
|
116
119
|
return "WebRTCModule";
|
|
117
120
|
}
|
|
118
121
|
|
|
119
|
-
@Override
|
|
120
|
-
public void onCatalystInstanceDestroy() {
|
|
121
|
-
if (mAudioDeviceModule != null) {
|
|
122
|
-
mAudioDeviceModule.release();
|
|
123
|
-
}
|
|
124
|
-
super.onCatalystInstanceDestroy();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
122
|
private PeerConnection getPeerConnection(int id) {
|
|
128
123
|
PeerConnectionObserver pco = mPeerConnectionObservers.get(id);
|
|
129
124
|
return (pco == null) ? null : pco.getPeerConnection();
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
#import <objc/runtime.h>
|
|
3
3
|
|
|
4
4
|
#import <React/RCTLog.h>
|
|
5
|
+
#import <React/RCTView.h>
|
|
6
|
+
|
|
5
7
|
#import <WebRTC/RTCMediaStream.h>
|
|
6
8
|
#if TARGET_OS_OSX
|
|
7
9
|
#import <WebRTC/RTCMTLNSVideoView.h>
|
|
@@ -42,12 +44,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) {
|
|
|
42
44
|
* Implements an equivalent of {@code HTMLVideoElement} i.e. Web's video
|
|
43
45
|
* element.
|
|
44
46
|
*/
|
|
45
|
-
|
|
46
|
-
#if TARGET_OS_OSX
|
|
47
|
-
@interface RTCVideoView : NSView
|
|
48
|
-
#else
|
|
49
|
-
@interface RTCVideoView : UIView
|
|
50
|
-
#endif
|
|
47
|
+
@interface RTCVideoView : RCTView
|
|
51
48
|
|
|
52
49
|
/**
|
|
53
50
|
* The indicator which determines whether this {@code RTCVideoView} is to mirror
|
|
@@ -252,11 +249,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) {
|
|
|
252
249
|
|
|
253
250
|
RCT_EXPORT_MODULE()
|
|
254
251
|
|
|
255
|
-
|
|
256
|
-
- (NSView *)view {
|
|
257
|
-
#else
|
|
258
|
-
- (UIView *)view {
|
|
259
|
-
#endif
|
|
252
|
+
- (RCTView *)view {
|
|
260
253
|
RTCVideoView *v = [[RTCVideoView alloc] init];
|
|
261
254
|
v.module = [self.bridge moduleForName:@"WebRTCModule"];
|
|
262
255
|
v.clipsToBounds = YES;
|
package/package.json
CHANGED
package/.github/stale.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
|
2
|
-
daysUntilStale: 60
|
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
|
4
|
-
daysUntilClose: 7
|
|
5
|
-
# Issues with these labels will never be considered stale
|
|
6
|
-
exemptLabels:
|
|
7
|
-
- confirmed
|
|
8
|
-
staleLabel: wontfix
|
|
9
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
10
|
-
markComment: >
|
|
11
|
-
This issue has been automatically marked as stale because it has not had
|
|
12
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
|
13
|
-
for your contributions.
|
|
14
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
15
|
-
closeComment: false
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Android CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ master ]
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- '**.md'
|
|
7
|
-
pull_request:
|
|
8
|
-
branches: [ master ]
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- '**.md'
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
android-compile:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v3
|
|
17
|
-
- uses: actions/setup-java@v4
|
|
18
|
-
with:
|
|
19
|
-
distribution: 'temurin'
|
|
20
|
-
java-version: '17'
|
|
21
|
-
- uses: actions/setup-node@v3
|
|
22
|
-
with:
|
|
23
|
-
node-version: '16.x'
|
|
24
|
-
cache: 'npm'
|
|
25
|
-
cache-dependency-path: '**/package-lock.json'
|
|
26
|
-
|
|
27
|
-
- name: Install node modules
|
|
28
|
-
run: npm install
|
|
29
|
-
|
|
30
|
-
- name: Install example node modules
|
|
31
|
-
run: npm install
|
|
32
|
-
working-directory: ./examples/GumTestApp/
|
|
33
|
-
|
|
34
|
-
- name: Compile Android Example
|
|
35
|
-
run: ./gradlew assembleDebug
|
|
36
|
-
working-directory: ./examples/GumTestApp/android
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: Simple CI
|
|
2
|
-
|
|
3
|
-
on: [pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
run-ci:
|
|
7
|
-
name: Lint
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v3
|
|
11
|
-
- uses: actions/setup-node@v3
|
|
12
|
-
with:
|
|
13
|
-
node-version: 16
|
|
14
|
-
- run: npm install
|
|
15
|
-
- name: Check if the git repository is clean
|
|
16
|
-
run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
|
|
17
|
-
- run: npm run lint
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
name: iOS CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ master ]
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- '**.md'
|
|
7
|
-
pull_request:
|
|
8
|
-
branches: [ master ]
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- '**.md'
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
ios-compile:
|
|
14
|
-
runs-on: macos-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v3
|
|
17
|
-
|
|
18
|
-
- uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version: '16.x'
|
|
21
|
-
cache: 'npm'
|
|
22
|
-
cache-dependency-path: '**/package-lock.json'
|
|
23
|
-
|
|
24
|
-
- name: Cache cocoapods
|
|
25
|
-
uses: actions/cache@v3
|
|
26
|
-
with:
|
|
27
|
-
path: ./examples/GumTestApp/ios/Pods
|
|
28
|
-
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
|
29
|
-
restore-keys: |
|
|
30
|
-
${{ runner.os }}-pods-
|
|
31
|
-
|
|
32
|
-
- name: Install node modules
|
|
33
|
-
run: npm install
|
|
34
|
-
|
|
35
|
-
- name: Install example node modules
|
|
36
|
-
working-directory: ./examples/GumTestApp/
|
|
37
|
-
run: npm install
|
|
38
|
-
|
|
39
|
-
- name: Pod install
|
|
40
|
-
working-directory: ./examples/GumTestApp/ios
|
|
41
|
-
run: pod install
|
|
42
|
-
|
|
43
|
-
- name: Compile iOS Example
|
|
44
|
-
working-directory: ./examples/GumTestApp/ios
|
|
45
|
-
run: |
|
|
46
|
-
set -o pipefail && \
|
|
47
|
-
xcodebuild -workspace GumTestApp.xcworkspace/ \
|
|
48
|
-
-scheme GumTestApp \
|
|
49
|
-
-destination generic/platform=iOS \
|
|
50
|
-
CODE_SIGN_IDENTITY="" \
|
|
51
|
-
CODE_SIGNING_REQUIRED=NO \
|
|
52
|
-
CODE_SIGN_ENTITLEMENTS="" \
|
|
53
|
-
CODE_SIGNING_ALLOWED="NO" clean build \
|
|
54
|
-
| xcpretty
|
package/android/build/generated/source/buildConfig/debug/com/oney/WebRTCModule/BuildConfig.java
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically generated file. DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
package com.oney.WebRTCModule;
|
|
5
|
-
|
|
6
|
-
public final class BuildConfig {
|
|
7
|
-
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
-
public static final String LIBRARY_PACKAGE_NAME = "com.oney.WebRTCModule";
|
|
9
|
-
public static final String BUILD_TYPE = "debug";
|
|
10
|
-
}
|
package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
-
package="com.oney.WebRTCModule" >
|
|
5
|
-
|
|
6
|
-
<uses-sdk android:minSdkVersion="24" />
|
|
7
|
-
|
|
8
|
-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
9
|
-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
|
10
|
-
|
|
11
|
-
<uses-feature
|
|
12
|
-
android:name="android.hardware.usb.host"
|
|
13
|
-
android:required="false"
|
|
14
|
-
tools:node="replace" />
|
|
15
|
-
|
|
16
|
-
<application>
|
|
17
|
-
<service
|
|
18
|
-
android:name="com.oney.WebRTCModule.MediaProjectionService"
|
|
19
|
-
android:foregroundServiceType="mediaProjection" >
|
|
20
|
-
</service>
|
|
21
|
-
</application>
|
|
22
|
-
|
|
23
|
-
</manifest>
|
package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"artifactType": {
|
|
4
|
-
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
|
|
5
|
-
"kind": "Directory"
|
|
6
|
-
},
|
|
7
|
-
"applicationId": "com.oney.WebRTCModule",
|
|
8
|
-
"variantName": "debug",
|
|
9
|
-
"elements": [
|
|
10
|
-
{
|
|
11
|
-
"type": "SINGLE",
|
|
12
|
-
"filters": [],
|
|
13
|
-
"attributes": [],
|
|
14
|
-
"outputFile": "AndroidManifest.xml"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"elementType": "File"
|
|
18
|
-
}
|
package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|