ltmmSampleSource.SetMediaType Method

Visual Basic Example

Syntax

object.SetMediaType(MediaType As ltmmMediaType)

Remarks

Sets the media type of the sample source object.

The user should define the media type of the sample source object before the sample source object is added to any other multimedia object.

If the method fails, an error is raised. For more information, refer to the Error Codes.

See Also

Elements:

ltmmSampleSource.GetMediaType Method, ltmmSampleSource.DeliverEndOfStream Method, ltmmSampleSource.DeliverSample Method, ltmmSampleSource.GetSampleBuffer Method

Topic:

ltmmSampleSource Object

 

Implementing an ltmmSampleSource Object