Fixed API callbacks when Videogular is inside a directive.