KoljaWindeler / ytube_music_player

YouTube music player for homeassistant
324 stars 51 forks source link

Casting to Airplay/HomeKit devices doesn't work #143

Closed bobloadmire closed 2 years ago

bobloadmire commented 2 years ago

If I select an Airplay/homekit device such as an LG TV, TCL TV, or Roku device, all 3 devices have not responded to the airplay connection attempt. Chromecast devices work flawlessly. I haven't seen anything in the documentation about configuring for Airplay/homekit specifically.

KoljaWindeler commented 2 years ago

Hi, im calling the media play function of the endpoint and pass the url to it. So every media player type that supports streaming by url should be compatible. Could you check if that's working for the three by playing any mp3 stream?

bobloadmire commented 2 years ago

ok that makes sense. I'm actually not sure how to verify I'm streaming an MP3, I only use youtube music, so I'm assuming YTM doesn't use MP3 codec?

stboch commented 2 years ago

@bobloadmire try service: media_player.play_media data: entity_id: media_player.(YourMediaDevices) media_content_id: https://dl.dropboxusercontent.com/s/cv0u9tsp327n3u7/T99.mp3?dl=0 media_content_type: 'audio/mp3'

See if this works playing a test mp3 file. if they work then might need to turn on debug for the media_player or the intergration that is adding the media_player device

KoljaWindeler commented 2 years ago

closed due to inactivity