| 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 | 18 |
| 19 #include "talk/session/media/mediasession.h" | |
| 20 #include "webrtc/api/mediastreaminterface.h" | 19 #include "webrtc/api/mediastreaminterface.h" |
| 21 #include "webrtc/api/proxy.h" | 20 #include "webrtc/api/proxy.h" |
| 22 #include "webrtc/base/refcount.h" | 21 #include "webrtc/base/refcount.h" |
| 23 #include "webrtc/base/scoped_ref_ptr.h" | 22 #include "webrtc/base/scoped_ref_ptr.h" |
| 23 #include "webrtc/pc/mediasession.h" |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 | 26 |
| 27 class RtpSenderInterface : public rtc::RefCountInterface { | 27 class RtpSenderInterface : public rtc::RefCountInterface { |
| 28 public: | 28 public: |
| 29 // Returns true if successful in setting the track. | 29 // Returns true if successful in setting the track. |
| 30 // Fails if an audio track is set on a video RtpSender, or vice-versa. | 30 // Fails if an audio track is set on a video RtpSender, or vice-versa. |
| 31 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; | 31 virtual bool SetTrack(MediaStreamTrackInterface* track) = 0; |
| 32 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; | 32 virtual rtc::scoped_refptr<MediaStreamTrackInterface> track() const = 0; |
| 33 | 33 |
| (...skipping 30 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_METHOD1(void, set_stream_id, const std::string&) | 66 PROXY_METHOD1(void, set_stream_id, const std::string&) |
| 67 PROXY_CONSTMETHOD0(std::string, stream_id) | 67 PROXY_CONSTMETHOD0(std::string, stream_id) |
| 68 PROXY_METHOD0(void, Stop) | 68 PROXY_METHOD0(void, Stop) |
| 69 END_PROXY() | 69 END_PROXY() |
| 70 | 70 |
| 71 } // namespace webrtc | 71 } // namespace webrtc |
| 72 | 72 |
| 73 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_ | 73 #endif // WEBRTC_API_RTPSENDERINTERFACE_H_ |
| OLD | NEW |