| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo.media; | 6 module mojo.media; |
| 7 | 7 |
| 8 import "mojo/services/media/common/interfaces/media_common.mojom"; | |
| 9 import "mojo/services/media/common/interfaces/media_metadata.mojom"; | 8 import "mojo/services/media/common/interfaces/media_metadata.mojom"; |
| 10 import "mojo/services/media/common/interfaces/media_state.mojom"; | |
| 11 import "mojo/services/media/common/interfaces/media_transport.mojom"; | 9 import "mojo/services/media/common/interfaces/media_transport.mojom"; |
| 12 import "mojo/services/media/common/interfaces/media_types.mojom"; | 10 import "mojo/services/media/common/interfaces/media_types.mojom"; |
| 13 | 11 |
| 14 // Produces media streams delivered from a specified origin. | 12 // Produces media streams delivered from a specified origin. |
| 15 interface MediaSource { | 13 interface MediaSource { |
| 16 // Special value for GetStatus version_last_seen parameter to get the current | 14 // Special value for GetStatus version_last_seen parameter to get the current |
| 17 // status immediately. | 15 // status immediately. |
| 18 const uint64 kInitialStatus = 0; | 16 const uint64 kInitialStatus = 0; |
| 19 | 17 |
| 20 // Gets the streams produced by this source. | 18 // Gets the streams produced by this source. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 50 |
| 53 // Media type of the stream after conversion. | 51 // Media type of the stream after conversion. |
| 54 MediaType media_type; | 52 MediaType media_type; |
| 55 | 53 |
| 56 // Media type of the stream before conversion (as produced by the demux). | 54 // Media type of the stream before conversion (as produced by the demux). |
| 57 MediaType original_media_type; | 55 MediaType original_media_type; |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 // Describes the media source. | 58 // Describes the media source. |
| 61 struct MediaSourceStatus { | 59 struct MediaSourceStatus { |
| 62 // Current state of the source. | |
| 63 MediaState state; | |
| 64 | |
| 65 // Describes the media. | 60 // Describes the media. |
| 66 MediaMetadata? metadata; | 61 MediaMetadata? metadata; |
| 67 }; | 62 }; |
| OLD | NEW |