A non-transitory computer-readable medium encoded with computer executable instructions for performing a method for audio and video control response and bandwidth adaptation based on network streaming applications, applied to a server connected to a player through a network, wherein the computer executable instructions comprise:
- transmitting a control command received by a stream communicator of the server to a stream controller of the server to enable the player to flush the expired streaming data stored in a buffer of the player;
- enabling the stream controller to control an input source of an input switcher;
- estimating whether an amount of streaming data stored in the buffer is within a range by a receiving buffer estimator of a QoS controller of the server;
- detecting bandwidth variation information by a congestion detector of the QoS controller;
- delivering a result of estimating whether the amount of the streaming data stored in the buffer is within the range and the bandwidth variation information to a stream adaptor of the server;
- determining whether the amount of the streaming data stored in the buffer is less than a threshold value;
- and
- enabling the stream adaptor to adjust a timestamp scalar based on the result of estimating whether the amount of the streaming data stored in the buffer is within the range and the bandwidth variation information if the amount of the streaming data stored in the buffer is less than the threshold value, thereby adjusting a consumption rate of the streaming data stored in the buffer for re-accumulating the streaming data stored in the buffer,
- wherein the timestamp scalar is restored to a default value by the stream adaptor when the streaming data stored in the buffer is accumulated to a predetermined amount, and
- wherein one of a plurality of settings in a quality profile is selected by the stream adaptor according to the result of estimating whether the amount of the streaming data stored in the buffer is within the range and the bandwidth variation information to adjust a bit rate of the streaming data stored in the buffer if the amount of the streaming data stored in the buffer of the player is less than the threshold value.