MediaFileDecoder.FilePositionSet method |
|
Remarks
Modifies the position within the decoded media file. The current position can be obtained through the MediaFileDecoder.FilePositionGet method.
For details about management of media files decoding, refer to the How to decode media files tutorial.
Syntax
[Visual Basic] Public Function FilePositionSet ( nPosition as Int64, nPositionUnit as enumDecodePositionUnit ) as Int32 |
[C#] public Int32 FilePositionSet ( Int64 nPosition, enumDecodePositionUnit nPositionUnit ); |
[C++] public: Int32 FilePositionSet ( Int64 nPosition, enumDecodePositionUnit nPositionUnit ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nPosition |
The position to reach expressed in the same unit set into the nPositionUnit parameter below. |
||||||||||||
nPositionUnit |
The unit of measure used for determining the nPosition parameter above. Supported values are the following:
|
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. |