ltmmSampleTarget.GetAcceptedMediaType Method

Visual Basic Example

Syntax

object.GetAcceptedMediaType() As ltmmMediaType

Remarks

Gets a copy of the media type accepted by the sample target object.

Multimedia objects negotiate the type of media data they will exchange. The accepted media type set by a sample target object indicates the type of media data that object can accept. Once a sample target object is associated with or added to a convert object for example, these two objects decide on the media type they will exchange. This is the connected media type. The connected media type can be obtained using the ltmmSampleTarget.GetConnectedMediaType method.

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

See Also

Elements:

ltmmSampleTarget.SetAcceptedMediaType Method, ltmmSampleTarget.GetConnectedMediaType Method, ltmmSampleTarget.GetSample Method

Topics:

ltmmSampleTarget Object

 

ltmmMediaType Object