build: 修改到可编译成功
2
WebRTCControlled/.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
/build/
|
||||
/app/build/
|
||||
/.idea/
|
||||
/.gradle/
|
||||
@@ -43,7 +43,8 @@ dependencies {
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
|
||||
// WebRTC
|
||||
implementation 'io.github.nicholasgasior:webrtc-android:1.0.0'
|
||||
implementation 'io.github.webrtc-sdk:android:144.7559.09'
|
||||
// implementation 'org.webrtc:google-webrtc:1.0.32006'
|
||||
// OkHttp for WebSocket
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
||||
// Gson for JSON
|
||||
|
||||
@@ -162,16 +162,8 @@ public class ScreenCaptureService extends Service {
|
||||
webRtcClient.setInputCallback(commandJson -> inputHandler.handleCommand(commandJson));
|
||||
|
||||
// 初始化屏幕捕获
|
||||
screenCapturer = new ScreenCapturerAndroid(resultData, new ScreenCapturerAndroid.Callback() {
|
||||
@Override
|
||||
public void onCapturerStarted(boolean success) {
|
||||
Log.d(TAG, "Screen capture started: " + success);
|
||||
}
|
||||
screenCapturer = new ScreenCapturerAndroid(resultData, new MediaProjection.Callback() {
|
||||
|
||||
@Override
|
||||
public void onCapturerStopped() {
|
||||
Log.d(TAG, "Screen capture stopped");
|
||||
}
|
||||
});
|
||||
|
||||
webRtcClient.setVideoCapturer(screenCapturer);
|
||||
|
||||
BIN
WebRTCControlled/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
WebRTCControlled/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
WebRTCControlled/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
WebRTCControlled/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
WebRTCControlled/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
@@ -3,6 +3,7 @@ pluginManagement {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +12,7 @@ dependencyResolutionManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
WebRTCController/.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
/build/
|
||||
/app/build/
|
||||
/.idea/
|
||||
/.gradle/
|
||||
@@ -33,7 +33,7 @@ dependencies {
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
|
||||
// WebRTC
|
||||
implementation 'io.github.nicholasgasior:webrtc-android:1.0.0'
|
||||
implementation 'io.github.webrtc-sdk:android:144.7559.09'
|
||||
|
||||
// OkHttp for WebSocket
|
||||
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
||||
|
||||
BIN
WebRTCController/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
WebRTCController/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
WebRTCController/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
WebRTCController/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
WebRTCController/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
WebRTCController/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
6
WebRTCController/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#Tue Mar 16 15:27:10 CST 2021
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
|
||||
@@ -3,6 +3,7 @@ pluginManagement {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +12,7 @@ dependencyResolutionManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url "https://jitpack.io" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||