Copyright © 2005-2019 MultiMedia Soft

AudioExtractFromVideoDone event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs during the extraction of the audio track from a video file to notify about the advancement. The audio extraction is started through a previous call to the VideoPlayer.AudioTrackExtract method.

 

For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow section.

For further details about synchronization through Events see the How to synchronize the container application through events tutorial.

 

 

Syntax

 

[Visual Basic]

Public Event AudioExtractFromVideoDone As AudioExtractFromVideoDoneEventHandler


 

[C#]

public event AudioExtractFromVideoDoneEventHandler AudioExtractFromVideoDone;


 

[C++]

public: __event AudioExtractFromVideoDoneEventHandler AudioExtractFromVideoDone;


 

 

Event Data

 

The event handler receives an argument of type AudioExtractFromVideoDoneEventArgs having the following parameters:

 

Parameters

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that fired the event

bOutputSwitchedToFile

Boolean flag that warns when the extracted audio track, that was originally requested to be stored in memory, has been put into a temporary file due to missing memory space.

If the original request was to store the extracted audio track inside a temporary file, this flag can be ignored.

Supported values are the following:

Mnemonic constant

Meaning

false

The extracted audio track has been stored in memory as requested

true

Due to missing memory space, the extracted audio track has been stored inside a temporary file which can be accessed through the VideoPlayer.AudioTrackGetTempFilePathname and VideoPlayer.AudioTrackGetTempFileSize methods.

nResult

Result of the audio extraction: see the LastError property for details about the specific error code.