public static void rejectMediaField ( SessionDescription answer , MediaDescriptionField media ) { MediaDescriptionField rejected = new MediaDescriptionField ( ) ; rejected . setMedia ( media . getMedia ( ) ) ; rejected . setPort ( 0 ) ; rejected . setProtocol ( media . getProtocol ( ) ) ; rejected . setPayloadTypes ( media . getPayloadTypes ( ) ) ; rejected . setSession ( answer ) ; answer . addMediaDescription ( rejected ) ; }
Rejects a media description from an SDP offer .