BillOatman 496 Posted June 15, 2019 Share 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 Link to comment Share on other sites More sharing options...
Solution ebr 14902 Posted June 15, 2019 Solution Share Posted June 15, 2019 The item being played would be of type LiveTvChannel. 1 Link to comment Share on other sites More sharing options...
BillOatman 496 Posted June 15, 2019 Author Share Posted June 15, 2019 (edited) Sweet, thank you! Close .... it's "TvChannel" Edited June 15, 2019 by BillOatman Link to comment Share on other sites More sharing options...
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