Added time window support to media/sample endpoint.