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

Side by Side Diff: media/mojo/interfaces/demuxer.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 unified diff | Download patch
« no previous file with comments | « media/mojo/interfaces/data_source.mojom ('k') | media/mojo/interfaces/demuxer.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/data_source.mojom ('k') | media/mojo/interfaces/demuxer.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698