Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [DartPackage="mojo_services"] | |
| 6 module mojo.media; | |
| 7 | |
| 8 // Expresses the overall state of a media component. | |
|
jeffbrown
2015/12/10 20:00:59
Can we eliminate some of these states? My experie
dalesat
2015/12/10 22:33:39
I'd like to keep FAULT for the time being. I have
| |
| 9 enum MediaState { | |
| 10 // Unable to function due to error. Fault details are provided elsewhere. | |
| 11 FAULT, | |
| 12 | |
| 13 // Intentionally disabled. | |
| 14 DISABLED, | |
| 15 | |
| 16 // Requires preparation in order to function. | |
| 17 UNPREPARED, | |
| 18 | |
| 19 // Preparation underway. | |
| 20 PREPARING, | |
| 21 | |
| 22 // Fully prepared, rate zero (paused). | |
| 23 PREPARED, | |
|
jeffbrown
2015/12/10 20:00:59
How about calling this PAUSED?
dalesat
2015/12/10 22:33:39
Done.
| |
| 24 | |
| 25 // Fully prepared, rate non-zero. | |
| 26 PLAYING, | |
| 27 | |
| 28 // Stopped playing because end-of-stream was encountered. | |
| 29 ENDED | |
| 30 }; | |
| OLD | NEW |