MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Player_Seek

Method Player_Seek

Source/Engine/Video/MF/VideoBackendMF.cpp:564–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564void VideoBackendMF::Player_Seek(VideoBackendPlayer& player, TimeSpan time)
565{
566 PROFILE_CPU();
567 auto& playerMF = player.GetBackendState<VideoPlayerMF>();
568 if (playerMF.Time != time)
569 {
570 playerMF.Time = time;
571 playerMF.Seek = 1;
572 player.StopAudio();
573 }
574}
575
576TimeSpan VideoBackendMF::Player_GetTime(const VideoBackendPlayer& player)
577{

Callers 1

SetTimeMethod · 0.45

Calls 1

StopAudioMethod · 0.80

Tested by

no test coverage detected