AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows
https://pub.dev/packages/agora_rtc_engine
MIT License
738 stars 382 forks source link

Video not play after rejoin channel #2045

Open manhpv-1697 opened 5 days ago

manhpv-1697 commented 5 days ago

Version of the agora_rtc_engine

6.2.1 We are using flutter for lives streaming . When i leave channel and rejoin channel. Log show joinLive success but the livestream has only audio. I check log , i see when i leave channel i receive : " PlayerBase::stop() from IPlayer" but when i rejoin channel i don't see it start again. I try run your demo, it also got the same error

Platforms affected

Steps to reproduce

  1. Join channel
  2. Leave channel
  3. join channel

Expected results

Actual results

only audio play

Code sample

Code sample InkWell( onTap: () { if (widget.agoraUtils?.inChannel == true) { widget.agoraUtils?.inChannel = false; widget.agoraUtils?.engine().leaveChannel(); } else { final channel = context.read().getChannel(); widget.agoraUtils?.inChannel = true; widget.agoraUtils ?.engine() .joinChannel( token: channel!.token, channelId: channel.channelId, uid: channel.uid, options: const ChannelMediaOptions( autoSubscribeAudio: true, autoSubscribeVideo: true, channelProfile: ChannelProfileType.channelProfileLiveBroadcasting, clientRoleType: ClientRoleType.clientRoleAudience, audienceLatencyLevel: AudienceLatencyLevelType .audienceLatencyLevelLowLatency)) .then((value) { print("vo"); widget.agoraUtils?.engine().enableVideo(); widget.agoraUtils?.engine().enableAudio(); print("test"); }, onError: (err) { print(err); }); } },

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console [Paste your logs here] ```

![Uploading Screenshot 2024-10-13 at 00.08.19.png…]()

Flutter Doctor output

Doctor output ```console [Paste your output here] ```
github-actions[bot] commented 2 days ago

Please submit a ticket to Agora Support for further investigation of this issue. If you have any conclusions, you can share them here which may help other developers. Thanks!