Copyright © 2005-2018 MultiMedia Soft

MediaFileDecoder.FileDurationGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the length of the decoded media file.

 

For details about management of media files decoding, refer to the How to decode media files tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function FileDurationGet (

ByRef nDuration as Int64

) as Int32


 

[C#]

public Int32 FileDurationGet (

ref Int64 nDuration

);


 

[C++]

public: Int32 FileDurationGet (

Int64 __gc *nDuration

);


 

 

Parameter

Description

 

 

nDuration

Reference that, on return from the method call, will contain the duration in milliseconds of the decoded media file.

 

 

Return value

 

Value

Meaning

 

 

enumErrorCodes.NOERROR (0)

The method call successful.

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.