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

Wrong mutation in peers.js removeConsumer #7

Open
AlexanderKozhevin opened this issue Feb 9, 2021 · 3 comments
Open

Wrong mutation in peers.js removeConsumer #7

AlexanderKozhevin opened this issue Feb 9, 2021 · 3 comments

Comments

@AlexanderKozhevin
Copy link

2 сеньор разработчика сидели 3 часа, что бы разобраться почему камера выключается
при выключении микфрофона собеседника.

Надо (consumer) => consumer != consumerId*

:)

Не надо


  removeConsumer(state, payload) {
    const { consumerId, peerId } = payload
    const peer = state.peers.find((peer) => peer.id === peerId)

    // NOTE: This means that the Peer was closed before, so it's ok.
    if (!peer) {
      return
    }

    peer.consumers = peer.consumers.filter(
      **(consumer) => consumer === consumerId**
    )
  },
@stasoft91
Copy link
Owner

Кек, надеюсь у вас тестеров не меньше чем синьоров, если вы вот это всё в энтерпрайз потащить решили :DD

Кстати PR`s welcome

@AlexanderKozhevin
Copy link
Author

@stasoft91 Дак уже тащим. А че че ? 😄

@stasoft91
Copy link
Owner

может быть вот это тянуть по-приятнее будет
https://github.com/zeye-ru
Во время локдауна на самом дешевом дроплете эта связка весьма сносно тянула простые требования видео-попойки

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

2 participants