LEADTOOLS Multimedia API Help > Programming with LEADTOOLS Multimedia > C++ Code > IltmmPlay::IsRateSupported Example for C++ |
void IsPlayerRateSupported(IltmmPlay *pPlay) { VARIANT_BOOL vrtRateSupported; HRESULT hr = pPlay->IsRateSupported(2.0, &vrtRateSupported); if (SUCCEEDED(hr) && vrtRateSupported == VARIANT_TRUE) pPlay->put_Rate(2.0); }