from marinabox import MarinaboxSDK# Initialize SDK with custom videos directorysdk = MarinaboxSDK(videos_path="/path/to/videos")# Create and use a sessionsession = sdk.create_session(env_type="browser")# Stop session with custom video filenamesdk.stop_session(session.session_id, video_filename="custom_name.mp4")
# Example with both custom directory and filenamesdk = MarinaboxSDK(videos_path="/home/user/session-recordings")session = sdk.create_session(tag="important-test")# Later, stop the session with custom filenamesdk.stop_session(session.session_id, video_filename="test-run-001.mp4")