video delivery code