question: public MediaDescription createMediaDescription ( String media , int port , int numPorts , String transport , String [ ] formats ) { MediaDescriptionImpl mediaDescriptionImpl = new MediaDescriptionImpl ( ) ; try { MediaField mediaImpl = new MediaField ( ) ; mediaImpl . setMediaType ( media ) ; mediaImpl . setMediaPort ( port ) ; mediaImpl . setPortCount ( numPorts ) ; mediaImpl . setProtocol ( transport ) ; Vector formatsV = new Vector ( formats . length ) ; for ( int i = 0 ; i < formats . length ; i ++ ) formatsV . add ( formats [ i ] ) ; mediaImpl . setMediaFormats ( formatsV ) ; mediaDescriptionImpl . setMedia ( mediaImpl ) ; } catch ( SdpException s ) { s . printStackTrace ( ) ; } return mediaDescriptionImpl ; }
target:  Returns MediaDescription object with the specified properties. The returned object will respond to Media.getMediaFormats(boolean) with a Vector of String objects specified by the 'formats argument.