libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_GetPosition Function

Get current position.

C++
__stdcall __declspec(dllimport) void zplay_GetPosition(ZPLAY_HANDLE handle, TStreamTime * pTime);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TStreamTime * pTime 
Pointer to TStreamTime structure. User must allocate memory for this structure. 

None.

This function retrieves current position in TStreamTime format. All members of TStreamTime structure are valid. If stream is not playing or stream is closed, position is 0.

Get current position. 

ZPlay C++ Class interface  

TStreamTime pos;
instance->GetPosition(&pos);
printf("%02i:%02i:%02i", pos.hms.hour, pos.hms.minute, pos.hms.second);

 

C Style interface

TStreamTime pos;
zplay_GetPosition(instance, &pos);
printf("%02i:%02i:%02i", pos.hms.hour, pos.hms.minute, pos.hms.second);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr