Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: remoting/protocol/webrtc_video_stream.cc

Issue 1510343002: Add WebrtcConnectionToClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webrtc_thread
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/webrtc_video_stream.h ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_video_stream.h ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698