libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::GetPosition Method

Get current position.

C++
virtual __stdcall void GetPosition(TStreamTime * pTime) = 0;
Parameters 
Description 
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