| 836 | } |
| 837 | |
| 838 | void BasicMediaController::updateControls() |
| 839 | { |
| 840 | if (_mediaPlayer && _controlsReady) |
| 841 | { |
| 842 | const auto currentTime = _mediaPlayer->getCurrentTime(); |
| 843 | const auto duration = _mediaPlayer->getDuration(); |
| 844 | auto& totalSize = _timelineTotal->getContentSize(); |
| 845 | _timelinePlayed->setContentSize(Size(totalSize.width * (currentTime / duration), totalSize.height)); |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | void BasicMediaController::updateControlsForContentSize(const Vec2& contentSize) |
| 850 | { |
nothing calls this directly
no test coverage detected