Cross-layer Optimization for Video Delivery on Wireless Networks