1. A method comprising: receiving, by a user device, a request to begin an adaptive streaming session; receiving, by the user device, in response to receiving the request, context information, wherein the context information pertains to a link state between the user device and a device to provide a streaming media; calculating, by the user device, based on the context information, values for dynamic parameters pertaining to the adaptive streaming session, wherein the dynamic parameters pertain to buffer management of a buffer and codec selection; and providing, by the user device, the streaming media to a user of the user device based on the values for the dynamic parameters; determining that a triggering event occurs, based on the context information, and determining, in response to the determination that the triggering event occurs, that the values for the dynamic parameters are to be changed, according to a time to refill the buffer.