OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 475 |
476 void StartMediaMonitor(int cms); | 476 void StartMediaMonitor(int cms); |
477 void StopMediaMonitor(); | 477 void StopMediaMonitor(); |
478 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 478 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; |
479 sigslot::signal2<uint32_t, rtc::WindowEvent> SignalScreencastWindowEvent; | 479 sigslot::signal2<uint32_t, rtc::WindowEvent> SignalScreencastWindowEvent; |
480 | 480 |
481 bool SendIntraFrame(); | 481 bool SendIntraFrame(); |
482 bool RequestIntraFrame(); | 482 bool RequestIntraFrame(); |
483 | 483 |
484 bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); | 484 bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); |
| 485 rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink(uint32_t ssrc); |
485 | 486 |
486 private: | 487 private: |
487 typedef std::map<uint32_t, VideoCapturer*> ScreencastMap; | 488 typedef std::map<uint32_t, VideoCapturer*> ScreencastMap; |
488 | 489 |
489 // overrides from BaseChannel | 490 // overrides from BaseChannel |
490 virtual void ChangeState(); | 491 virtual void ChangeState(); |
491 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 492 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); |
492 virtual bool SetLocalContent_w(const MediaContentDescription* content, | 493 virtual bool SetLocalContent_w(const MediaContentDescription* content, |
493 ContentAction action, | 494 ContentAction action, |
494 std::string* error_desc); | 495 std::string* error_desc); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 // SetSendParameters. | 644 // SetSendParameters. |
644 DataSendParameters last_send_params_; | 645 DataSendParameters last_send_params_; |
645 // Last DataRecvParameters sent down to the media_channel() via | 646 // Last DataRecvParameters sent down to the media_channel() via |
646 // SetRecvParameters. | 647 // SetRecvParameters. |
647 DataRecvParameters last_recv_params_; | 648 DataRecvParameters last_recv_params_; |
648 }; | 649 }; |
649 | 650 |
650 } // namespace cricket | 651 } // namespace cricket |
651 | 652 |
652 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ | 653 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ |
OLD | NEW |