| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 module media.mojom; |
| 6 |
| 7 import "media/mojo/interfaces/media_types.mojom"; |
| 8 import "mojo/common/time.mojom"; |
| 9 |
| 10 interface SourceBuffer { |
| 11 [Native] |
| 12 enum Status; |
| 13 |
| 14 Initialize(associated SourceBufferClient client, int32 demuxer_id, handle<data
_pipe_consumer> pipe); |
| 15 |
| 16 [Sync] |
| 17 AddId(string source_id, string type, string codecs) => (Status status); |
| 18 |
| 19 [Sync] |
| 20 AppendData(string id, |
| 21 DataBuffer? buffer, |
| 22 mojo.common.mojom.TimeDelta append_window_start, |
| 23 mojo.common.mojom.TimeDelta append_window_end) |
| 24 => (bool success, mojo.common.mojom.TimeDelta timestamp_offset); |
| 25 |
| 26 SetTracksWatcher(string id); |
| 27 |
| 28 RemoveId(string id); |
| 29 |
| 30 GetDuration() => (double duration); |
| 31 |
| 32 GetDuration_Locked() => (double duration); |
| 33 |
| 34 SetDuration(double duration); |
| 35 |
| 36 [Sync] |
| 37 GetBufferedRanges(string id) => (RangesTimeDelta? ranges); |
| 38 |
| 39 [Sync] |
| 40 GetHighestPresentationTimestamp(string id) => (mojo.common.mojom.TimeDelta tim
estamp); |
| 41 |
| 42 [Sync] |
| 43 ResetParserState(string id, |
| 44 mojo.common.mojom.TimeDelta append_window_start, |
| 45 mojo.common.mojom.TimeDelta append_window_end) |
| 46 => (mojo.common.mojom.TimeDelta timestamp_offset); |
| 47 |
| 48 Remove(string id, |
| 49 mojo.common.mojom.TimeDelta start, |
| 50 mojo.common.mojom.TimeDelta end); |
| 51 |
| 52 [Sync] |
| 53 EvictCodedFrames(string id, |
| 54 mojo.common.mojom.TimeDelta current_media_time, |
| 55 uint64 new_data_size) |
| 56 => (bool success); |
| 57 |
| 58 OnMemoryPressure(mojo.common.mojom.TimeDelta currentMediaTime, |
| 59 MemoryPressureLevel memory_pressure_level, |
| 60 bool force_instant_gc); |
| 61 |
| 62 [Sync] |
| 63 IsParsingMediaSegment(string id) => (bool is_parsing); |
| 64 SetSequenceMode(string id, bool sequence_mode); |
| 65 SetGroupStartTimestampIfInSequenceMode(string id, |
| 66 mojo.common.mojom.TimeDelta timestamp_o
ffset); |
| 67 MarkEndOfStream(PipelineStatus status); |
| 68 UnmarkEndOfStream(); |
| 69 Shutdown(); |
| 70 }; |
| 71 |
| 72 interface SourceBufferClient { |
| 73 OnTracksWatcher(string id, MediaTracks? media_tracks); |
| 74 }; |
| OLD | NEW |