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