public static AudioFormat getAudioFormat ( PayloadType payloadtype ) { switch ( payloadtype . getId ( ) ) { case 0 : return new AudioFormat ( AudioFormat . ULAW_RTP ) ; case 3 : return new AudioFormat ( AudioFormat . GSM_RTP ) ; case 4 : return new AudioFormat ( AudioFormat . G723_RTP ) ; default : return null ; } }
Return a JMF AudioFormat for a given Jingle Payload type . Return null if the payload is not supported by this jmf API .