| Index: media/mojo/interfaces/demuxer.mojom
|
| diff --git a/media/mojo/interfaces/demuxer.mojom b/media/mojo/interfaces/demuxer.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f40a0fbc42fa260e1a45d8088d4640bd66927a74
|
| --- /dev/null
|
| +++ b/media/mojo/interfaces/demuxer.mojom
|
| @@ -0,0 +1,55 @@
|
| +// 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/data_source.mojom";
|
| +import "media/mojo/interfaces/media_types.mojom";
|
| +import "mojo/common/time.mojom";
|
| +
|
| +[Native]
|
| +enum EmeInitDataType;
|
| +
|
| +interface Demuxer {
|
| + [Native]
|
| + enum LoadType;
|
| +
|
| + Initialize(associated DemuxerClient client, int32 demuxer_id, LoadType load_type, DataSource? data_source) => (bool success);
|
| +
|
| + StartWaitingForSeek(mojo.common.mojom.TimeDelta seek_time);
|
| +
|
| + CancelPendingSeek(mojo.common.mojom.TimeDelta seek_time);
|
| +
|
| + Seek(mojo.common.mojom.TimeDelta seek_time) => (PipelineStatus status);
|
| +
|
| + Stop();
|
| +
|
| + AbortPendingReads();
|
| +
|
| + [Sync]
|
| + GetStartTime() => (mojo.common.mojom.TimeDelta start_time);
|
| +
|
| + [Sync]
|
| + GetTimelineOffset() => (mojo.common.mojom.Time timeline_offset);
|
| +
|
| + [Sync]
|
| + GetMemoryUsage() => (int64 memory_usage);
|
| +
|
| + OnEnabledAudioTracksChanged(array<string> track_ids, mojo.common.mojom.TimeDelta current_time);
|
| +
|
| + OnSelectedVideoTrackChanged(array<string> track_ids, mojo.common.mojom.TimeDelta current_time);
|
| +};
|
| +
|
| +interface DemuxerClient {
|
| +
|
| + OnEncryptedMediaInitData(EmeInitDataType init_data_type, array<uint8> init_data);
|
| +
|
| + OnMediaTracksUpdated(MediaTracks? media_tracks);
|
| +
|
| + OnBufferedTimeRangesChanged(RangesTimeDelta? ranges);
|
| +
|
| + OnSetDuration(mojo.common.mojom.TimeDelta duration);
|
| +
|
| + OnDemuxerError(PipelineStatus error);
|
| +};
|
|
|