BillOatman 596 Posted June 15, 2019 Posted June 15, 2019 (edited) 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 June 15, 2019 by BillOatman
Solution ebr 16169 Posted June 15, 2019 Solution Posted June 15, 2019 The item being played would be of type LiveTvChannel. 1
BillOatman 596 Posted June 15, 2019 Author Posted June 15, 2019 (edited) Sweet, thank you! Close .... it's "TvChannel" Edited June 15, 2019 by BillOatman
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now