AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows

Home Page:https://pub.dev/packages/agora_rtc_engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video and Audio not visible on Audience device but on other broadcaster's device it visible.

Saket7042 opened this issue · comments

Hi, I've integrated Agora Flutter RTC package for Live streaming feature.

On the audience device as Audio and video of broadcasters are not showing but at the same time If I check any other broadcaster on different device then I can hear the audio and video is visible too. Please help as in documentation it's unclear how we can subscribe to other's audio/video on Audience device.

agora_rtc_engine: ^6.2.2
Android version 12
Device Samsung M32 5G

Do you mean you set ClientRoleType.clientRoleAudience, and then you want to receive the streams of other audiences?

yes I've set this ClientRoleType.clientRoleAudience for Audience but video and audio streams are not getting received, for broadcasters who are also in the same room at the same time they are able to hear and view other broadcaster's streams.

This should be expected behavior, the user with ClientRoleType.clientRoleAudience can only receive the user with ClientRoleType.clientRoleBroadcaster but not other users with ClientRoleType.clientRoleAudience in the same channel

Yes I meant broadcaster's stream only that should be received on audience's sides not the other way around. As this is livestreaming then there can be multiple broadcasters and audiences.

Working flow right now :-
Broadcaster's is receiving other broadcaster's stream on each other devices

Non-working flow :-
Audience's not receiving broadcaster's stream

I suppose you didn't set the ChannelMediaOptions.autoSubscribeVideo when you joinChannel as an audience.
But can you share the agora-iris.log so I can investigate it in more detail?

@littleGnAl that was the missing code I know this has something with subscribe so i was using rtcEngine.setSubscribeVideoAllowlist and any other code that I found related to this but there is no effect. It's working now please mention this in documentation as I couldn't able to find this piece of code anywhere in docs . Thanks 🙌

If you can share the log, maybe I can investigate it in more detail.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.