Module providing preview functionality for Lens Studio.
// The LensStudio:Preview module exposes Config, CameraView, Input, // StreamType, IPreviewPanel, and PreviewPanel for driving preview // sessions in Lens Studio. const { Config, CameraView, Input, StreamType } = await import('LensStudio:Preview'); // Build a Config describing camera perspective, input source, // and upscale factor for a preview session. const config = new Config(); config.cameraView = CameraView.Front; config.upscale = 2; const input = new Input(); input.type = StreamType.Multimedia; input.sourcePath = new Editor.Path('/path/to/preview.mp4'); config.input = input; console.log('Preview config:', 'cameraView=', config.cameraView, 'input.type=', config.input.type, 'upscale=', config.upscale); Copy
// The LensStudio:Preview module exposes Config, CameraView, Input, // StreamType, IPreviewPanel, and PreviewPanel for driving preview // sessions in Lens Studio. const { Config, CameraView, Input, StreamType } = await import('LensStudio:Preview'); // Build a Config describing camera perspective, input source, // and upscale factor for a preview session. const config = new Config(); config.cameraView = CameraView.Front; config.upscale = 2; const input = new Input(); input.type = StreamType.Multimedia; input.sourcePath = new Editor.Path('/path/to/preview.mp4'); config.input = input; console.log('Preview config:', 'cameraView=', config.cameraView, 'input.type=', config.input.type, 'upscale=', config.upscale);
Module providing preview functionality for Lens Studio.
Example