You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Andolamin the issue is solved for the "second callback return" but subscribePlayState doesn't work.
Needs small changes in ConnectSDK.js:
In MediaControlWrapper create class declaration "_sendCommand" should be like this:
_sendCommand: function (command, params, subscribe) {
params = params || {};
params.objectId = this._objectId;
subscribe = subscribe || false;
return this._device._sendCommand("mediaControl", command, params, subscribe);
},
.... so in the command:
subscribePlayState: function () {
return this._sendCommand("subscribePlayState", {}, true);
}
In registerDeviceInterface for "mediaControl" needs subscribe parameter too:
subscribePlayState: {
subscribe: true
}
When subscribe volume or playstate second callback return "Attempted to send a second callback for ID: ConnectSDKXXXXXXX"
Related: http://stackoverflow.com/a/20938905
The text was updated successfully, but these errors were encountered: