alexa / alexa-smart-screen-sdk

⛔️ DEPRECATED Active at https://github.com/alexa/avs-device-sdk
Apache License 2.0
76 stars 25 forks source link

When I use alexa to control the menu, the music doesn't stop playing #136

Closed longjinxiang closed 2 years ago

longjinxiang commented 2 years ago

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

Briefly summarize your issue:

When I use alexa to control the menu, the music doesn't stop playing. But when I use remote to control the menu, the music was stopped.

What is the expected behavior?

When I use alexa to control the menu, the music should stop playing.

What behavior are you observing?

When I use alexa to control the menu, the music should stop playing.

Provide the steps to reproduce the issue, if applicable:

  1. enable skill: Cuentos Originales
  2. send commands: (Spanish)
    • 1.pon musica de aventura
    • 2.Cuéntame una historia
    • 3.clásico
    • 4.Blanco como la nieve
  3. the music still playing.

Tell us about your environment:

TV

What version of the AVS Device SDK are you using?

  <2.7.1>

Tell us what hardware you're using:

Tell us about your OS (Type & version):

Have you tried the same use case with AVS Device SDK SampleApp?

longjinxiang commented 2 years ago

https://user-images.githubusercontent.com/35523756/183089590-a749071e-3f85-4404-a60e-cc23a91e8ec2.mp4

1cengizk commented 2 years ago

@longjinxiang This looks very similar to another issue we are investigating. Can you apply the following change locally and rebuild?

You can modify the following lines as follows and then rebuild: https://github.com/alexa/alexa-smart-screen-sdk/blob/v2.7.1/modules/GUI/js/src/lib/media/AVSAudioPlayer.ts#L82-L83

super.onError(id, reason);
if (reason.toString().includes(`TypeError: Cannot read properties of undefined (reading 'component')`)) return;
this.playing = false;
powj commented 2 years ago

Closing due to inactivity - please re-open if you are still encountering this issue.