| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 const std::string& content_name, | 544 const std::string& content_name, |
| 545 bool rtcp); | 545 bool rtcp); |
| 546 ~VideoChannel(); | 546 ~VideoChannel(); |
| 547 bool Init_w(const std::string* bundle_transport_name); | 547 bool Init_w(const std::string* bundle_transport_name); |
| 548 | 548 |
| 549 // downcasts a MediaChannel | 549 // downcasts a MediaChannel |
| 550 VideoMediaChannel* media_channel() const override { | 550 VideoMediaChannel* media_channel() const override { |
| 551 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); | 551 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); |
| 552 } | 552 } |
| 553 | 553 |
| 554 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink); | 554 bool SetSink(uint32_t ssrc, |
| 555 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink); |
| 555 // Get statistics about the current media session. | 556 // Get statistics about the current media session. |
| 556 bool GetStats(VideoMediaInfo* stats); | 557 bool GetStats(VideoMediaInfo* stats); |
| 557 | 558 |
| 558 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> | 559 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> |
| 559 SignalConnectionMonitor; | 560 SignalConnectionMonitor; |
| 560 | 561 |
| 561 void StartMediaMonitor(int cms); | 562 void StartMediaMonitor(int cms); |
| 562 void StopMediaMonitor(); | 563 void StopMediaMonitor(); |
| 563 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 564 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; |
| 564 | 565 |
| 565 // Register a source and set options. | 566 // Register a source and set options. |
| 566 // The |ssrc| must correspond to a registered send stream. | 567 // The |ssrc| must correspond to a registered send stream. |
| 567 bool SetVideoSend(uint32_t ssrc, | 568 bool SetVideoSend(uint32_t ssrc, |
| 568 bool enable, | 569 bool enable, |
| 569 const VideoOptions* options, | 570 const VideoOptions* options, |
| 570 rtc::VideoSourceInterface<cricket::VideoFrame>* source); | 571 rtc::VideoSourceInterface<webrtc::VideoFrame>* source); |
| 571 webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const; | 572 webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const; |
| 572 bool SetRtpSendParameters(uint32_t ssrc, | 573 bool SetRtpSendParameters(uint32_t ssrc, |
| 573 const webrtc::RtpParameters& parameters); | 574 const webrtc::RtpParameters& parameters); |
| 574 webrtc::RtpParameters GetRtpReceiveParameters(uint32_t ssrc) const; | 575 webrtc::RtpParameters GetRtpReceiveParameters(uint32_t ssrc) const; |
| 575 bool SetRtpReceiveParameters(uint32_t ssrc, | 576 bool SetRtpReceiveParameters(uint32_t ssrc, |
| 576 const webrtc::RtpParameters& parameters); | 577 const webrtc::RtpParameters& parameters); |
| 577 cricket::MediaType media_type() override { return cricket::MEDIA_TYPE_VIDEO; } | 578 cricket::MediaType media_type() override { return cricket::MEDIA_TYPE_VIDEO; } |
| 578 | 579 |
| 579 private: | 580 private: |
| 580 // overrides from BaseChannel | 581 // overrides from BaseChannel |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 // SetSendParameters. | 731 // SetSendParameters. |
| 731 DataSendParameters last_send_params_; | 732 DataSendParameters last_send_params_; |
| 732 // Last DataRecvParameters sent down to the media_channel() via | 733 // Last DataRecvParameters sent down to the media_channel() via |
| 733 // SetRecvParameters. | 734 // SetRecvParameters. |
| 734 DataRecvParameters last_recv_params_; | 735 DataRecvParameters last_recv_params_; |
| 735 }; | 736 }; |
| 736 | 737 |
| 737 } // namespace cricket | 738 } // namespace cricket |
| 738 | 739 |
| 739 #endif // WEBRTC_PC_CHANNEL_H_ | 740 #endif // WEBRTC_PC_CHANNEL_H_ |
| OLD | NEW |