Addon.Webcam.SetMediaType()

Description

Sets the media type of the current webcam.

Syntax

.Addon.Webcam.SetMediaType(string mediaType);

Parameters

<string> mediaType: Specifies the media type to use.

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after Addon.Webcam.SelectSource. If there is only one data source available, it will be selected automatically.

More info about the media types can be found at DirectShow Media Types.

Example

if (DWObject)
  {
   DWObject.Addon.Webcam.SetMediaType("MJPG");
  }

See Also

Addon.Webcam.GetMediaType

Is this page helpful?

Leave a Reply

Your email address will not be published.