MCPcopy Create free account
hub / github.com/ARM-software/AVH / stop

Method stop

interface/vstream/python/vsi_video_server.py:716–731  ·  view source on GitHub ↗

Stop the video server. Releases all resources and closes any open windows. Returns: None

(self)

Source from the content-addressed store, hash-verified

714
715
716 def stop(self):
717 """
718 Stop the video server.
719
720 Releases all resources and closes any open windows.
721 Returns:
722 None
723 """
724 self._disableStream()
725 if (self.mode == MODE_VIDEO_OUTPUT) and (self.filename == None):
726 try:
727 cv2.destroyAllWindows()
728 except Exception:
729 pass
730 self.listener.close()
731 logger.info("Video server stopped")
732
733
734def ip(ip):

Callers 2

runMethod · 0.95

Calls 1

_disableStreamMethod · 0.95

Tested by

no test coverage detected