Webrtc Android: Screen Sharing stopped working on targeting to API 29 (Android 10)

495 views
Skip to first unread message

Abhishek Kumar Gupta

unread,
Sep 16, 2020, 11:34:34 AM9/16/20
to discuss-webrtc

In my app which was Targeting to Android API 28, screen sharing via. Webrtc was working fine.

As per recent Google Guidelines(deadline for Target API 29 task is Nov 2, 2020), today I have changed the targetSdkVersion and compileSdkVersion to Android API 29 and in turn, screen sharing stopped working.

Any help or guidance will be well appreciated.

vadym...@gmail.com

unread,
Sep 16, 2020, 12:44:14 PM9/16/20
to discuss-webrtc

Check mediaProjection in Android manifest, it should be on service section.
среда, 16 сентября 2020 г. в 18:34:34 UTC+3, akgae...@gmail.com:

Abhishek Kumar Gupta

unread,
Sep 17, 2020, 2:10:50 AM9/17/20
to discuss-webrtc
Thanks Bro, it works like a charm. As suggested I have added only below line of code in my Foreground Service in AndroidManifest.xml and it worked
    android:foregroundServiceType="mediaProjection"

Reply all
Reply to author
Forward
Message has been deleted
0 new messages