def resetStream(self):
     self.sessionController.log_debug("Reset stream %s" % self)
     self.notification_center.discard_observer(self, sender=self.stream)
     self.stream = MediaStreamRegistry.VideoStream()
     self.started = False
     self.previous_rx_bytes = 0
     self.previous_tx_bytes = 0
     self.all_rx_bytes = 0
     self.initial_full_screen = False
     self.media_received = False
     self.paused = False
     self.notification_center.add_observer(self, sender=self.stream)
 def createStream(self):
     return MediaStreamRegistry.VideoStream()