Search Unity

Video Nonsensical bug(s) in VideoPlayer and WebGL

Discussion in 'Audio & Video' started by ClosingTime, Jan 20, 2019.

  1. ClosingTime

    ClosingTime

    Joined:
    Nov 23, 2016
    Posts:
    241
    I am trying to playback video in WebGL and match geometry to that video.
    In order to match the geometry, I rely on the videoPlayer.frame.
    The issue is that my 10 FPS video that plays as 10FPS in the Editor, plays as 24 FPS in chrome.
    Not only that, but the frames now match a new frame count of 24/10 the original video size.So in order to get the real frame I need to multiply the frame in 10/24.
    There is also a constant shift in frames in both the editor and the webgl version. The shift is different.
    So I need to update the frame in about 2 frames back or forward.

    Is there a reason why VideoPlayer is so inconsistent?