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

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

Issue 2811103006: Media Capabilities encoding: Blink pass-thru and skeleton renderer/ impl (Closed)
Patch Set: haraken@ comments Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebMediaRecorderHandler_h 5 #ifndef WebMediaRecorderHandler_h
6 #define WebMediaRecorderHandler_h 6 #define WebMediaRecorderHandler_h
7 7
8 #include <memory>
9
8 #include "WebCommon.h" 10 #include "WebCommon.h"
9 11
12 #include "public/platform/modules/media_capabilities/WebMediaCapabilitiesInfo.h"
13
10 namespace blink { 14 namespace blink {
11 15
12 class WebMediaRecorderHandlerClient; 16 class WebMediaRecorderHandlerClient;
17 struct WebMediaConfiguration;
13 class WebMediaStream; 18 class WebMediaStream;
14 class WebString; 19 class WebString;
15 20
16 // Platform interface of a MediaRecorder. 21 // Platform interface of a MediaRecorder.
17 class BLINK_PLATFORM_EXPORT WebMediaRecorderHandler { 22 class BLINK_PLATFORM_EXPORT WebMediaRecorderHandler {
18 public: 23 public:
19 virtual ~WebMediaRecorderHandler() = default; 24 virtual ~WebMediaRecorderHandler() = default;
20 virtual bool Initialize(WebMediaRecorderHandlerClient* client, 25 virtual bool Initialize(WebMediaRecorderHandlerClient* client,
21 const WebMediaStream& stream, 26 const WebMediaStream& stream,
22 const WebString& type, 27 const WebString& type,
(...skipping 11 matching lines...) Expand all
34 // canSupportMimeType() [1] "If true is returned from this method, it only 39 // canSupportMimeType() [1] "If true is returned from this method, it only
35 // indicates that the MediaRecorder implementation is capable of recording 40 // indicates that the MediaRecorder implementation is capable of recording
36 // Blob objects for the specified MIME type. Recording may still fail if 41 // Blob objects for the specified MIME type. Recording may still fail if
37 // sufficient resources are not available to support the concrete media 42 // sufficient resources are not available to support the concrete media
38 // encoding." 43 // encoding."
39 // [1] https://w3c.github.io/mediacapture-record/MediaRecorder.html#methods 44 // [1] https://w3c.github.io/mediacapture-record/MediaRecorder.html#methods
40 virtual bool CanSupportMimeType(const WebString& type, 45 virtual bool CanSupportMimeType(const WebString& type,
41 const WebString& codecs) { 46 const WebString& codecs) {
42 return false; 47 return false;
43 } 48 }
49
50 // Implements WICG Media Capabilities encodingInfo() call for local encoding.
51 // https://wicg.github.io/media-capabilities/#media-capabilities-interface
52 virtual void EncodingInfo(
53 const WebMediaConfiguration&,
54 std::unique_ptr<blink::WebMediaCapabilitiesQueryCallbacks>) {}
44 }; 55 };
45 56
46 } // namespace blink 57 } // namespace blink
47 58
48 #endif // WebMediaRecorderHandler_h 59 #endif // WebMediaRecorderHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698