- Home /
Unity Video Player Delays after Skip
Good Day,
So I'm trying to skip a video with a skip button press, but it delays in the very end frames of the video I tried the following two ways to achieve but both resulting in same problem
Method 1:
videoPlayer.time = videoPlayer.clip.frameCount;
Method 2:
float frameCount = videoPlayer.clip.frameCount;
videoPlayer.frame = (long)frameCount;
Screen recording: https://streamable.com/8a0g0a
as shown the video skips to the very last frame but it waits there for a second. Also, I've made sure there isn't any Invoke or Coroutine delay just a simple function call on button press.
I'd really appreciate any help on this. Thanks.
Your answer
Follow this Question
Related Questions
How to control 2 scenes with 1 script 0 Answers
artifact in game editor window 0 Answers
How to make right mouse button inverse 0 Answers
How to make paint coloring game in unity and COLOR specific part of image 0 Answers
Relate open folder with a text field? 0 Answers