Seek position.
virtual __stdcall int Seek(TTimeFormat fFormat, TStreamTime * pTime, TSeekMethod nMoveMethod) = 0;
Parameters |
Description |
TTimeFormat fFormat |
Time format of pTime parameter. With this parameter you need to specify which member of TStreamTime is valid. |
TStreamTime * pTime |
Pointer to TStreamTime structure specifying new position. |
TSeekMethod nMoveMethod |
Return Values |
Description |
1 |
All OK. |
0 |
Error. To get error message read here. |
Warning: This function will fail on dynamic stream.
Note: Accuracy of seek position depends on interface settings. See accurate seek.
Jump 50 seconds from beginning.
TStreamTime pTime; pTime.sec = 50; // we are using sec member of TStreamTime structure so we need tfSecond time format. instance->Seek(tfSecond, &pTime, smFromBeginning);
TStreamTime pTime; pTime.sec = 50; // we are using sec member of TStreamTime structure so we need tfSecond time format. zplay_Seek(instance, tfSecond, &pTime, smFromBeginning);
Jump 5 seconds forward from current position
TStreamTime pTime; pTime.sec = 5; // we are using sec member of TStreamTime structure so we need tfSecond time format. instance->Seek(tfSecond, &pTime, smFromCurrentForward);
TStreamTime pTime; pTime.sec = 5; // we are using sec member of TStreamTime structure so we need tfSecond time format. zplay_Seek(instance, tfSecond, &pTime, smFromCurrentForward);
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |