Switch to using AddTrack with stream labels
Bug: webrtc:8587 Change-Id: I8d4a3a225e6f6a6ae59def972ecae3255c0f2bda Reviewed-on: https://webrtc-review.googlesource.com/37547 Commit-Queue: Steve Anton <steveanton@webrtc.org> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21509}
This commit is contained in:
@ -599,9 +599,9 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
|
||||
// - INVALID_STATE: The PeerConnection is closed.
|
||||
// TODO(steveanton): Remove default implementation once downstream
|
||||
// implementations have been updated.
|
||||
virtual RTCErrorOr<rtc::scoped_refptr<RtpSenderInterface>>
|
||||
AddTrackWithStreamLabels(rtc::scoped_refptr<MediaStreamTrackInterface> track,
|
||||
const std::vector<std::string>& stream_labels) {
|
||||
virtual RTCErrorOr<rtc::scoped_refptr<RtpSenderInterface>> AddTrack(
|
||||
rtc::scoped_refptr<MediaStreamTrackInterface> track,
|
||||
const std::vector<std::string>& stream_labels) {
|
||||
return RTCError(RTCErrorType::UNSUPPORTED_OPERATION, "Not implemented");
|
||||
}
|
||||
// |streams| indicates which stream labels the track should be associated
|
||||
|
||||
@ -29,7 +29,7 @@ BEGIN_SIGNALING_PROXY_MAP(PeerConnection)
|
||||
PROXY_METHOD1(bool, AddStream, MediaStreamInterface*)
|
||||
PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*)
|
||||
PROXY_METHOD2(RTCErrorOr<rtc::scoped_refptr<RtpSenderInterface>>,
|
||||
AddTrackWithStreamLabels,
|
||||
AddTrack,
|
||||
rtc::scoped_refptr<MediaStreamTrackInterface>,
|
||||
const std::vector<std::string>&);
|
||||
PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>,
|
||||
|
||||
Reference in New Issue
Block a user