Copyright © 2005-2019 MultiMedia Soft

AudioExtensionAdd method

Previous pageReturn to chapter overviewNext page

Remarks

 

Adds a file extension to the list of file extensions considered as belonging to audio formats.

 

Certain video formats, like WMV, MP4 and DIVX, can be loaded by the control as audio tracks (causing the video stream to be ignored), through the LoadSound method or as video clips (having both audio and video streams) through the VideoPlayer.Load method; when files of these formats are inserted inside a playlist file, the control will consider them as video clips by default so will try to load them through DirectShow: through this method you can instruct the playlist manager to consider these formats as being simple audio tracks instead of video clips so only the audio stream will be managed and the video stream ignored.

 

 

Syntax

 

[Visual Basic]

Public Sub AudioExtensionAdd (

strExtension as string

)


 

[C#]

public void AudioExtensionAdd (

string strExtension

);


 

[C++]

public: void AudioExtensionAdd (

string strExtension

);


 

 

Parameter

Description

 

 

strExtension

String containing the file extension, for example WMV or MP4.

 

 

Return value

 

None