GSMovie's duration() function return NaN

edited August 2014 in Library Questions

I'm trying to set a slider's label value in ControlP5 to the duration of a selected video. I thought duration() which returns the duration of video in float seconds would work, but it never returns a value other than 0.0. When I set the string value of the slider label the value reads "NaN". What's going on here? Why doesn't it just do what it says it does and return the duration of the video in seconds!?

Sign In or Register to comment.