Click or drag to resize

StartSessionResponseSelectSource Method (Source, AudioMode)

Creates a StartSessionResponse that notifies the browser to use the given capture source.

Namespace:  DotNetBrowser.Capture.Handlers
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.1
Syntax
C#
public static StartSessionResponse SelectSource(
	Source source,
	AudioMode audioMode
)

Parameters

source
Type: DotNetBrowser.CaptureSource
The content source to use for the capture.
audioMode
Type: DotNetBrowser.CaptureAudioMode
The mode of capturing the audio from the browser.

Return Value

Type: StartSessionResponse
The StartSessionResponse instance that can be used as a return value in StartSessionHandler implementation.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe source is null.
Remarks

The

source
must be present in the Sources received from the Sources.

If the screen capture is forbidden by the system security permissions the request will be cancelled.This is usual for macOS where the screen or application window capture must be explicitly allowed in the System Preferences.

See Also