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

broadcast same video #1

Open
minghoe1994 opened this issue Sep 4, 2020 · 3 comments
Open

broadcast same video #1

minghoe1994 opened this issue Sep 4, 2020 · 3 comments

Comments

@minghoe1994
Copy link

unable to broadcast different video after session ended

@FranciscoVenegas
Copy link

FranciscoVenegas commented Feb 7, 2021

That happens to me too. I think this occurs in my case because the Media Queue Items is not cleaned at the end of a session, so it queues the elements as they arrive. I have not managed to clean up the play queue using this implementation.
If anyone knows something about it, I would be grateful to know how to solve this problem.

@FranciscoVenegas
Copy link

In my case, my problem was related to the use of multiple listeners. If you do not remove the listeners, the instructions will be preserved, repeating the same average all the time.

@daveshirman
Copy link

daveshirman commented Aug 10, 2021

For anyone else with this issue, flutter hot reload doesn't clear the state properly. If you restart the app, everything is fine.

For safety, when I'm leaving the page with my video I'm doing this:

  @override
  void dispose() {
    if (_chromeCastController != null) {
      _chromeCastController!.stop();
      _chromeCastController!.removeSessionListener();
      _chromeCastController!.endSession();
      _chromeCastController = null;
    }
    super.dispose();
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants