Search Unity

Feedback VideoPlayer.frame and VideoPlayer.frameCount of different type

Discussion in 'Audio & Video' started by Deleted User, Nov 20, 2019.

  1. Deleted User

    Deleted User

    Guest

    I wanted to report this as a bug, but since there is no option for "API bug" and I would like to know why this is, I mention this here first:

    Why is frame of type long while frameCount is of type ulong????

    Not that it's too important to be honest, but are negative frameCount values possible?

    Skipping to the end of a video clip means casting frameCount to long to be assignable to frame.
     
    mdrunk likes this.
  2. mdrunk

    mdrunk

    Joined:
    Apr 26, 2014
    Posts:
    11
    it does seem a little odd that two variables that refer to the same metric don't have the same type.