API-Examples icon indicating copy to clipboard operation
API-Examples copied to clipboard

[Android] screen sharing black output

Open s1lviu opened this issue 2 years ago • 9 comments

The content isn't shared. It appears only black color.

image

s1lviu avatar Sep 06 '21 07:09 s1lviu

this demo doesn't have local preview, can you try to check with other examples like join channel video?

yoreland avatar Sep 07 '21 00:09 yoreland

We saw that the problem is that the stream from the screen isn't displayed only on Android, even if it comes from an android or iOS device.

Is there a fix for this "preview"? We need to broadcast a part of the screen content to an audience and can't find another way of doing that.

Thank you!

s1lviu avatar Sep 07 '21 07:09 s1lviu

still this issue. any solutions for this?

asif-ullah avatar Sep 07 '21 10:09 asif-ullah

We saw that the problem is that the stream from the screen isn't displayed only on Android, even if it comes from an android or iOS device.

Is there a fix for this "preview"? We need to broadcast a part of the screen content to an audience and can't find another way of doing that.

Thank you!

sorry for late response, can you have a try to use this demo as audience to see if screen share stream is published successfully?

https://webdemo.agora.io/basicLive/index.html

yoreland avatar Sep 14 '21 08:09 yoreland

screen share is also video call? i am able to share mobile camera and can view on https://webdemo.agora.io/basicLive/index.html

I need to share screen of mobile to mobile. is agora provide this? if yes, where? how?

asif-ullah avatar Sep 14 '21 10:09 asif-ullah

screen share is also video call? i am able to share mobile camera and can view on https://webdemo.agora.io/basicLive/index.html

I need to share screen of mobile to mobile. is agora provide this? if yes, where? how?

For broadcaster side, you could still use android APIExample's screen share demo: https://github.com/AgoraIO/API-Examples/blob/master/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideo.java

web demo is just for you to check as audience. Let me know if you still can't share mobile screen.

yoreland avatar Sep 14 '21 11:09 yoreland

broadcaster side is working fine. but i need audience side? how can i see the shared screen on other mobile?

asif-ullah avatar Sep 14 '21 12:09 asif-ullah

broadcaster side is working fine. but i need audience side? how can i see the shared screen on other mobile?

got it, can you just use joinChannelVideo sample as "audience" to check?

yoreland avatar Sep 14 '21 12:09 yoreland

i have tried the other demo apo as well. in that app there are options for start as broadcast and start as audience. but that app also do video call(camera share) not screen share.

On Tue, Sep 14, 2021, 5:52 PM xia ning @.***> wrote:

broadcaster side is working fine. but i need audience side? how can i see the shared screen on other mobile?

got it, can you just use joinChannelVideo sample as "audience" to check?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AgoraIO/API-Examples/issues/205#issuecomment-919119884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSTMOHMM3OEX4QECAKYDRLUB5APZANCNFSM5DP3GJ4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

asif-ullah avatar Sep 14 '21 13:09 asif-ullah