MCPcopy Index your code
hub / github.com/rawpython/remi / video_stop

Method video_stop

examples/examples_from_contributors/camera.py:46–51  ·  view source on GitHub ↗
(self, widget)

Source from the content-addressed store, hash-verified

44 """%{'id':str(id(self)), 'callback_function': str(callback_function)})
45
46 def video_stop(self, widget):
47 self.execute_javascript("""
48 document.video_stop = true;
49 const video = document.querySelector('video');
50 video.srcObject.getTracks()[0].stop();
51 """)
52
53 def process_image(self, **kwargs):
54 image = kwargs['image']

Callers

nothing calls this directly

Calls 1

execute_javascriptMethod · 0.80

Tested by

no test coverage detected