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

Playing Spotify on the web does not work #795

Open
gcampax opened this issue Sep 30, 2021 · 0 comments
Open

Playing Spotify on the web does not work #795

gcampax opened this issue Sep 30, 2021 · 0 comments
Labels
bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P2 We need to fix it (backlog)

Comments

@gcampax
Copy link
Contributor

gcampax commented Sep 30, 2021

Failed to play Spotify CustomError: No player is available to complete this request
    at AudioController.requestAudio (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/audio/controller.js:181:19)
    at SpotifyDevice.player_play_helper (/srv/thingengine/b428c7ce0d134f04/cache/device-classes/com.spotify/index.js:1210:37)
    at SpotifyDevice._flushPlay (/srv/thingengine/b428c7ce0d134f04/cache/device-classes/com.spotify/index.js:1308:14)
    at /srv/thingengine/b428c7ce0d134f04/cache/device-classes/com.spotify/index.js:993:28
    at ExecWrapper.exitProcedure (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/engine/apps/exec_wrapper.js:191:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async eval (eval at compile (/opt/almond-cloud/node_modules/thingtalk/dist/compiler/jsir.js:786:46), <anonymous>:67:5)
    at async RuleExecutor._ruleThread (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/engine/apps/rule_executor.js:61:13) {
  code: 'unsupported'
}

This is because the command comes from a conversation that has no AudioPlayer support in the AudioController. In that case, we should track the audio state using the old logic (calling only into the interface), knowing that Spotify will play out of band.

@gcampax gcampax added bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P2 We need to fix it (backlog) labels Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P2 We need to fix it (backlog)
Projects
None yet
Development

No branches or pull requests

1 participant