Documentation

WebSocket API - Controlling

The process for controlling the player remotely

Forenote

You can’t use this controller until you have successfully connected to the player.

Controlling GPMDP

You can use ANY method from the:

All you need to do is send a message to the WebSocket with a stringified JSON object in the form:

{
  "namespace": "playback",
  "method": "setPlaybackTime",
  "arguments": [10000]
}
Additional Commands

GPMDP have also “extended” the standard gmusic.js library with some extra namespaces.

Namespace Method Arguments
search performSearchAndPlayResult Two Arguments
- A searchText string returned from the search namespace.
- A result object returned from the search namespace