ltmmCaptureInputs.Selection Property

Visual Basic example

Syntax

object.Selection

Remarks

Gets or sets the index of the currently selected capture input. This index is zero based.

If this property is–1, then check the number of capture inputs in the ltmmCaptureInputs.Count Property.

If the value in the ltmmCaptureInputs.Count property is:

Then:

Zero

The Selection property was updated with –1 because there are no inputs to be selected.

Non-zero

One or more inputs are available. The Selection property was updated with -1 because the video and audio inputs do not match. This is only a warning and not an error. The inputs may be left the way they are, or this situation may be corrected using the ltmmCaptureInputs.NearestSelection property. For more information on unmatched pairs of video and audio inputs, refer to ltmmCaptureInputs Object.

Assignment could raise an error exception. For more information, refer to the Error Codes.

Platforms

Win32, x64

See Also

Elements:

ltmmCaptureInputs.Count Property, ltmmCaptureInputs.Item Method, ltmmCaptureInputs.Selection Property

Topics:

Multimedia Properties, Methods and Events