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 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | |
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/memory/ref_counted.h" | |
10 #include "content/common/content_export.h" | |
11 #include "content/public/renderer/media_stream_sink.h" | |
12 | |
13 namespace media { | |
14 class VideoFrame; | |
15 } | |
16 | |
17 namespace blink { | |
18 class WebMediaStreamTrack; | |
19 } | |
20 | |
21 namespace content { | |
22 | |
23 class CONTENT_EXPORT MediaStreamVideoSink : public MediaStreamSink { | |
no longer working on chromium
2013/11/27 10:12:42
Just an idea.
the sink interfaces for audio and vi
perkj_chrome
2013/11/27 15:29:13
Discussed off line.
Added AddToVideoTrack and Rem
| |
24 public: | |
25 virtual void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame) = 0; | |
26 | |
27 // An implementation of MediaStreamVideoSink should call AddToTrack when it | |
28 // is ready to receive data from a track. Before the implementation is | |
29 // destroyed, RemoveFromTrack must be called. | |
30 static void AddToTrack(MediaStreamVideoSink* sink, | |
no longer working on chromium
2013/11/27 10:12:42
these two interface should not be in the MediaStre
perkj_chrome
2013/11/27 15:29:13
Done.
| |
31 const blink::WebMediaStreamTrack& track); | |
32 static void RemoveFromTrack(MediaStreamVideoSink* sink, | |
33 const blink::WebMediaStreamTrack& track); | |
34 | |
35 protected: | |
36 virtual ~MediaStreamVideoSink() {} | |
37 }; | |
38 | |
39 | |
40 | |
41 | |
42 } // namespace content | |
43 | |
44 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | |
OLD | NEW |