OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 WebMediaConfiguration_h | |
6 #define WebMediaConfiguration_h | |
7 | |
8 #include "base/optional.h" | |
9 #include "public/platform/modules/media_capabilities/WebAudioConfiguration.h" | |
10 #include "public/platform/modules/media_capabilities/WebVideoConfiguration.h" | |
11 | |
12 namespace blink { | |
13 | |
14 enum class MediaConfigurationType { | |
15 File, | |
16 MediaSource, | |
17 }; | |
18 | |
19 // Represents a MediaConfiguration dictionary to be used outside of Blink. | |
20 // It is created by Blink and passed to consumers that can assume that all | |
21 // required fields are properly set. | |
22 struct WebMediaConfiguration { | |
23 MediaConfigurationType type; | |
24 | |
25 base::Optional<WebAudioConfiguration> audioConfiguration; | |
chcunningham
2017/03/08 02:43:10
Do you mean for these to be optional?
mlamouri (slow - plz ping)
2017/03/10 11:26:42
Yes. Per spec, one of them must be present but vid
| |
26 base::Optional<WebVideoConfiguration> videoConfiguration; | |
27 }; | |
28 | |
29 } // namespace blink | |
30 | |
31 #endif // WebMediaConfiguration_h | |
OLD | NEW |