MCPcopy Create free account
hub / github.com/axmolengine/axmol / setPlayRate

Method setPlayRate

core/ui/UIMediaPlayer.cpp:1241–1249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239}
1240
1241void MediaPlayer::setPlayRate(float fRate)
1242{
1243 if (!_videoURL.empty())
1244 {
1245 auto engine = reinterpret_cast<PrivateVideoDescriptor*>(_videoContext)->_engine;
1246 if (engine)
1247 engine->setRate(fRate);
1248 }
1249}
1250
1251void MediaPlayer::play()
1252{

Callers 2

createControlsMethod · 0.80

Calls 2

emptyMethod · 0.45
setRateMethod · 0.45

Tested by

no test coverage detected