Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to send a second callback for ID: ConnectSDKXXXXXXX #11

Open
Vaporexpress opened this issue Jan 22, 2015 · 2 comments
Open

Attempted to send a second callback for ID: ConnectSDKXXXXXXX #11

Vaporexpress opened this issue Jan 22, 2015 · 2 comments
Labels

Comments

@Vaporexpress
Copy link

When subscribe volume or playstate second callback return "Attempted to send a second callback for ID: ConnectSDKXXXXXXX"

Related: http://stackoverflow.com/a/20938905

@Andolamin
Copy link
Contributor

@Vaporexpress This issue is fixed in the 1.6.0 plugin release

@Andolamin Andolamin added the bug label Sep 9, 2015
@Vaporexpress
Copy link
Author

@Andolamin the issue is solved for the "second callback return" but subscribePlayState doesn't work.
Needs small changes in ConnectSDK.js:

  1. 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);
    }
  2. In registerDeviceInterface for "mediaControl" needs subscribe parameter too:
    subscribePlayState: {
    subscribe: true
    }

Great plugin, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants