infinityofspace / jellyfin_alexa_skill

Selfhosted Alexa media player skill for Jellyfin
GNU General Public License v3.0
71 stars 11 forks source link

Audio Playback Not Working On Joined Speakers #114

Open The-Randalorian opened 1 year ago

The-Randalorian commented 1 year ago

Describe the bug

Some echo devices can be grouped into a special group called an "Alexa Home Theater." The devices are able to act as TV speakers for a Fire TV device, or as a set of stereo speakers when the TV is off.

When attempting to play music on echo devices in an Alexa Home Theater setup, the audio plays for a second or two before repeating from the beginning. This prevents the entire song from playing. This is likely some problem related to how Amazon syncs the audio between echo devices.

This issue may also be present in speaker groups that are not Alexa Home Theaters, such as stereo pairs or echo subs. If I get the time, I may test these configurations.

To Reproduce

Pair two echo devices and a Fire TV 4k Max in an Alexa Home Theater setup. Setup the Jellyfin Alexa Skill. Attempt to play a song by giving Alexa a command.

Expected behavior

Songs should play from start to finish.

Versions

Docker 0.3.1

Additional context

The Alexa Home Theater system is described here: https://us.amazon.com/gp/help/customer/display.html?nodeId=G9MFQFRP6F7L8UH9

This shouldn't matter, but the source files I used were FLAC files. Other, non-grouped echo devices can play back these files fine though, so I doubt it's due to that.