Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ videoStreamGetPosition(3mms) — Multimedia Services 2.4B

Media Vault

Software Library

Restoration Projects

Artifacts Sought

videoStreamGetPosition(3mms)  —  Subroutines

 
 
 
 

Name

 
videoStreamGetPosition --- Retrieve current position of the specified video device channel
 
 

Syntax

 
 
 

 #include <mme/mme_api.h>
 MMRESULT videoStreamGetPosition(HVIDEO hVideo,
                                LPMMTIME lpInfo,
                                DWORD dwSize);
 

 
 
 

Arguments

 
HVIDEO hVideo
Specifies a handle to a video device channel.

 
LPMMTIME lpInfo
Specifies a pointer to an MMTIME data structure. 

The MMTIME data structure must be allocated with the mmeAllocMem function before being passed to the videoStreamGetPosition function. 
 
 
 
 
See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures. 
 
 

 
DWORD dwSize
Specifies the size of the MMTIME data structure. 
 
 

Description

 
The videoStreamGetPosition function retrieves the current position of the specified video device channel.  The position is set to zero when streaming is started with the videoStreamStart function. 

 
Before using the videoStreamGetPosition function, set the wType field of the MMTIME data structure to indicate the desired time format. After the videoStreamGetPosition function returns, check the wType field to determine if the time format is supported.  If not, the wType field will specify an alternate format. Typically, the sample number time format is provided. 
 
 
 
 

Extensions

 
None.
 
 

Return Values

 
Returns DV_ERR_OK if the function is successful; otherwise, it returns the following error code:
 
 

 
DV_ERR_INVALHANDLE@T{ The specified device handle is invalid. T}

 
 
 

See Also

 
None.
 
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026