Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: third_party/WebKit/public/platform/WebMediaElementSource.h

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile issue Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698