Boolean publishMediaControlMessage(Object data, [Array<String> instanceIds])
Object data parameter is the transport control state payload sent to remote device(s). The
data Object has the following properties:
state– An integer constant corresponding to the following
timeindex– An integer representing the current time index in seconds.
duration– An integer representing the total duration of the current clip in seconds.
Stringthat is the total duration matching the onscreen duration display.
isControlOnScreen– A Boolean that is
trueif the overlay controls are currently onscreen, and
If the optional parameter
instanceIds is specified,
the message should only be sent to the remote devices identified. No other devices receive the message. This parameter can
String for a single
null, the message is sent to all connected remote devices that are subscribed to media transport control messages.
true if sending the message is successful. Returns
Helper method to publish a media transport control message. Send the media transport control state to subscribed (or identified) devices so they can update their media transport control displays.