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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 bool rtcp); | 437 bool rtcp); |
438 ~VideoChannel(); | 438 ~VideoChannel(); |
439 bool Init(); | 439 bool Init(); |
440 | 440 |
441 // downcasts a MediaChannel | 441 // downcasts a MediaChannel |
442 virtual VideoMediaChannel* media_channel() const { | 442 virtual VideoMediaChannel* media_channel() const { |
443 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); | 443 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); |
444 } | 444 } |
445 | 445 |
446 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink); | 446 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink); |
447 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer); | |
448 // Get statistics about the current media session. | 447 // Get statistics about the current media session. |
449 bool GetStats(VideoMediaInfo* stats); | 448 bool GetStats(VideoMediaInfo* stats); |
450 | 449 |
451 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> | 450 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> |
452 SignalConnectionMonitor; | 451 SignalConnectionMonitor; |
453 | 452 |
454 void StartMediaMonitor(int cms); | 453 void StartMediaMonitor(int cms); |
455 void StopMediaMonitor(); | 454 void StopMediaMonitor(); |
456 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 455 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; |
457 | 456 |
458 bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); | 457 bool SetVideoSend(uint32_t ssrc, |
| 458 bool enable, |
| 459 const VideoOptions* options, |
| 460 VideoCapturer* capturer); |
459 webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; | 461 webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; |
460 bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); | 462 bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); |
461 | 463 |
462 private: | 464 private: |
463 // overrides from BaseChannel | 465 // overrides from BaseChannel |
464 virtual void ChangeState(); | 466 virtual void ChangeState(); |
465 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 467 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); |
466 virtual bool SetLocalContent_w(const MediaContentDescription* content, | 468 virtual bool SetLocalContent_w(const MediaContentDescription* content, |
467 ContentAction action, | 469 ContentAction action, |
468 std::string* error_desc); | 470 std::string* error_desc); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 // SetSendParameters. | 608 // SetSendParameters. |
607 DataSendParameters last_send_params_; | 609 DataSendParameters last_send_params_; |
608 // Last DataRecvParameters sent down to the media_channel() via | 610 // Last DataRecvParameters sent down to the media_channel() via |
609 // SetRecvParameters. | 611 // SetRecvParameters. |
610 DataRecvParameters last_recv_params_; | 612 DataRecvParameters last_recv_params_; |
611 }; | 613 }; |
612 | 614 |
613 } // namespace cricket | 615 } // namespace cricket |
614 | 616 |
615 #endif // WEBRTC_PC_CHANNEL_H_ | 617 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |