Jump to content

How to determine if a show is live TV (IPTV or hdhomerun)?


BillOatman
Go to solution Solved by ebr,

Recommended Posts

BillOatman

Fir a light control plugin I'm trying to determine if what is currently being played is a TV show (not recording but rather in the live TV section of Emby, IPTV or hdhomerun for example).

How would I determine this?  I tried 

 public bool getIsLiveTV(PlaybackProgressEventArgs e)
 {
     bool? isLiveTV = _sessionManager.GetSession(e.DeviceId, e.ClientName, "").NowPlayingItem.IsLive;
     return isLiveTV.HasValue ? isLiveTV.Value : false;
 }

But I always get false out of it.  Is that IsLive flag indicating if the guide has the Live tag set?

How would I determine if IPTV or hdhomerun are playing?

 

Edited by BillOatman
Link to comment
Share on other sites

BillOatman

Sweet, thank you!

 

Close .... it's "TvChannel" :)

Edited by BillOatman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...