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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp

Issue 2610163006: MediaRecorder: support |timecode| and remove |m_ignoreMutedMedia|. (Closed)
Patch Set: Rebase video_capture_device_client.cc Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp b/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
index 3f44292fafef4b48eac267c82ec3423e2bd0065e..9d25e197c2bac23d7d48f69cb0135ce94ac6f1d2 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
@@ -5,6 +5,7 @@
#include "modules/mediarecorder/BlobEvent.h"
#include "modules/mediarecorder/BlobEventInit.h"
+#include "wtf/dtoa/double.h"
namespace blink {
@@ -15,8 +16,10 @@ BlobEvent* BlobEvent::create(const AtomicString& type,
}
// static
-BlobEvent* BlobEvent::create(const AtomicString& type, Blob* blob) {
- return new BlobEvent(type, blob);
+BlobEvent* BlobEvent::create(const AtomicString& type,
+ Blob* blob,
+ double timecode) {
+ return new BlobEvent(type, blob, timecode);
}
const AtomicString& BlobEvent::interfaceName() const {
@@ -29,10 +32,15 @@ DEFINE_TRACE(BlobEvent) {
}
BlobEvent::BlobEvent(const AtomicString& type, const BlobEventInit& initializer)
- : Event(type, initializer), m_blob(initializer.data()) {}
+ : Event(type, initializer),
+ m_blob(initializer.data()),
+ m_timecode(initializer.hasTimecode()
+ ? initializer.timecode()
+ : WTF::double_conversion::Double::NaN()) {}
-BlobEvent::BlobEvent(const AtomicString& type, Blob* blob)
+BlobEvent::BlobEvent(const AtomicString& type, Blob* blob, double timecode)
: Event(type, false /* canBubble */, false /* cancelable */),
- m_blob(blob) {}
+ m_blob(blob),
+ m_timecode(timecode) {}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698