Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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 "content/renderer/media/media_stream_video_source.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "content/public/renderer/media_stream_video_sink.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 void MediaStreamVideoSource::AddTrack( | |
| 13 const blink::WebMediaStreamTrack& track, | |
| 14 const blink::WebMediaConstraints& constrains) { | |
|
Jói
2013/12/19 12:06:23
constrains -> constraints
Ronghua Wu (Left Chromium)
2013/12/19 20:04:16
Done.
| |
| 15 // TODO(ronghuawu): Put |track| in the registered tracks list. Will later | |
| 16 // deliver frames to it according to |constrains|. | |
|
Jói
2013/12/19 12:06:23
|constrains| -> |constraints|
Ronghua Wu (Left Chromium)
2013/12/19 20:04:16
Done.
| |
| 17 } | |
| 18 | |
| 19 void MediaStreamVideoSource::RemoveTrack( | |
| 20 const blink::WebMediaStreamTrack& track) { | |
| 21 // TODO(ronghuawu): Remove |track| from the list, i.e. will stop delivering | |
| 22 // frame to |track|. | |
| 23 } | |
| 24 | |
| 25 void MediaStreamVideoSource::PutVideoFrame( | |
| 26 const scoped_refptr<media::VideoFrame>& frame) { | |
| 27 // TODO(ronghuawu): Deliver |frame| to all the registered tracks. | |
| 28 } | |
| 29 | |
| 30 MediaStreamVideoSource::~MediaStreamVideoSource() { | |
| 31 } | |
| 32 | |
| 33 } // namespace content | |
| OLD | NEW |