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