Click or drag to resize

StartSessionResponseSelectSource Method (IBrowser, AudioMode)

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

Namespace:  DotNetBrowser.Capture.Handlers
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax
C#
public static StartSessionResponse SelectSource(
	IBrowser browser,
	AudioMode audioMode
)

Parameters

browser
Type: DotNetBrowser.BrowserIBrowser
The browser which contents will be captured.
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 browser is null.
Remarks

The passed browser instance and the browser instance requesting the capture session must be created by the same IEngine instance. Otherwise, the content capture will be cancelled.

See Also