private void setOfferedApplicationFormats(final SessionDescription sdp) { MediaDescriptorField applicationDescriptor = sdp.getApplicationDescriptor(); if (applicationDescriptor != null) { this.offeredApplicationFormats = applicationDescriptor.getFormats(); } else { this.offeredApplicationFormats = null; } }
private void setOfferedVideoFormats(final SessionDescription sdp) { MediaDescriptorField videoDescriptor = sdp.getVideoDescriptor(); if (videoDescriptor != null) { this.offeredVideoFormats = videoDescriptor.getFormats(); } else { this.offeredVideoFormats = null; } }