Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video not play after rejoin channel #2045

Open
2 of 5 tasks
manhpv-1697 opened this issue Oct 12, 2024 · 1 comment
Open
2 of 5 tasks

Video not play after rejoin channel #2045

manhpv-1697 opened this issue Oct 12, 2024 · 1 comment
Labels
triage agora support waiting for customer response waiting for customer response, or closed by no-reponse bot

Comments

@manhpv-1697
Copy link

manhpv-1697 commented Oct 12, 2024

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

  • Android
  • iOS
  • macOS
  • Windows
  • Web

Steps to reproduce

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

Expected results

  • Audio and video are playing

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<PlayVideoCubit>().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
[Paste your logs here]
![Uploading Screenshot 2024-10-13 at 00.08.19.png…]()

Flutter Doctor output

Doctor output
[Paste your output here]
@littleGnAl littleGnAl added triage agora support waiting for customer response waiting for customer response, or closed by no-reponse bot labels Oct 15, 2024
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage agora support waiting for customer response waiting for customer response, or closed by no-reponse bot
Projects
None yet
Development

No branches or pull requests

2 participants