- def update_size_display() -> Any:
- try:
- size = summarize_size(os.stat(filename).st_size)
- except FileNotFoundError:
- size = '--'
- size_display.set_label(f'<big>{size}</big>')
- return GLib.SOURCE_REMOVE if recording is None else GLib.SOURCE_CONTINUE
- GLib.timeout_add_seconds(1, update_size_display)
+ stack.set_visible_child_name("recording")
+
+ if is_sharing_enabled(stack):
+ sharing = Stream.start(
+ ['ffmpeg', '-i', '/dev/video0', '-f', 'v4l2', '-framerate', '25',
+ '-codec:v', 'rawvideo', '-pix_fmt', 'yuv420p', '/dev/video9'])
+ time.sleep(3) # Bad!! We should not be sleeping in this thread!