vendor/opentok.js
function(messageDelegate) {
    return function(event) {
      if (event.candidate) {
        messageDelegate(OT.Raptor.Actions.CANDIDATE, {
          candidate: event.candidate.candidate,
          sdpMid: event.candidate.sdpMid || '',
          sdpMLineIndex: event.candidate.sdpMLineIndex || 0
        });
      } else {
        OT.debug('IceCandidateForwarder: No more ICE candidates.');
      }
    };
  }
function(messageDelegate) {
    return function(event) {
      if (event.candidate) {
        messageDelegate(OT.Raptor.Actions.CANDIDATE, {
          candidate: event.candidate.candidate,
          sdpMid: event.candidate.sdpMid || '',
          sdpMLineIndex: event.candidate.sdpMLineIndex || 0
        });
      } else {
        OT.debug('IceCandidateForwarder: No more ICE candidates.');
      }
    };
  }
function ( messageDelegate ) { return function ( event ) { if ( event . candidate ) { messageDelegate ( OT . Raptor . Actions . CANDIDATE , { candidate : event . candidate . candidate , sdpMid : event . candidate . sdpMid || '' , sdpMLineIndex : event . candidate . sdpMLineIndex || 0 } ) ; } else { OT . debug ( 'IceCandidateForwarder: No more ICE candidates.' ) ; } } ; }
Helper function to forward Ice Candidates via +messageDelegate+
Helper function to forward Ice Candidates via + messageDelegate +