iOS: Video Player length/framecount becomes 0 while scrubbing through the video

When I attempt to scrub through my video(-stream, coming in through a URL), the length of the video sometimes suddenly turns to 0 (after setting .time or .frame).

The scrubbing is done via a slider, which takes its position and the length of the video to determine the time to set to the VideoPlayer. As the VideoPlayer.length is turning to 0, this means the video is automatically resetting to the start whenever I move to a different time in the video.

This issue is only occurring on iOS, and the same code is working fine in the Editor.
Is this a bug in Unity?

-Version: Unity 2020.3.10 (LTS)

facing exactly the same problem with Unity 2020.3.9 . were you able to fix it? or anyone knows if this is fixed in later versions? couldn’t find anything in the release notes…

Not sure off the top of my head, but I believe we resolved it by updating to a newer version of Unity (I think there was a compatibility issue with the new(er) versions of iOS?)

Which version of the unity helped solve this problem?

I think we shipped on 2020.3.13f1

for me an update to the latest 2020.3.16f1 version didn’t fix it, so I filed a bug report with Unity. will post it here when I get an answer.

see open ticket here: Unity Issue Tracker - [macOS] [iOS] VideoPlayer frameCount method returns 0 when scrubbing through video played from URL