May this work? 
According to API, the init function takes a Video element as an argument. We only use the fileinfo object.