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

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

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: peter@ comments. Removed BlobEvent, moved MediaRecorder* to Source/modules/mediarecorder Created 5 years, 3 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 2015 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 WebMediaRecorderHandler_h
6 #define WebMediaRecorderHandler_h
7
8 #include "WebCommon.h"
9
10 namespace blink {
11
12 class WebMediaRecorderHandlerClient;
13 class WebMediaStream;
14 class WebString;
15
16 // Platform interface of a MediaRecorder.
17 class BLINK_PLATFORM_EXPORT WebMediaRecorderHandler {
18 public:
Peter Beverloo 2015/09/01 17:17:12 All these methods, aside from the destructor, can
mcasas 2015/09/02 03:10:18 Absolutely. esprehn@ suggested a few PSs ago to pr
19 virtual ~WebMediaRecorderHandler() = default;
20 virtual bool initialize(WebMediaRecorderHandlerClient* client, const WebMedi aStream& stream, const WebString& mimeType) { return false; }
21 virtual bool start() { return false; }
22 virtual bool start(int timeslice) { return false; }
23 virtual void stop() {}
24 virtual void pause() {}
25 virtual void resume() {}
26
27 // MediaRecorder API canRecordMimeType() is a tristate in which the returned
28 // value 'probably' means that "the user agent is confident that mimeType
29 // represents a type that it can record" [1], but a number of reasons might
30 // prevent a firm answer at this stage, so a boolean is a better option,
31 // because "Implementors are encouraged to return "maybe" unless the type
32 // can be confidently established as being supported or not." [1].
33 // [1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods
Peter Beverloo 2015/09/01 17:17:12 micro nit: https://
mcasas 2015/09/02 03:10:18 Done.
34 virtual bool canSupportMimeType(const WebString& mimeType) { return false; }
35 };
36
37 } // namespace blink
38
39 #endif // WebMediaRecorderHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698