Enables or disables automatic codec detection.
object.AutoDetectCodec Enabled
Parameter Description Enabled Enables the automatic codec detection state of the audio control with a Boolean value. Automatic detection of codecs is enabled by default.
Value Description True Enable the automatic codec detection state. Automatic codec detection is enabled by default, so call with this value only if you have already disabled automatic codec detection. False Disable the automatic codec detection state.
This method does not return a value.
Use this method to disable automatic detection of codecs and to use the SetCodec method instead.
Note that SetCodec will override this method. Also note that you may need to use this method if you switch from a Web page receiving a broadcast from a server running a previous version of NetShow to a Web page receiving a broadcast from the current version.
Example
The following code example shows how to use the AutoDetectCodec method to turn off automatic codec detection. The audio control object is called rtpaudio. When the method is called, the state is disabled. Call this method before you call the Play method. The change in automatic codec detection state takes effect only when Play is called.
call rtpaudio.AutoDetectCodec(False)
Return to the RTP Audio Control Reference.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.