From bebeee07d31deb64c833424a104cf43b7326a296 Mon Sep 17 00:00:00 2001 From: li <719947897@ qq.com> Date: Thu, 30 May 2024 16:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E6=8E=A8=E6=B5=81ok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zlm/src/main/java/com/zlm/rtc/push/ZLMRTCPusherImpl.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webrtc_player/android/zlm/src/main/java/com/zlm/rtc/push/ZLMRTCPusherImpl.kt b/webrtc_player/android/zlm/src/main/java/com/zlm/rtc/push/ZLMRTCPusherImpl.kt index e2b1b625..1ab0caaa 100644 --- a/webrtc_player/android/zlm/src/main/java/com/zlm/rtc/push/ZLMRTCPusherImpl.kt +++ b/webrtc_player/android/zlm/src/main/java/com/zlm/rtc/push/ZLMRTCPusherImpl.kt @@ -163,17 +163,13 @@ class ZLMRTCPusherImpl(val context: FragmentActivity) : ZLMRTCPusher(), mediaProjectionManager.createScreenCaptureIntent() ) { resultCode, data -> if (resultCode == Activity.RESULT_OK) { - ContextCompat.startForegroundService(context, Intent(context, ScreenShareService::class.java)) - val screenCapturerAndroid = ScreenCapturerAndroid(data, object : MediaProjection.Callback() { }) - peerConnectionClient?.createPeerConnection(screenCapturerAndroid, localHandleId) peerConnectionClient?.createOffer(localHandleId) - } }