build: 修改到可编译成功

This commit is contained in:
2026-07-13 11:41:48 +08:00
parent 87f98799f7
commit 32a9cdbc1b
19 changed files with 20 additions and 13 deletions

View File

@@ -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

View File

@@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB