Skip to main content

smwebsdk.scene._constructor__1

Home > @soulmachines/smwebsdk > Scene > (constructor)

Scene.(constructor)

Warning: This API is now obsolete.

Use new Scene(options: SceneOptions) instead

Construct Scene with parameters

Signature:

constructor(videoElement?: HTMLVideoElement, audioOnly?: boolean, requestedUserMedia?: UserMedia, requiredUserMedia?: UserMedia, contentAwarenessDebounceTime?: number, loggingConfig?: Partial<LoggingConfig>, tracerOptions?: TracerOptions, chromaKeyOptions?: ChromaKeyOptions);

Parameters

ParameterTypeDescription
videoElementHTMLVideoElement(Optional) A video element that will display the connected scene
audioOnlyboolean(Optional) This streaming should be audio streaming only (no video streaming)
requestedUserMediaUserMedia(Optional) The user media devices (microphone/camera) that should be requested, one of: UserMedia.None, UserMedia.Microphone, UserMedia.MicrophoneAndCamera (default)
requiredUserMediaUserMedia(Optional) Required user media devices, one of: UserMedia.None, UserMedia.Microphone, UserMedia.MicrophoneAndCamera If less user media devices are requested then are required then the requirements takes precedence. If this user media requirements is not met then Connect() will fail.
contentAwarenessDebounceTimenumber(Optional) The timeout period used for debouncing messaging within the content awareness class
loggingConfigPartial<LoggingConfig>(Optional) Options to configure different log levels for different classes
tracerOptionsTracerOptions(Optional)
chromaKeyOptionsChromaKeyOptions(Optional)