Main.News0034 History

Hide minor edits - Show changes to markup

April 25, 2013, at 03:03 PM by razvancrainea -
Added line 1:

(:redirect About/News0034 quiet=1:)

July 23, 2009, at 01:13 PM by 81.180.102.217 -
Added line 17:
July 23, 2009, at 01:13 PM by 81.180.102.217 -
Added lines 1-22:

Main -> News -> SDP codec manipulation


SDP codec manipulation

New functions have been added for SDP codec manipulation in the textops module:

  • codec_exists(name[,clock]); - tests if a codec exists
  • codec_delete(name[,clock]); - deletes a codec
  • codec_move_up(name[,clock]); - moves a codec to the front of the priority list
  • codec_move_down(name[,clock]); - move a codec to the back of the priority list

Each of them can take a codec name and an optional clock parameter. If the clock is unspecified all of the codecs with that name will match.

All of the methods will act on all streams from all sessions inside the SDP.

You can use these methods one after another to get a desired effect. E.g. To make GSM the least prefered codec but GSM/8000 the most prefered of all GSM codecs use:

codec_move_up("GSM","8000");
codec_move_down("GSM");

Once a codec was deleted it will not be detected by codec_exists().


Page last modified on April 25, 2013, at 03:03 PM