Skip to content

Commit

Permalink
ADD: support Seek(0) at least, while proper Seek is not resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Feb 28, 2024
1 parent e87d4c7 commit a4aa6b0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Engine/media/video/videoplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,20 @@ void VideoPlayer::Pause()

float VideoPlayer::Seek(float pos_ms)
{
// TODO
return -1.f;
if ((pos_ms == 0.f) && RewindImpl())
{
return 0.f;
}
return -1.f; // TODO
}

uint32_t VideoPlayer::SeekFrame(uint32_t frame)
{
// TODO
return UINT32_MAX;
if ((frame == 0) && RewindImpl())
{
return 0u;
}
return UINT32_MAX; // TODO
}

bool VideoPlayer::NextFrame()
Expand Down

0 comments on commit a4aa6b0

Please sign in to comment.