# Videoplayer and clockrate?

**URL:** <https://qa.fmod.com/t/videoplayer-and-clockrate/19964>\
**Category:** Unity\
**Created:** [March 12, 2023, 1:12pm UTC](https://qa.fmod.com/t/videoplayer-and-clockrate/19964 "2023-03-12T13:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johanenglund](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Johanenglund](https://qa.fmod.com/u/Johanenglund)\
**Post date:** [March 12, 2023, 1:12pm UTC](https://qa.fmod.com/t/videoplayer-and-clockrate/19964/1 "2023-03-12T13:12:15Z")

</div>

The solution in the screenshot works but I can’t find out what clock rate the Unity videoplayer is using? I presume if it’s using frame time, this workaround will only be accurate on some computers.

 ![Screenshot 2023-03-12 at 13.04.19](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/687e07ad408b0d651143a265516fbaab6d9ac255.jpeg)

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [March 17, 2023, 4:25am UTC](https://qa.fmod.com/t/videoplayer-and-clockrate/19964/2 "2023-03-17T04:25:29Z")

</div>

Just to clarify - are you trying to account for audio vs video clock rate, or a loading delay causing a desync between audio and video? Your code seems to be addressing a sample load delay, but your post mentions clock rate.

That said, I’d recommend taking a look at our documentation on [Sample Data Loading](https://www.fmod.com/docs/2.02/api/studio-guide.html#sample-data-loading) to understand how loading sample data works in FMOD, and how you can preload sample data and check that the data has been loaded. You may also wish to take a look at our [Video Playback Scripting Example](https://www.fmod.com/docs/2.02/unity/examples-video-playback.html) and Unity’s [VideoPlayer Documentation](https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html).

---

<div class="post-metadata">

**Author:** ![Johanenglund](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Johanenglund](https://qa.fmod.com/u/Johanenglund)\
**Post date:** [March 17, 2023, 11:04am UTC](https://qa.fmod.com/t/videoplayer-and-clockrate/19964/3 "2023-03-17T11:04:32Z")

</div>

Thanks for your reply! And now I feel like a right numptie haha!

Yes, what I’m considering would of course be the sample loading time and not the clock rate. Thanks for the resources I’ll check how they can help with my project.

Best

J
