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_MEDIA_TRACK_SINK_H_ | |
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_MEDIA_TRACK_SINK_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace blink { | |
12 class WebMediaStreamTrack; | |
13 } | |
14 | |
15 namespace content { | |
16 | |
17 class CONTENT_EXPORT MediaTrackSink { | |
Jói
2013/11/25 14:06:55
We might want to name this just MediaSink (and Vid
perkj_chrome
2013/11/26 09:16:38
Do we need anything to say that this is related to
| |
18 public: | |
19 | |
20 // TODO(perkj): Can we use blink::WebMediaStreamSource::ReadyState somehow | |
Jói
2013/11/25 14:06:55
We can include blink types in content/public/ (see
perkj_chrome
2013/11/26 09:16:38
Done.
| |
21 // and skip ReadyState here and below? | |
22 enum ReadyState { | |
23 kLive = 0, | |
24 kMuted = 1, | |
25 kEnded = 2 | |
26 }; | |
27 //virtual void OnEnabledChanged(bool enabled) {}; | |
28 virtual void OnSourceChangedState(ReadyState state) {}; | |
no longer working on chromium
2013/11/25 13:55:07
Do the sink need to know the source? or only track
perkj_chrome
2013/11/26 09:16:38
It will problably (as in this cl) need to know the
| |
29 | |
30 ReadyState GetSourceState(const blink::WebMediaStreamTrack& track) const; | |
Jói
2013/11/25 14:06:55
Once you create the sink, it presumably could stor
perkj_chrome
2013/11/26 09:16:38
We don't need this if we can use the blink readySt
| |
31 | |
32 protected: | |
33 virtual ~MediaTrackSink() {} | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_MEDIA_TRACK_SINK_H_ | |
OLD | NEW |