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

Side by Side Diff: media/mojo/interfaces/renderer.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/media_types.typemap ('k') | media/mojo/interfaces/source_buffer.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module media.mojom; 5 module media.mojom;
6 6
7 import "media/mojo/interfaces/audio_renderer_sink.mojom"; 7 import "media/mojo/interfaces/audio_renderer_sink.mojom";
8 import "media/mojo/interfaces/demuxer_stream.mojom"; 8 import "media/mojo/interfaces/demuxer_stream.mojom";
9 import "media/mojo/interfaces/media_types.mojom"; 9 import "media/mojo/interfaces/media_types.mojom";
10 import "media/mojo/interfaces/video_renderer_sink.mojom"; 10 import "media/mojo/interfaces/video_renderer_sink.mojom";
11 import "mojo/common/time.mojom"; 11 import "mojo/common/time.mojom";
12 import "mojo/common/unguessable_token.mojom"; 12 import "mojo/common/unguessable_token.mojom";
13 import "ui/gfx/geometry/mojo/geometry.mojom"; 13 import "ui/gfx/geometry/mojo/geometry.mojom";
14 import "url/mojo/url.mojom"; 14 import "url/mojo/url.mojom";
15 15
16 interface Renderer { 16 interface Renderer {
17 // Initializes the Renderer with either one or more audio / video |streams|, 17 // Initializes the Renderer with either one or more audio / video |streams|,
18 // or a |media_url| executing the callback with whether the initialization 18 // or a |media_url| executing the callback with whether the initialization
19 // succeeded. 19 // succeeded.
20 Initialize(associated RendererClient client, 20 Initialize(associated RendererClient client,
21 int32 demuxer_id,
21 array<DemuxerStream>? streams, 22 array<DemuxerStream>? streams,
22 AudioRendererSink? audio_renderer_sink, 23 AudioRendererSink? audio_renderer_sink,
23 VideoRendererSink? video_renderer_sink, 24 VideoRendererSink? video_renderer_sink,
24 url.mojom.Url? media_url, 25 url.mojom.Url? media_url,
25 url.mojom.Url? first_party_for_cookies) => (bool success); 26 url.mojom.Url? first_party_for_cookies) => (bool success);
26 27
27 // Discards any buffered data, executing callback when completed. 28 // Discards any buffered data, executing callback when completed.
28 // NOTE: If an error occurs, RendererClient::OnError() can be called 29 // NOTE: If an error occurs, RendererClient::OnError() can be called
29 // before the callback is executed. 30 // before the callback is executed.
30 Flush() => (); 31 Flush() => ();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 OnStatisticsUpdate(PipelineStatistics stats); 88 OnStatisticsUpdate(PipelineStatistics stats);
88 89
89 // Called when the remote renderering service is waiting on the decryption 90 // Called when the remote renderering service is waiting on the decryption
90 // key. 91 // key.
91 OnWaitingForDecryptionKey(); 92 OnWaitingForDecryptionKey();
92 93
93 // Executed the first time the metadata is updated, and whenever the duration 94 // Executed the first time the metadata is updated, and whenever the duration
94 // changes. 95 // changes.
95 OnDurationChange(mojo.common.mojom.TimeDelta duration); 96 OnDurationChange(mojo.common.mojom.TimeDelta duration);
96 }; 97 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/media_types.typemap ('k') | media/mojo/interfaces/source_buffer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698