private RTPFormat createFormat ( int payload , Text description ) { MediaType mtype = MediaType . fromDescription ( mediaType ) ; switch ( mtype ) { case AUDIO : return createAudioFormat ( payload , description ) ; case VIDEO : return createVideoFormat ( payload , description ) ; case APPLICATION : return createApplicationFormat ( payload , description ) ; default : return null ; } }
Creates or updates format using payload number and text format description .