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

handle Alexa PlaybackFailed Request #213

Closed
hyzhak opened this issue Apr 13, 2018 · 0 comments
Closed

handle Alexa PlaybackFailed Request #213

hyzhak opened this issue Apr 13, 2018 · 0 comments
Assignees
Labels
alexa Support Amazon Alexa platform enhancement New feature or request

Comments

@hyzhak
Copy link
Member

hyzhak commented Apr 13, 2018

log failed track and play next one.

Examples of response:

{
  "version": "1.0",
  "context": {
    "AudioPlayer": {
      "offsetInMilliseconds": 238426,
      "token": "https://archive.org/download/nms2014-09-06.mtx.flac16/Nms2014-09-06D1t02.mp3",
      "playerActivity": "PLAYING"
    },
    "Display": {
      "token": ""
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.da879190-edd7-48b5-8b24-eca5254f58cf"
      },
      "user": {
        "userId": "amzn1.ask.account....."
      },
      "device": {
        "deviceId": "amzn1.ask.device.....",
        "supportedInterfaces": {
          "AudioPlayer": {},
          "Display": {
            "templateVersion": "1.0",
            "markupVersion": "1.0"
          },
          "VideoApp": {}
        }
      },
      "apiEndpoint": "https://api.amazonalexa.com",
      "apiAccessToken": "...."
    }
  },
  "request": {
    "type": "AudioPlayer.PlaybackFailed",
    "requestId": "amzn1.echo-api.request.24680567-6e1c-4dc1-ac9f-89a936ed02cd",
    "timestamp": "2018-04-27T13:00:05Z",
    "locale": "en-US",
    "currentPlaybackState": {
      "offsetInMilliseconds": 238426,
      "token": "https://archive.org/download/nms2014-09-06.mtx.flac16/Nms2014-09-06D1t02.mp3",
      "playerActivity": "PLAYING"
    },
    "error": {
      "message": "Player error occurred: java.lang.IllegalStateException",
      "type": "MEDIA_ERROR_UNKNOWN"
    },
    "token": "https://archive.org/download/nms2014-09-06.mtx.flac16/Nms2014-09-06D1t02.mp3"
  }
}
@hyzhak hyzhak added enhancement New feature or request alexa Support Amazon Alexa platform labels Apr 13, 2018
@hyzhak hyzhak added this to the Integrate both platforms milestone Apr 13, 2018
@hyzhak hyzhak self-assigned this Apr 13, 2018
@hyzhak hyzhak mentioned this issue Apr 27, 2018
8 tasks
@hyzhak hyzhak closed this as completed Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alexa Support Amazon Alexa platform enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant