private RTPFormat createApplicationFormat ( int payload , Text description ) { Iterator < Text > it = description . split ( ' ' ) . iterator ( ) ; //encoding name Text token = it . next ( ) ; token . trim ( ) ; EncodingName name = new EncodingName ( token ) ; //clock rate token = it . next ( ) ; token . trim ( ) ; RTPFormat rtpFormat = getFormat ( payload ) ; if ( rtpFormat == null ) { formats . add ( new RTPFormat ( payload , FormatFactory . createApplicationFormat ( name ) ) ) ; } else { ( ( ApplicationFormat ) rtpFormat . getFormat ( ) ) . setName ( name ) ; } return rtpFormat ; }
Creates or updates application format using payload number and text format description .