| 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 Deinit(); | 1668 Deinit(); |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 bool VideoChannel::SetSink(uint32_t ssrc, | 1671 bool VideoChannel::SetSink(uint32_t ssrc, |
| 1672 rtc::VideoSinkInterface<VideoFrame>* sink) { | 1672 rtc::VideoSinkInterface<VideoFrame>* sink) { |
| 1673 worker_thread()->Invoke<void>( | 1673 worker_thread()->Invoke<void>( |
| 1674 Bind(&VideoMediaChannel::SetSink, media_channel(), ssrc, sink)); | 1674 Bind(&VideoMediaChannel::SetSink, media_channel(), ssrc, sink)); |
| 1675 return true; | 1675 return true; |
| 1676 } | 1676 } |
| 1677 | 1677 |
| 1678 bool VideoChannel::SetCapturer(uint32_t ssrc, VideoCapturer* capturer) { | |
| 1679 return InvokeOnWorker(Bind(&VideoMediaChannel::SetCapturer, | |
| 1680 media_channel(), ssrc, capturer)); | |
| 1681 } | |
| 1682 | |
| 1683 bool VideoChannel::SetVideoSend(uint32_t ssrc, | 1678 bool VideoChannel::SetVideoSend(uint32_t ssrc, |
| 1684 bool mute, | 1679 bool mute, |
| 1685 const VideoOptions* options) { | 1680 const VideoOptions* options, |
| 1681 VideoCapturer* capturer) { |
| 1686 return InvokeOnWorker(Bind(&VideoMediaChannel::SetVideoSend, media_channel(), | 1682 return InvokeOnWorker(Bind(&VideoMediaChannel::SetVideoSend, media_channel(), |
| 1687 ssrc, mute, options)); | 1683 ssrc, mute, options, capturer)); |
| 1688 } | 1684 } |
| 1689 | 1685 |
| 1690 webrtc::RtpParameters VideoChannel::GetRtpParameters(uint32_t ssrc) const { | 1686 webrtc::RtpParameters VideoChannel::GetRtpParameters(uint32_t ssrc) const { |
| 1691 return worker_thread()->Invoke<webrtc::RtpParameters>( | 1687 return worker_thread()->Invoke<webrtc::RtpParameters>( |
| 1692 Bind(&VideoChannel::GetRtpParameters_w, this, ssrc)); | 1688 Bind(&VideoChannel::GetRtpParameters_w, this, ssrc)); |
| 1693 } | 1689 } |
| 1694 | 1690 |
| 1695 webrtc::RtpParameters VideoChannel::GetRtpParameters_w(uint32_t ssrc) const { | 1691 webrtc::RtpParameters VideoChannel::GetRtpParameters_w(uint32_t ssrc) const { |
| 1696 return media_channel()->GetRtpParameters(ssrc); | 1692 return media_channel()->GetRtpParameters(ssrc); |
| 1697 } | 1693 } |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); | 2182 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); |
| 2187 } | 2183 } |
| 2188 | 2184 |
| 2189 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { | 2185 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { |
| 2190 rtc::TypedMessageData<uint32_t>* message = | 2186 rtc::TypedMessageData<uint32_t>* message = |
| 2191 new rtc::TypedMessageData<uint32_t>(sid); | 2187 new rtc::TypedMessageData<uint32_t>(sid); |
| 2192 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); | 2188 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); |
| 2193 } | 2189 } |
| 2194 | 2190 |
| 2195 } // namespace cricket | 2191 } // namespace cricket |
| OLD | NEW |