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

Method getCurrentTime

core/ui/UIMediaPlayer.cpp:1342–1354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340}
1341
1342float MediaPlayer::getCurrentTime()
1343{
1344 if (!_videoURL.empty())
1345 {
1346 auto engine = reinterpret_cast<PrivateVideoDescriptor*>(_videoContext)->_engine;
1347 if (engine)
1348 {
1349 return static_cast<float>(engine->getCurrentTime());
1350 }
1351 }
1352
1353 return 0.f;
1354}
1355
1356float MediaPlayer::getDuration()
1357{

Callers 1

updateControlsMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected