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

Method getDuration

core/ui/UIMediaPlayer.cpp:1356–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356float MediaPlayer::getDuration()
1357{
1358 if (!_videoURL.empty())
1359 {
1360 auto engine = reinterpret_cast<PrivateVideoDescriptor*>(_videoContext)->_engine;
1361 if (engine)
1362 {
1363 return static_cast<float>(engine->getDuration());
1364 }
1365 }
1366
1367 return 0.f;
1368}
1369
1370bool MediaPlayer::isPlaying() const
1371{

Callers 2

createControlsMethod · 0.45
updateControlsMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected