Download function now gets video data