VLC for Unity skips first second
Posted: 21 Sep 2024 21:43
Hi all!
I'm trying to play some Bink video via VLC in Unity and faced a problem, for which unable to found solution.
Player works fine, however by unknown reason it skips nearly second (900 - 1000 milliseconds) with normal rate before starting to play video (this values reports first Time call in Update() during first frame receiving). Tried to change file caching time, enable hardware decoding, change a way media provided, etc - nothing worked.
However, when I tried to change playback rate, situation changed: with 0.125 rate skipped just 100 milliseconds, so no video plays from the start but really slow.
Player implementation based on basic examples from https://github.com/videolan/vlc-unity (based currently on demo version of VLC for Unity), for output used VisualElement background,
Media created from byte array: new(new StreamMediaInput(new MemoryStream(value))), tried also with file - situation is the same.
Did I missed some option or anything else in setup of player/media assignment while checking docs, examples and code?
I'm trying to play some Bink video via VLC in Unity and faced a problem, for which unable to found solution.
Player works fine, however by unknown reason it skips nearly second (900 - 1000 milliseconds) with normal rate before starting to play video (this values reports first Time call in Update() during first frame receiving). Tried to change file caching time, enable hardware decoding, change a way media provided, etc - nothing worked.
However, when I tried to change playback rate, situation changed: with 0.125 rate skipped just 100 milliseconds, so no video plays from the start but really slow.
Player implementation based on basic examples from https://github.com/videolan/vlc-unity (based currently on demo version of VLC for Unity), for output used VisualElement background,
Media created from byte array: new(new StreamMediaInput(new MemoryStream(value))), tried also with file - situation is the same.
Did I missed some option or anything else in setup of player/media assignment while checking docs, examples and code?