This is the code:
from depthai_sdk import OakCamera, RecordType
import os
import logging
video_dir = os.environ.get('VIDEO_DIR', './videos/')
logging.info(f"Recording to VIDEO_DIR={video_dir}")
with OakCamera() as oak:
color = oak.create_camera('color')
oak.record([color.out.camera], video_dir, RecordType.VIDEO)
oak.visualize([color])
oak.start(blocking=True)
Nothing is displayed on the screen, neither in foreground nor in background.
However, video is recorded on filesystem.