Get current bitrate.
virtual __stdcall int GetBitrate(int fAverage) = 0;
Parameters |
Description |
int fAverage |
If this value is 1, average bitrate is returned. If this value is 0, real bitrate is returned. |
Bitrate in kbps (kilo bit per second).
On CBR (constant bitrate) streams this value is constant all the time. On VBR (variable bitrate) this value represents bitrate of currently decoded data frame.
Note: If you need bitrate of whole file or stream, use GetStreamInfo function and TStreamInfo.Bitrate.
Get current real bitrate.
int nCurrentBitrate = instance->GetBitrate(0);
printf("Bitrate: %i kbps", nCurrentBitrate);
int nCurrentBitrate = zplay_GetBitrate(instance, rereal0); printf("Bitrate: %i kbps", nCurrentBitrate);
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |