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?
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?)