Пример #1
0
 private void setOfferedApplicationFormats(final SessionDescription sdp) {
   MediaDescriptorField applicationDescriptor = sdp.getApplicationDescriptor();
   if (applicationDescriptor != null) {
     this.offeredApplicationFormats = applicationDescriptor.getFormats();
   } else {
     this.offeredApplicationFormats = null;
   }
 }
Пример #2
0
 private void setOfferedVideoFormats(final SessionDescription sdp) {
   MediaDescriptorField videoDescriptor = sdp.getVideoDescriptor();
   if (videoDescriptor != null) {
     this.offeredVideoFormats = videoDescriptor.getFormats();
   } else {
     this.offeredVideoFormats = null;
   }
 }