Video adaptation over heterogeneous networks