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

Unified Diff: media/mojo/interfaces/source_buffer.mojom

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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 | « media/mojo/interfaces/renderer.mojom ('k') | media/mojo/interfaces/source_buffer.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/source_buffer.mojom
diff --git a/media/mojo/interfaces/source_buffer.mojom b/media/mojo/interfaces/source_buffer.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..19e2cb8f973886245b790d24ab5f432162099457
--- /dev/null
+++ b/media/mojo/interfaces/source_buffer.mojom
@@ -0,0 +1,74 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module media.mojom;
+
+import "media/mojo/interfaces/media_types.mojom";
+import "mojo/common/time.mojom";
+
+interface SourceBuffer {
+ [Native]
+ enum Status;
+
+ Initialize(associated SourceBufferClient client, int32 demuxer_id, handle<data_pipe_consumer> pipe);
+
+ [Sync]
+ AddId(string source_id, string type, string codecs) => (Status status);
+
+ [Sync]
+ AppendData(string id,
+ DataBuffer? buffer,
+ mojo.common.mojom.TimeDelta append_window_start,
+ mojo.common.mojom.TimeDelta append_window_end)
+ => (bool success, mojo.common.mojom.TimeDelta timestamp_offset);
+
+ SetTracksWatcher(string id);
+
+ RemoveId(string id);
+
+ GetDuration() => (double duration);
+
+ GetDuration_Locked() => (double duration);
+
+ SetDuration(double duration);
+
+ [Sync]
+ GetBufferedRanges(string id) => (RangesTimeDelta? ranges);
+
+ [Sync]
+ GetHighestPresentationTimestamp(string id) => (mojo.common.mojom.TimeDelta timestamp);
+
+ [Sync]
+ ResetParserState(string id,
+ mojo.common.mojom.TimeDelta append_window_start,
+ mojo.common.mojom.TimeDelta append_window_end)
+ => (mojo.common.mojom.TimeDelta timestamp_offset);
+
+ Remove(string id,
+ mojo.common.mojom.TimeDelta start,
+ mojo.common.mojom.TimeDelta end);
+
+ [Sync]
+ EvictCodedFrames(string id,
+ mojo.common.mojom.TimeDelta current_media_time,
+ uint64 new_data_size)
+ => (bool success);
+
+ OnMemoryPressure(mojo.common.mojom.TimeDelta currentMediaTime,
+ MemoryPressureLevel memory_pressure_level,
+ bool force_instant_gc);
+
+ [Sync]
+ IsParsingMediaSegment(string id) => (bool is_parsing);
+ SetSequenceMode(string id, bool sequence_mode);
+ SetGroupStartTimestampIfInSequenceMode(string id,
+ mojo.common.mojom.TimeDelta timestamp_offset);
+ MarkEndOfStream(PipelineStatus status);
+ UnmarkEndOfStream();
+ Shutdown();
+};
+
+interface SourceBufferClient {
+ OnTracksWatcher(string id, MediaTracks? media_tracks);
+};
« no previous file with comments | « media/mojo/interfaces/renderer.mojom ('k') | media/mojo/interfaces/source_buffer.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698