@property<EOL><INDENT>def media_type(self):<DEDENT>
state = parser.first(self.playstatus, '<STR_LIT>', '<STR_LIT>')<EOL>if not state:<EOL><INDENT>return const.MEDIA_TYPE_UNKNOWN<EOL><DEDENT>mediakind = parser.first(self.playstatus, '<STR_LIT>', '<STR_LIT>')<EOL>if mediakind is not None:<EOL><INDENT>return convert.media_kind(mediakind)<EOL><DEDENT>if self.artist or self.album:<EOL><INDENT>return const.MEDIA_TYPE_MUSIC<EOL><DEDENT>return const.MEDIA_TYPE_VIDEO<EOL>
Type of media is currently playing, e.g. video, music.