Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Conversation

@jianjunz
Copy link
Collaborator

When subscribe a stream in conference mode, the subscribed stream no
longer associated with RemoteStream. It allows a RemoteStream to be
subscribed multiple times. It also allows a subscription has audio and
video track from different remote streams.

Since the signaling protocol defined by server side does not provide an
ID for a track, the SDK usually use stream ID + track kind to identify a
track. The stream ID and track ID mentioned in conference mode indicate
the ID assigned by conference sever, they could be different from
MediaStream ID and MediaStreamTrack ID.

@jianjunz jianjunz added comp:conference Conference mode issues enhancement New feature or request wip Working in progress labels Apr 21, 2021
@jianjunz jianjunz force-pushed the sub-stream branch 3 times, most recently from 1290482 to 5d212dc Compare April 22, 2021 06:05
@jianjunz jianjunz marked this pull request as ready for review April 22, 2021 14:36
@jianjunz jianjunz removed the wip Working in progress label Apr 22, 2021
this._sdpResolverMap = new Map(); // internalId => {finish, resolve, reject}
this._sdpResolvers = []; // [{finish, resolve, reject}]
this._sdpResolveNum = 0;
this._remoteMediaStream = new Map(); // Key is subscription ID, value is MediaStream.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this._remoteMediaStreams instead of this._remoteMediaStream

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

When subscribe a stream in conference mode, the subscribed stream no
longer associated with RemoteStream. It allows a RemoteStream to be
subscribed multiple times. It also allows a subscription has audio and
video track from different remote streams.

Since the signaling protocol defined by server side does not provide an
ID for a track, the SDK usually use stream ID + track kind to identify a
track. The stream ID and track ID mentioned in conference mode indicate
the ID assigned by conference sever, they could be different from
MediaStream ID and MediaStreamTrack ID.
@jianjunz jianjunz merged commit 7d31677 into open-webrtc-toolkit:master Apr 25, 2021
@jianjunz jianjunz deleted the sub-stream branch April 25, 2021 06:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

comp:conference Conference mode issues enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants