We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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!?