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

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

Issue 684963003: Add support for external video renderers in mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_config
Patch Set: More MSVC... Created 6 years, 1 month 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/demuxer_stream.mojom ('k') | media/mojo/interfaces/media_types.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 mojo; 5 module mojo;
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 9
10 [Client=MediaRendererClient] 10 [Client=MediaRendererClient]
11 interface MediaRenderer { 11 interface MediaRenderer {
12 // Initializes the Renderer with |stream|, calling back upon completion. 12 // Initializes the Renderer with one or both of an audio and video stream,
13 // calling back upon completion.
13 // NOTE: If an error occurs, MediaRendererClient::OnError() will be called 14 // NOTE: If an error occurs, MediaRendererClient::OnError() will be called
14 // before the callback is executed. 15 // before the callback is executed.
15 Initialize(DemuxerStream stream) => (); 16 Initialize(DemuxerStream? audio, DemuxerStream? video) => ();
16 17
17 // Discards any buffered data, executing callback when completed. 18 // Discards any buffered data, executing callback when completed.
18 // NOTE: If an error occurs, MediaRendererClient::OnError() can be called 19 // NOTE: If an error occurs, MediaRendererClient::OnError() can be called
19 // before the callback is executed. 20 // before the callback is executed.
20 Flush() => (); 21 Flush() => ();
21 22
22 // Starts rendering from |time_usec|. 23 // Starts rendering from |time_usec|.
23 StartPlayingFrom(int64 time_usec); 24 StartPlayingFrom(int64 time_usec);
24 25
25 // Updates the current playback rate. The default playback rate should be 1. 26 // Updates the current playback rate. The default playback rate should be 1.
(...skipping 16 matching lines...) Expand all
42 OnBufferingStateChange(BufferingState state); 43 OnBufferingStateChange(BufferingState state);
43 44
44 // Executed when rendering has reached the end of stream. 45 // Executed when rendering has reached the end of stream.
45 OnEnded(); 46 OnEnded();
46 47
47 // Executed if any error was encountered during decode or rendering. If 48 // Executed if any error was encountered during decode or rendering. If
48 // this error happens during an operation that has a completion callback, 49 // this error happens during an operation that has a completion callback,
49 // OnError() will be called before firing the completion callback. 50 // OnError() will be called before firing the completion callback.
50 OnError(); 51 OnError();
51 }; 52 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/demuxer_stream.mojom ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698