Holds the play state for the specified context
We recommend that you read this object in delta mode to ensure that you get all the errors and warnings that may occur.
For details on delta mode, see "Subscribing" in the Persistent Publish/Subscribe Developer's Guide.
Attribute | Description |
---|---|
error | Most recent error code (deleted when playback is restarted). |
error_pos | Play position when the error occurred. |
input | Input URL (deleted when input is detached). |
speed | Current play speed, in units of 1/1000 of normal speed. |
state | Can be one of these values:
|
warning | Most recent warning (deleted when playback is stopped). |
warning_pos | Play position when the warning occurred. |
Condition: | The state attribute is set to: | Other attributes changed: |
---|---|---|
No input is attached | idle | none |
An input is attached | stopped (from idle) | input is set to input's URL |
Playback begins | playing (from stopped) | error and error_pos are deleted |
End of media is reached | stopped (from playing) | error is set to MMR_ERROR_NONE (note that no error code is set if playback is stopped by a function call) |
Warning occurs (note that warnings don't stop playback) | playing | warning and warning_pos are set |
Error occurs (note that errors do stop playback) | stopped | warning and warning_pos are deleted; error and error_pos are set |