OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "remoting/protocol/webrtc_video_stream.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
| 9 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" |
| 10 #include "third_party/libjingle/source/talk/app/webrtc/videosourceinterface.h" |
| 11 |
| 12 namespace remoting { |
| 13 namespace protocol { |
| 14 |
| 15 WebrtcVideoStream::WebrtcVideoStream( |
| 16 rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection, |
| 17 rtc::scoped_refptr<webrtc::MediaStreamInterface> stream) |
| 18 : connection_(connection), stream_(stream) {} |
| 19 |
| 20 WebrtcVideoStream::~WebrtcVideoStream() { |
| 21 for (const auto& track : stream_->GetVideoTracks()) { |
| 22 track->GetSource()->Stop(); |
| 23 stream_->RemoveTrack(track.get()); |
| 24 } |
| 25 connection_->RemoveStream(stream_.get()); |
| 26 } |
| 27 |
| 28 void WebrtcVideoStream::Pause(bool pause) { |
| 29 NOTIMPLEMENTED(); |
| 30 } |
| 31 |
| 32 void WebrtcVideoStream::OnInputEventReceived(int64_t event_timestamp) { |
| 33 NOTIMPLEMENTED(); |
| 34 } |
| 35 |
| 36 void WebrtcVideoStream::SetLosslessEncode(bool want_lossless) { |
| 37 NOTIMPLEMENTED(); |
| 38 } |
| 39 |
| 40 void WebrtcVideoStream::SetLosslessColor(bool want_lossless) { |
| 41 NOTIMPLEMENTED(); |
| 42 } |
| 43 |
| 44 void WebrtcVideoStream::SetSizeCallback(const SizeCallback& size_callback) { |
| 45 NOTIMPLEMENTED(); |
| 46 } |
| 47 |
| 48 } // namespace protocol |
| 49 } // namespace remoting |
OLD | NEW |