| 138 | } |
| 139 | |
| 140 | void VideoHandler::SetNormalizedPosition(float pos) |
| 141 | { |
| 142 | if (_player == nullptr) |
| 143 | return; |
| 144 | |
| 145 | libvlc_media_player_set_position(_player, std::clamp(pos, 0.0f, 1.0f), false); |
| 146 | HandleError(); |
| 147 | } |
| 148 | |
| 149 | bool VideoHandler::IsPlaying() const |
| 150 | { |