def receive_message(self, message, data):
        """ Called when a media message is received. """
        if data[MESSAGE_TYPE] == TYPE_MEDIA_STATUS:
            self._process_media_status(data)

            return True

        return False
def receive_message ( self , message , data ) : if data [ MESSAGE_TYPE ] == TYPE_MEDIA_STATUS : self . _process_media_status ( data ) return True return False
Called when a media message is received.