1. A method of retrieving media data by a middleware unit at a client device, wherein the middleware unit controls a hypertext transfer protocol (HTTP) proxy unit of the client device, and wherein the client device includes a local server unit, the method comprising, by the middleware unit:receiving a first set of media data of a media session via a broadcast service;
determining that the broadcast service is no longer available after receiving the first set of media data;
receiving a request to retrieve a second set of media data of the media session via a unicast service from a streaming application executed by the client device based on the determination that the broadcast service is no longer available, wherein the request specifies an address external to the client device; and
in response to the request, when the second set of media data was previously received via the broadcast service, causing the HTTP proxy unit to redirect the request to the local server unit instead of the address external to the client device, wherein the second set of media data was previously received via the broadcast service.