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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 virtual bool SetVideoSend(uint32_t ssrc, bool enable, | 517 virtual bool SetVideoSend(uint32_t ssrc, bool enable, |
518 const VideoOptions* options) { | 518 const VideoOptions* options) { |
519 if (!RtpHelper<VideoMediaChannel>::MuteStream(ssrc, !enable)) { | 519 if (!RtpHelper<VideoMediaChannel>::MuteStream(ssrc, !enable)) { |
520 return false; | 520 return false; |
521 } | 521 } |
522 if (enable && options) { | 522 if (enable && options) { |
523 return SetOptions(*options); | 523 return SetOptions(*options); |
524 } | 524 } |
525 return true; | 525 return true; |
526 } | 526 } |
| 527 virtual rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink(uint32_t ssrc) { |
| 528 return NULL; |
| 529 } |
527 virtual bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) { | 530 virtual bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) { |
528 capturers_[ssrc] = capturer; | 531 capturers_[ssrc] = capturer; |
529 return true; | 532 return true; |
530 } | 533 } |
531 bool HasCapturer(uint32_t ssrc) const { | 534 bool HasCapturer(uint32_t ssrc) const { |
532 return capturers_.find(ssrc) != capturers_.end(); | 535 return capturers_.find(ssrc) != capturers_.end(); |
533 } | 536 } |
534 virtual bool AddRecvStream(const StreamParams& sp) { | 537 virtual bool AddRecvStream(const StreamParams& sp) { |
535 if (!RtpHelper<VideoMediaChannel>::AddRecvStream(sp)) | 538 if (!RtpHelper<VideoMediaChannel>::AddRecvStream(sp)) |
536 return false; | 539 return false; |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 | 944 |
942 private: | 945 private: |
943 std::vector<FakeDataMediaChannel*> channels_; | 946 std::vector<FakeDataMediaChannel*> channels_; |
944 std::vector<DataCodec> data_codecs_; | 947 std::vector<DataCodec> data_codecs_; |
945 DataChannelType last_channel_type_; | 948 DataChannelType last_channel_type_; |
946 }; | 949 }; |
947 | 950 |
948 } // namespace cricket | 951 } // namespace cricket |
949 | 952 |
950 #endif // TALK_MEDIA_BASE_FAKEMEDIAENGINE_H_ | 953 #endif // TALK_MEDIA_BASE_FAKEMEDIAENGINE_H_ |
OLD | NEW |