Skip to content

stream:added can be emitted more than once for a stream #75

Description

@nathanoehlman

The stream:added event for a call can be emitted more than once for a given stream in the following situation:

In, calls.start:

  1. streams contains the results of pc.getRemoteStreams() - which includes a given stream.
  2. The onstreamadded events are registered
  3. The onstreamadded event gets fired for the stream that is currently in pc.getRemoteStreams() (unsure as to why, given it probably shouldn't - but this behaviour only exhibits itself on Firefox, so perhaps no more needs to be said). Emits a stream:added event
  4. The receiveRemoteStream function gets called for each stream in streams. Results in a second stream:added

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions