Patent ID: 8953671
Filing Date: 2015-02-10
Classification: H04L

Abstract:
1. A codec capability negotiation method, comprising: storing a negotiation identifier which is used for indicating whether negotiation is completed in a first terminal and setting the negotiation identifier as the negotiation being uncompleted; an encoder of the first terminal encoding media data by using a baseline algorithm and then transmitting the encoded media data, and transmitted data packets carrying an encoding algorithm capability set supported by a codec of the first terminal at the utmost and an indication of the negotiation being uncompleted for a second terminal to obtain a negotiated encoding algorithm and encode media data by using the negotiated encoding algorithm and then transmit the encoded media data, wherein the baseline algorithm establishes standard specifications to be implemented by the negotiated encoding algorithm, and further wherein the negotiated encoding algorithm is an intersection of encoding algorithm capability sets supported by codecs of the first terminal and the second terminal at the utmost, and data packets transmitted by the second terminal carry the negotiated encoding algorithm and an indication of the negotiation having been completed; when receiving the data packets which are transmitted by the second terminal and carry the negotiated encoding algorithm and the indication of the negotiation having been completed, a decoder of the first terminal notifying the negotiated encoding algorithm to the encoder and setting the negotiation identifier as the negotiation having been completed, wherein after receiving the data packets which are transmitted by the second terminal and carry the negotiated encoding algorithm and the indication of the negotiation having been completed, the decoder of the first terminal performing decoding by using the negotiated encoding algorithm; when performing encoding, the encoder of the first terminal encoding the media data by using the negotiated encoding algorithm and then transmitting the encoded media data if the negotiation identifier indicates that the negotiation has been completed, and the transmitted data packets carrying the negotiated encoding algorithm and the indication of the negotiation having been completed; when receiving the data packets which are transmitted by the first terminal and carry the indication of the negotiation being uncompleted, the second terminal performing decoding by using the baseline algorithm; and when receiving the data packets which are transmitted by the first terminal and carry the indication of the negotiation having been completed, the second terminal performing decoding by using the negotiated encoding algorithm.