| Algorithm 2. Server side algorithm. |
| Let
and
be the spatial and temporal resolution vector, respectively, given by: , .
If , continue with the existing setup; Else if , call A-LSTM(status), ##Increase Spatial/Temporal resolution; Else if , find Switch_time (bit rate), call A-LSTM(status), ##Update Spatial/Temporal resolution; Else if , call A-LSTM(status), ##decrease Spatial/Temporal resolution; Else if , wait till next feedback message arrives;
Calculate time for quality switch : #where is the time instant at the end of served quality switching, # request, and is the present time instant attending previous quality, # switching request; Set a timer when request for quality switch is received; Wait for the next feedback message; If , discard the request for quality switching and wait for next client feedback message; Else, serve the request for quality switching. |