OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 WebMediaElementSource_h | |
6 #define WebMediaElementSource_h | |
7 | |
8 #include "WebCommon.h" | |
9 #include "WebMediaStream.h" | |
10 #include "WebURL.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class BLINK_PLATFORM_EXPORT WebMediaElementSource { | |
15 public: | |
16 WebMediaElementSource(); | |
17 explicit WebMediaElementSource(const WebURL&); | |
18 explicit WebMediaElementSource(const WebMediaStream&); | |
19 ~WebMediaElementSource(); | |
20 | |
21 bool isEmpty() const; | |
22 | |
23 bool isURL() const; | |
24 WebURL getAsURL() const; | |
25 | |
26 bool isMediaProviderObject() const; | |
27 | |
28 bool isMediaStream() const; | |
29 WebMediaStream getAsMediaStream() const; | |
30 | |
31 private: | |
32 WebURL m_url; | |
33 WebMediaStream m_mediaStream; | |
philipj_slow
2016/03/29 13:43:19
Is it possible to get the original MediaStream bac
Guido Urdaneta
2016/03/29 14:48:11
I just noticed it is possible to get the MediaStre
| |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // WebMediaElementSource_h | |
OLD | NEW |