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

Unified Diff: media/blink/websourcebuffer_impl.h

Issue 547223003: MSE: Notify Blink SourceBuffer on init segment received (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Plan is to depend on blink-side CL landing first (https://codereview.chromium.org/55294… Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/blink/websourcebuffer_impl.cc » ('j') | media/filters/chunk_demuxer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/websourcebuffer_impl.h
diff --git a/media/blink/websourcebuffer_impl.h b/media/blink/websourcebuffer_impl.h
index e9381788adb30072419ce930c434b264e59d6db4..96e37b609541715270177231362e8e975b3bb7b2 100644
--- a/media/blink/websourcebuffer_impl.h
+++ b/media/blink/websourcebuffer_impl.h
@@ -21,6 +21,7 @@ class WebSourceBufferImpl : public blink::WebSourceBuffer {
virtual ~WebSourceBufferImpl();
// blink::WebSourceBuffer implementation.
+ virtual void setClient(blink::WebSourceBufferClient* client);
virtual bool setMode(AppendMode mode);
virtual blink::WebTimeRanges buffered();
virtual void append(
@@ -35,9 +36,15 @@ class WebSourceBufferImpl : public blink::WebSourceBuffer {
virtual void removedFromMediaSource();
private:
+ // Demuxer callback handler to process an initialization segment received
+ // during an append() call.
+ void InitSegmentReceived();
+
std::string id_;
ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
+ blink::WebSourceBufferClient* client_;
+
// Controls the offset applied to timestamps when processing appended media
// segments. It is initially 0, which indicates that no offset is being
// applied. Both setTimestampOffset() and append() may update this value.
« no previous file with comments | « no previous file | media/blink/websourcebuffer_impl.cc » ('j') | media/filters/chunk_demuxer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698