alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 602 forks source link

The Amazon Music continues to play for a few seconds when change music source from Amazon to Spotify #1204

Closed maidisula closed 4 years ago

maidisula commented 5 years ago

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

The music from Amazon Music continues to play for a few seconds and then Spotify Music starts to play. Please see the below video link to view details of this issue. https://www.dropbox.com/s/vockk2k2glybz0e/amazon-to-spotify.mp4?dl=0

What is the expected behavior?

Music from Spotify should play at once.

What behavior are you observing?

The music from Amazon Music continues to play for a few seconds and then Spotify Music starts to play.

Provide the steps to reproduce the issue, if applicable:

1.Alexa, play Amazon music. 2.Alexa, play music by Rihanna on Spotify.

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <1.11.0>

Tell us what hardware you're using:

Tell us about your OS (Type & version):

mavamazon commented 5 years ago

Hi!

Thank you for reporting this. We are going to investigate that and provide you with more context. Meanwhile it will be very helpful if you provide us with the SDK logs (preferably DEBUG9 logs) attached as a file.

maidisula commented 5 years ago

Hi @mavamazon , I have found the cause of this issue, the command that "play music by Rihanna on Spotify" takes more time than "play spotify", so the time to the spotify adapter player acquire focus is later than the audio player get the resume focus, so the audio player continues to play for a few seconds and then Spotify Music starts to play. avs-amazon-to-spotify.log

celinval commented 5 years ago

Thanks for the update, @maidisula! I'll add this issue to our backlog.

kclchan commented 4 years ago

This is fixed already. Please re-open it if the issue still exist.