Get current position.
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.
TStreamTime pos; instance->GetPosition(&pos); printf("%02i:%02i:%02i", pos.hms.hour, pos.hms.minute, pos.hms.second);
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 |