| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 // This file contains interfaces for RtpSenders | 11 // This file contains interfaces for RtpSenders |
| 12 // http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface | 12 // http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface |
| 13 | 13 |
| 14 #ifndef WEBRTC_API_RTPSENDERINTERFACE_H_ | 14 #ifndef WEBRTC_API_RTPSENDERINTERFACE_H_ |
| 15 #define WEBRTC_API_RTPSENDERINTERFACE_H_ | 15 #define WEBRTC_API_RTPSENDERINTERFACE_H_ |
| 16 | 16 |
| 17 #include <string> | 17 #include <string> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #include "webrtc/api/mediatypes.h" |
| 20 #include "webrtc/api/mediastreaminterface.h" | 21 #include "webrtc/api/mediastreaminterface.h" |
| 21 #include "webrtc/api/proxy.h" | 22 #include "webrtc/api/proxy.h" |
| 22 #include "webrtc/api/rtpparameters.h" | 23 #include "webrtc/api/rtpparameters.h" |
| 23 #include "webrtc/base/refcount.h" | 24 #include "webrtc/base/refcount.h" |
| 24 #include "webrtc/base/scoped_ref_ptr.h" | 25 #include "webrtc/base/scoped_ref_ptr.h" |
| 25 #include "webrtc/pc/mediasession.h" | |
| 26 | 26 |
| 27 namespace webrtc { | 27 namespace webrtc { |
| 28 | 28 |
| 29 class RtpSenderInterface : public rtc::RefCountInterface { | 29 class RtpSenderInterface : public rtc::RefCountInterface { |
| 30 public: | 30 public: |
| 31 // Returns true if successful in setting the track. | 31 // Returns true if successful in setting the track. |
| 32 // Fails if an audio track is set on a video RtpSender, or vice-versa. | 32 // Fails if an audio track is set on a video RtpSender, or vice-versa. |
| 33 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; | 33 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; |
| 34 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; | 34 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; |
| 35 | 35 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 64 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) | 64 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) |
| 65 PROXY_CONSTMETHOD0(std::string, id) | 65 PROXY_CONSTMETHOD0(std::string, id) |
| 66 PROXY_CONSTMETHOD0(std::vector<std::string>, stream_ids) | 66 PROXY_CONSTMETHOD0(std::vector<std::string>, stream_ids) |
| 67 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); | 67 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); |
| 68 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) | 68 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) |
| 69 END_PROXY_MAP() | 69 END_PROXY_MAP() |
| 70 | 70 |
| 71 } // namespace webrtc | 71 } // namespace webrtc |
| 72 | 72 |
| 73 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_ | 73 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_ |
| OLD | NEW |