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

Side by Side Diff: media/mojo/interfaces/renderer.mojom

Issue 2230583002: Add MediaPlayerRenderer/MediaPlayerRendererClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added MEDIA_EXPORT. Created 4 years, 4 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/clients/mojo_renderer.cc ('k') | media/mojo/services/media_mojo_unittest.cc » ('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/demuxer_stream.mojom"; 7 import "media/mojo/interfaces/demuxer_stream.mojom";
8 import "media/mojo/interfaces/media_types.mojom"; 8 import "media/mojo/interfaces/media_types.mojom";
9 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
10 import "url/mojo/url.mojom";
10 11
11 interface Renderer { 12 interface Renderer {
12 // Initializes the Renderer with one or both of an audio and video stream, 13 // Initializes the Renderer with one or both of an audio and video stream,
13 // executing the callback with whether the initialization succeeded. 14 // executing the callback with whether the initialization succeeded.
14 Initialize(RendererClient client, 15 Initialize(RendererClient client,
15 DemuxerStream? audio, 16 DemuxerStream? audio,
16 DemuxerStream? video) => (bool success); 17 DemuxerStream? video,
18 url.mojom.Url? url) => (bool success);
17 19
18 // Discards any buffered data, executing callback when completed. 20 // Discards any buffered data, executing callback when completed.
19 // NOTE: If an error occurs, RendererClient::OnError() can be called 21 // NOTE: If an error occurs, RendererClient::OnError() can be called
20 // before the callback is executed. 22 // before the callback is executed.
21 Flush() => (); 23 Flush() => ();
22 24
23 // Starts rendering from |time_usec|. 25 // Starts rendering from |time_usec|.
24 StartPlayingFrom(int64 time_usec); 26 StartPlayingFrom(int64 time_usec);
25 27
26 // Updates the current playback rate. The default playback rate should be 1. 28 // Updates the current playback rate. The default playback rate should be 1.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 OnVideoOpacityChange(bool opaque); 63 OnVideoOpacityChange(bool opaque);
62 64
63 // Called periodically to pass statistics to the web player. See 65 // Called periodically to pass statistics to the web player. See
64 // media_types.mojom. 66 // media_types.mojom.
65 OnStatisticsUpdate(PipelineStatistics stats); 67 OnStatisticsUpdate(PipelineStatistics stats);
66 68
67 // Called when the remote renderering service is waiting on the decryption 69 // Called when the remote renderering service is waiting on the decryption
68 // key. 70 // key.
69 OnWaitingForDecryptionKey(); 71 OnWaitingForDecryptionKey();
70 }; 72 };
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_renderer.cc ('k') | media/mojo/services/media_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698