Patent ID: 8867897

Claim:
A method comprising downloading to a mobile device and storing on the mobile device a video, commercials, and metadata associated with each commercial, the downloading occurring when the mobile device is connected to a WiFi network and when the mobile device is being powered by an external source or has at least a certain battery charge or both, based on the metadata, the mobile device selecting stored commercials to be inserted into the stored video before or while the stored video is played back on the mobile device, the commercials comprising a primary set and a backup set of commercials available for insertion if the primary set is insufficient for insertion at all locations in the downloaded video in which commercials are expected, the metadata comprising information representing one or more of (a) a number of impressions allowed for a commercial, (b) times when the commercial is not to be presented, (c) a geographic condition under which the commercial is to be used, or (d) whether the commercial may be inserted into a video.