| 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/data_source.mojom"; |
| 8 import "media/mojo/interfaces/media_types.mojom"; |
| 9 import "mojo/common/time.mojom"; |
| 10 |
| 11 [Native] |
| 12 enum EmeInitDataType; |
| 13 |
| 14 interface Demuxer { |
| 15 [Native] |
| 16 enum LoadType; |
| 17 |
| 18 Initialize(associated DemuxerClient client, int32 demuxer_id, LoadType load_ty
pe, DataSource? data_source) => (bool success); |
| 19 |
| 20 StartWaitingForSeek(mojo.common.mojom.TimeDelta seek_time); |
| 21 |
| 22 CancelPendingSeek(mojo.common.mojom.TimeDelta seek_time); |
| 23 |
| 24 Seek(mojo.common.mojom.TimeDelta seek_time) => (PipelineStatus status); |
| 25 |
| 26 Stop(); |
| 27 |
| 28 AbortPendingReads(); |
| 29 |
| 30 [Sync] |
| 31 GetStartTime() => (mojo.common.mojom.TimeDelta start_time); |
| 32 |
| 33 [Sync] |
| 34 GetTimelineOffset() => (mojo.common.mojom.Time timeline_offset); |
| 35 |
| 36 [Sync] |
| 37 GetMemoryUsage() => (int64 memory_usage); |
| 38 |
| 39 OnEnabledAudioTracksChanged(array<string> track_ids, mojo.common.mojom.TimeDel
ta current_time); |
| 40 |
| 41 OnSelectedVideoTrackChanged(array<string> track_ids, mojo.common.mojom.TimeDel
ta current_time); |
| 42 }; |
| 43 |
| 44 interface DemuxerClient { |
| 45 |
| 46 OnEncryptedMediaInitData(EmeInitDataType init_data_type, array<uint8> init_dat
a); |
| 47 |
| 48 OnMediaTracksUpdated(MediaTracks? media_tracks); |
| 49 |
| 50 OnBufferedTimeRangesChanged(RangesTimeDelta? ranges); |
| 51 |
| 52 OnSetDuration(mojo.common.mojom.TimeDelta duration); |
| 53 |
| 54 OnDemuxerError(PipelineStatus error); |
| 55 }; |
| OLD | NEW |