| 1354 | } |
| 1355 | |
| 1356 | float 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 | |
| 1370 | bool MediaPlayer::isPlaying() const |
| 1371 | { |
no test coverage detected