New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 697064 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 777617
issue 799030

Blocking:
issue 674593


Show other hotlists

Hotlists containing this issue:
Non-Standard-IDL


Sign in to add a comment

Standardize or remove getLocalStreams and getRemoteStreams in RTCPeerConnection

Project Member Reported by lunalu@chromium.org, Feb 28 2017

Issue description

WebKit has: getLocalStreams, getRemoteStreams, getStreamById
Gecko has: getLocalStreams, getRemoteStreams

Should we standardize these API's?
 

Comment 1 by guidou@chromium.org, Feb 28 2017

Components: -Blink>MediaStream Blink>WebRTC
 Issue 598704  is about removing MediaStreamTrack#remote, which goes together with getLocalStreams and getRemoteStreams. I think those three should be considered together.

Would it be trivial to continue supporting RTCPeerConnection#getLocalStreams/getRemoteStreams and MediaStreamTrack#remote? If so, I would first try to revive them in the spec.
Oh, wait, MediaStreamTrack#remote is in the process of being removed. I'll comment on the intent:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/d20ECb2sWzI/C8DhXa1aAwAJ
Summary: Standardize or remove getLocalStreams and getRemoteStreams in RTCPeerConnection (was: Standardize or remove get[Local | Remote]Streams and getStreamById in RTCPeerConnection)
Use counters:
https://www.chromestatus.com/metrics/feature/timeline/popularity/1643
https://www.chromestatus.com/metrics/feature/timeline/popularity/1644
https://www.chromestatus.com/metrics/feature/timeline/popularity/1645

getStreamById seems like it'd be a rather different removal, so I've split it into  issue 698163 .
Cc: pea...@gmail.com
peary2@, can you comment on the connection to MediaStreamTrack#remote?
Owner: guidou@chromium.org
Status: Assigned (was: Untriaged)

Comment 7 by foolip@chromium.org, Apr 14 2017

Can this be considered independently of issue 697059, or should this group of APIs be standardized/removed together? (getStreamById still separate because it's not as widely implemented.)

Comment 8 by foolip@chromium.org, Apr 14 2017

I've updated the description of issue 697059 to also test getLocalStreams and getRemoteStreams, please merge into that if these are coupled.
Labels: Hotlist-Interop
Cc: guidou@chromium.org
Owner: hbos@chromium.org

Comment 11 by hbos@chromium.org, Mar 14 2018

Blockedon: 799030 777617
Standardization efforts met resistance at https://github.com/w3c/webrtc-pc/issues/1125. They are not going away any time soon, but should be marked as deprecated when we have Unified Plan ( https://crbug.com/799030 ) and RTCRtpTransceivers ( https://crbug.com/777617 ).

Without UP+transceivers, getLocalStreams() and getRemoteStreams() are still necessary to have. While they were successfully implemented on top of track-based APIs ( https://crbug.com/803021 ), this required some magic that JavaScript does not have access to without UP+transceivers, so we can't expect the applications to stop relying on them.

When the referenced bugs are fixed we can deprecate this.
The decision is to deprecate and remove them, but they're too heavily used. This bug is non-actionable for the foreseeable future.

Sign in to add a comment