Instruction set reference
HIPE_OP_AUDIOVIDEO_STATE
When sent from the client to the server, modifies the playback state of an <audio> or <video> element. When received from the server, this is sent in response to a HIPE_OP_GET_AUDIOVIDEO_STATE request and reflects the current state of the media element.
- location: The <audio> or <video> element being controlled or queried.
- arg[0]: Setting: the desired playback position, in seconds. Receiving: the current playback position and the total duration, in seconds, separated by a comma (e.g. "12.5,90").
- arg[1]: The playback speed, where 1 is normal speed.
- arg[2]: The playing/paused status: "1" for playing, "0" for paused.
- arg[3]: The playback volume, as a fraction of 1.0.
Notes
When sending this instruction to set the playback state, any argument that isn't being changed may be left empty — only the arguments you provide will be applied.
