You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release 2.4 has introduced live tv listing possibility.
It is possible to cast live tv from plex to TV using plex UI. However, when you select your target device first, it refuses to do it which hints me that plexPlayer will not be supported (and casting works by accident?)
If it is possible through browser, it should be possible through this card, at least via cast.
After a lot of hours I have successfully figured out and implemented a function which returns me an m3u8 file for any channel I clicked play on. I can take this link and use it in VLC to successfully start stream 100% of the time.
I can see cast errors in home assistant log:
2 issues:
It expires after 5 minutes, this is the lesser issue though
I am not able to cast it into device through Home Assistant. I have tried many different media types documented on Home Assistant - cast wiki. I have also researched for people having similar issues.
Regarding android TV, the furthest I got was it to load metadata of current show but it did not play anything.
Main parts of generating the url are:
tune request, which tell plex to tune to channel
getting info about stream, to see if it is already started, if not, start it using start.mpd endpoint
get the m3u8 stream using the decide endpoint, I have found that the stream only works in VLC if it has already been running for a while (10 sec work for me) but that might be specific for me
Plex Live TV is definitely not an accident when being cast, and should be supported by most clients - their blog lists the supported clients: https://support.plex.tv/articles/115007689648-watching-live-tv/ you will note that Casting from Web and iOS is supported, while Android is currently missing. Waching LiveTV on both Android and AndroidTV is specifically supported though. So plexPlayer should work.
JurajNyiri
changed the title
[Feature Request] Play Live TV from Plex via cast or androidTV
Feature Request: Play Live TV from Plex via cast or androidTV
Jan 4, 2022
Release 2.4 has introduced live tv listing possibility.
It is possible to cast live tv from plex to TV using plex UI. However, when you select your target device first, it refuses to do it which hints me that
plexPlayer
will not be supported (and casting works by accident?)If it is possible through browser, it should be possible through this card, at least via
cast
.After a lot of hours I have successfully figured out and implemented a function which returns me an m3u8 file for any channel I clicked play on. I can take this link and use it in VLC to successfully start stream 100% of the time.
I can see cast errors in home assistant log:
2 issues:
Regarding android TV, the furthest I got was it to load metadata of current show but it did not play anything.
Main parts of generating the url are:
Current code is in https://github.com/JurajNyiri/PlexMeetsHomeAssistant/tree/live_tv_play if any developer wants to take a look! 👍
The text was updated successfully, but these errors were encountered: