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 // Expresses the overall state of a media component. | 8 // Expresses the overall state of a media component. |
9 enum MediaState { | 9 enum MediaState { |
10 // Unable to function due to error. Fault details are provided elsewhere. | 10 // Unable to function due to error. Fault details are provided elsewhere. |
11 // TODO(dalesat): Eliminate this state. | 11 // TODO(dalesat): Eliminate this state. |
12 FAULT, | 12 FAULT, |
13 | 13 |
14 // Requires preparation in order to function. | 14 // Requires preparation in order to function. |
15 UNPREPARED, | 15 UNPREPARED, |
16 | 16 |
17 // Prepared, rate zero (paused). | 17 // Prepared, rate zero (paused). |
18 PAUSED, | 18 PAUSED, |
19 | 19 |
20 // Prepared, rate non-zero. | 20 // Prepared, rate non-zero. |
21 PLAYING, | 21 PLAYING, |
22 | 22 |
23 // Stopped playing because end-of-stream was encountered. | 23 // Stopped playing because end-of-stream was encountered. |
24 ENDED | 24 ENDED, |
25 }; | 25 }; |
OLD | NEW |