MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SetNormalizedPosition

Method SetNormalizedPosition

TombEngine/Specific/Video/Video.cpp:140–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

ParseEffectsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected