KoljaWindeler / ytube_music_player

YouTube music player for homeassistant
337 stars 53 forks source link

ESPHome media_player fails to output audio with yTubeMusic #261

Closed githubpassera closed 8 months ago

githubpassera commented 1 year ago

The ESPHome media_player does not output audio when triggered by the assigned yTubeMusic media player. However, all other media_players work fine with the yTubeMusic player. While the song and image do appear on the media player, the song skips after a few seconds and attempts to play the next song. The ESPHome media_player works fine with standard media players.

ESPHome mediaplayer are working fine with standard mediaplayer. Code I'm using. `i2s_audio:

media_player:

Version 20230321.01

home-assistant_ytube_music_player_2023-09-19T18-00-16.285Z.log

KoljaWindeler commented 10 months ago

Hi, sorry for the delay .. Is the player (the ESP) actually playing the song? so do you hear the music? It looks like it is going from "playing" to "idle" quite quickly .. (within 500ms)

githubpassera commented 10 months ago

Hi, sorry for the delay .. Is the player (the ESP) actually playing the song? so do you hear the music? It looks like it is going from "playing" to "idle" quite quickly .. (within 500ms)

Hi, no audio is played. Just did a new test, play > idle every time it try to play next song.

KoljaWindeler commented 8 months ago

Hi, please try this https://github.com/KoljaWindeler/ytube_music_player?tab=readme-ov-file#method-2-owntone-server-as-proxy

KoljaWindeler commented 8 months ago

Hi, please reopen if owntones isn't helping. In general: this integration extracts the streaming URL. Everything after that is to the mediaplayer .. I can't influence that part .. and it sounds like an issue in the ESP code