OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time/time.h" | |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "content/public/renderer/media_stream_sink.h" | 13 #include "content/public/renderer/media_stream_sink.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 class VideoCaptureFormat; | 16 class VideoCaptureFormat; |
16 class VideoFrame; | 17 class VideoFrame; |
17 } | 18 } |
18 | 19 |
19 namespace blink { | 20 namespace blink { |
20 class WebMediaStreamTrack; | 21 class WebMediaStreamTrack; |
21 } | 22 } |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 typedef base::Callback< | 26 typedef base::Callback< |
26 void(const scoped_refptr<media::VideoFrame>&, | 27 void(const scoped_refptr<media::VideoFrame>&, |
27 const media::VideoCaptureFormat&)> | 28 const media::VideoCaptureFormat&, |
29 const base::TimeTicks& start_ticks)> | |
Ami GONE FROM CHROMIUM
2014/05/19 19:01:46
doco this is the stream start time.
miu
2014/05/19 21:59:37
Throughout this patch: Why must we pass this value
| |
28 VideoSinkDeliverFrameCB; | 30 VideoSinkDeliverFrameCB; |
Ami GONE FROM CHROMIUM
2014/05/19 22:14:16
Is it easy to see why VideoSinkDeliverFrameCB and
Alpha Left Google
2014/05/31 00:34:50
I have moved the VideoCaptureDeliverFrameCB to thi
| |
29 | 31 |
30 // MediaStreamVideoSink is an interface used for receiving video frames from a | 32 // MediaStreamVideoSink is an interface used for receiving video frames from a |
31 // Video Stream Track or a Video Source. | 33 // Video Stream Track or a Video Source. |
32 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html | 34 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html |
33 // All methods calls will be done from the main render thread. | 35 // All methods calls will be done from the main render thread. |
34 class CONTENT_EXPORT MediaStreamVideoSink : public MediaStreamSink { | 36 class CONTENT_EXPORT MediaStreamVideoSink : public MediaStreamSink { |
35 public: | 37 public: |
36 // An implementation of MediaStreamVideoSink should call AddToVideoTrack when | 38 // An implementation of MediaStreamVideoSink should call AddToVideoTrack when |
37 // it is ready to receive data from a video track. Before the implementation | 39 // it is ready to receive data from a video track. Before the implementation |
38 // is destroyed, RemoveFromVideoTrack must be called. | 40 // is destroyed, RemoveFromVideoTrack must be called. |
(...skipping 11 matching lines...) Expand all Loading... | |
50 const blink::WebMediaStreamTrack& track); | 52 const blink::WebMediaStreamTrack& track); |
51 | 53 |
52 protected: | 54 protected: |
53 virtual ~MediaStreamVideoSink() {} | 55 virtual ~MediaStreamVideoSink() {} |
54 }; | 56 }; |
55 | 57 |
56 | 58 |
57 } // namespace content | 59 } // namespace content |
58 | 60 |
59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 61 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
OLD | NEW |