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) - } }