You can’t use this controller until you have successfully connected to the player.
You can use ANY method from the:
gmusic.js
library –> https://github.com/gmusic-utils/gmusic.jsgmusic-ui.js
library –> https://github.com/gmusic-utils/gmusic-ui.jsAll 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]
}
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 |