OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // VideoMediaChannel implementation | 186 // VideoMediaChannel implementation |
187 void DetachVoiceChannel() override; | 187 void DetachVoiceChannel() override; |
188 bool SetSendParameters(const VideoSendParameters& params) override; | 188 bool SetSendParameters(const VideoSendParameters& params) override; |
189 bool SetRecvParameters(const VideoRecvParameters& params) override; | 189 bool SetRecvParameters(const VideoRecvParameters& params) override; |
190 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) override; | 190 bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) override; |
191 bool SetSendCodecs(const std::vector<VideoCodec>& codecs) override; | 191 bool SetSendCodecs(const std::vector<VideoCodec>& codecs) override; |
192 bool GetSendCodec(VideoCodec* send_codec) override; | 192 bool GetSendCodec(VideoCodec* send_codec) override; |
193 bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) override; | 193 bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) override; |
194 bool SetRender(bool render) override; | 194 bool SetRender(bool render) override; |
195 bool SetSend(bool send) override; | 195 bool SetSend(bool send) override; |
196 | 196 bool SetVideoSend(uint32 ssrc, bool mute, |
| 197 const VideoOptions* options) override; |
197 bool AddSendStream(const StreamParams& sp) override; | 198 bool AddSendStream(const StreamParams& sp) override; |
198 bool RemoveSendStream(uint32 ssrc) override; | 199 bool RemoveSendStream(uint32 ssrc) override; |
199 bool AddRecvStream(const StreamParams& sp) override; | 200 bool AddRecvStream(const StreamParams& sp) override; |
200 bool AddRecvStream(const StreamParams& sp, bool default_stream); | 201 bool AddRecvStream(const StreamParams& sp, bool default_stream); |
201 bool RemoveRecvStream(uint32 ssrc) override; | 202 bool RemoveRecvStream(uint32 ssrc) override; |
202 bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) override; | 203 bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) override; |
203 bool GetStats(VideoMediaInfo* info) override; | 204 bool GetStats(VideoMediaInfo* info) override; |
204 bool SetCapturer(uint32 ssrc, VideoCapturer* capturer) override; | 205 bool SetCapturer(uint32 ssrc, VideoCapturer* capturer) override; |
205 bool SendIntraFrame() override; | 206 bool SendIntraFrame() override; |
206 bool RequestIntraFrame() override; | 207 bool RequestIntraFrame() override; |
207 | 208 |
208 void OnPacketReceived(rtc::Buffer* packet, | 209 void OnPacketReceived(rtc::Buffer* packet, |
209 const rtc::PacketTime& packet_time) override; | 210 const rtc::PacketTime& packet_time) override; |
210 void OnRtcpReceived(rtc::Buffer* packet, | 211 void OnRtcpReceived(rtc::Buffer* packet, |
211 const rtc::PacketTime& packet_time) override; | 212 const rtc::PacketTime& packet_time) override; |
212 void OnReadyToSend(bool ready) override; | 213 void OnReadyToSend(bool ready) override; |
213 bool MuteStream(uint32 ssrc, bool mute) override; | |
214 | 214 |
215 // Set send/receive RTP header extensions. This must be done before creating | 215 // Set send/receive RTP header extensions. This must be done before creating |
216 // streams as it only has effect on future streams. | 216 // streams as it only has effect on future streams. |
217 bool SetRecvRtpHeaderExtensions( | 217 bool SetRecvRtpHeaderExtensions( |
218 const std::vector<RtpHeaderExtension>& extensions) override; | 218 const std::vector<RtpHeaderExtension>& extensions) override; |
219 bool SetSendRtpHeaderExtensions( | 219 bool SetSendRtpHeaderExtensions( |
220 const std::vector<RtpHeaderExtension>& extensions) override; | 220 const std::vector<RtpHeaderExtension>& extensions) override; |
221 bool SetMaxSendBandwidth(int bps) override; | 221 bool SetMaxSendBandwidth(int bps) override; |
222 bool SetOptions(const VideoOptions& options) override; | 222 bool SetOptions(const VideoOptions& options) override; |
223 bool GetOptions(VideoOptions* options) const override { | 223 bool GetOptions(VideoOptions* options) const override { |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 WebRtcVideoDecoderFactory* const external_decoder_factory_; | 543 WebRtcVideoDecoderFactory* const external_decoder_factory_; |
544 std::vector<VideoCodecSettings> recv_codecs_; | 544 std::vector<VideoCodecSettings> recv_codecs_; |
545 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 545 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
546 webrtc::Call::Config::BitrateConfig bitrate_config_; | 546 webrtc::Call::Config::BitrateConfig bitrate_config_; |
547 VideoOptions options_; | 547 VideoOptions options_; |
548 }; | 548 }; |
549 | 549 |
550 } // namespace cricket | 550 } // namespace cricket |
551 | 551 |
552 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ | 552 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ |
OLD | NEW |