def isPlayingMedia(self, includePaused=False):
for mediatype in self.timeline():<EOL><INDENT>if mediatype.get('<STR_LIT:state>') == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>if includePaused and mediatype.get('<STR_LIT:state>') == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Returns True if any media is currently playing.

            Parameters:
                includePaused (bool): Set True to treat currently paused items
                    as playing (optional; default True).