OLD | NEW |
| (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 content.mojom; | |
6 | |
7 import "media/mojo/interfaces/audio_output_stream.mojom"; | |
8 import "media/mojo/interfaces/audio_parameters.mojom"; | |
9 import "media/mojo/interfaces/media_types.mojom"; | |
10 | |
11 // This interface is used to create output streams. The client supplies a | |
12 // request for a stream provider, and then supplies the desired audio | |
13 // parameters to that to create the stream. | |
14 interface RendererAudioOutputStreamFactory { | |
15 // Used to request a device. The AudioOutputStreamProviderRequest will be | |
16 // bound to an AudioOutputStreamProvider implementation or closed | |
17 // (in case of an error). | |
18 RequestDeviceAuthorization( | |
19 media.mojom.AudioOutputStreamProvider& stream_provider_request, | |
20 int64 session_id, | |
21 string device_id) => | |
22 (media.mojom.OutputDeviceStatus state, | |
23 media.mojom.AudioParameters output_params, | |
24 string matched_device_id); | |
25 }; | |
OLD | NEW |