Hello,
So I have come to find that the VideoPlayer.frame property does not get updated until the next Update() function is called in the class. That is fine and all is dandy having that understanding.
BUT the issue occurs when I am trying to set it to the final frame or give or take 10 frames. This happens maybe once out of 7 times. It will get hung up for a split second after setting the videoPlayer.time = videoPlayer.clip.length. And then not even set the frame and just continue playing.
Any insight on this problem? I am not sure if it’s a bug or if it’s a problem with our videos. I have a scrubber and it seems to work absolutely fine using nearly identical code if not more complex.
The code for setting the frame to the final frame:
videoPlayer.time = (long)videoPlayer.clip.length;
The code for setting the frame using the scrubber:
videoPlayer.time = progressBarSlider.value;
Edit: More of the English language being used