Here is a patch that enables IsStream boolean flag on ServiceInfo Converter.
We can use it eg to enable/disable some parts of the skin when watching streams.
--- a/lib/python/Components/Converter/ServiceInfo.py +++ b/lib/python/Components/Converter/ServiceInfo.py @@ -26,6 +26,7 @@ class ServiceInfo(Converter, object): AUDIOTRACKS_AVAILABLE = 18 SUBTITLES_AVAILABLE = 19 EDITMODE = 20 + IS_STREAM = 21 def __init__(self, type): Converter.__init__(self, type) @@ -51,6 +52,7 @@ class ServiceInfo(Converter, object): "AudioTracksAvailable": (self.AUDIOTRACKS_AVAILABLE, (iPlayableService.evUpdatedInfo,)), "SubtitlesAvailable": (self.SUBTITLES_AVAILABLE, (iPlayableService.evUpdatedInfo,)), "Editmode": (self.EDITMODE, (iPlayableService.evUpdatedInfo,)), + "IsStream": (self.IS_STREAM, (iPlayableService.evUpdatedInfo,)), }[type] def getServiceInfoString(self, info, what, convert = lambda x: "%d" % x): @@ -104,6 +106,8 @@ class ServiceInfo(Converter, object): return False elif self.type == self.EDITMODE: return hasattr(self.source, "editmode") and not not self.source.editmode + elif self.type == self.IS_STREAM: + return service.streamed() is not None return False boolean = property(getBoolean)