JurajNyiri / PlexMeetsHomeAssistant

Custom card which integrates plex into Home Assistant and makes it possible to launch movies or tv shows on TV with a simple click
Apache License 2.0
111 stars 8 forks source link

Feature Request : VLC support #66

Closed Paul-Vdp closed 2 years ago

Paul-Vdp commented 2 years ago

I would love to have the VLC Media Player included as a supported player (as it is by far the easiest one to enable local playback) ...

JurajNyiri commented 2 years ago

How do you launch media remotely on vlc player?

Paul-Vdp commented 2 years ago

I have the VLC addon installed in Hass, which makes available a media player with the 'VLC media player Telnet' integration. According to the docs, this player 'can play files on the local network, Internet or files and playlist locally saved to the /share and /media folder'. I would love to be able to use your wonderful card to activate the VLC player to play my Plex music through the local audio output of the Hass machine.

JurajNyiri commented 2 years ago

That sounds possible! I will take a look once i have some time.

Paul-Vdp commented 2 years ago

Great, really looking forward to it ! Thanks beforehand ...

JurajNyiri commented 2 years ago

Currently supports only track. Reasoning and possible future solution is described in https://github.com/JurajNyiri/PlexMeetsHomeAssistant/pull/67 .

I have came to the conclusion that there is no way to pass multiple links into https://www.home-assistant.io/integrations/vlc_telnet/ .

What we would need is a service in Home Assistant which allows us to generate playlist accessible via HTTP. We would then pass URL to this playlist into the media_content_id.

Until then, it is possible to only use track with vlcTelnet player.