OLD | NEW |
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 import "media/mojo/interfaces/media_types.mojom" | 5 import "media/mojo/interfaces/media_types.mojom"; |
6 | 6 |
7 module mojo { | 7 module mojo { |
8 | 8 |
9 // DemuxerStream is modeled after media::DemuxerStream using mojo in order to | 9 // DemuxerStream is modeled after media::DemuxerStream using mojo in order to |
10 // enable proxying between a media::Pipeline and media::Renderer living in two | 10 // enable proxying between a media::Pipeline and media::Renderer living in two |
11 // different applications. | 11 // different applications. |
12 [Client=DemuxerStreamClient] | 12 [Client=DemuxerStreamClient] |
13 interface DemuxerStream { | 13 interface DemuxerStream { |
14 // See media::DemuxerStream for descriptions. | 14 // See media::DemuxerStream for descriptions. |
15 enum Type { | 15 enum Type { |
(...skipping 29 matching lines...) Expand all Loading... |
45 // client needs to use DemuxerStream::Read() directly to obtain buffers. | 45 // client needs to use DemuxerStream::Read() directly to obtain buffers. |
46 OnStreamReady(handle<data_pipe_consumer>? pipe); | 46 OnStreamReady(handle<data_pipe_consumer>? pipe); |
47 | 47 |
48 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream | 48 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream |
49 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either | 49 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either |
50 // in a Read() callback or over the DataPipe). | 50 // in a Read() callback or over the DataPipe). |
51 OnAudioDecoderConfigChanged(AudioDecoderConfig config); | 51 OnAudioDecoderConfigChanged(AudioDecoderConfig config); |
52 }; | 52 }; |
53 | 53 |
54 } // module mojo | 54 } // module mojo |
OLD | NEW |