message: Updated docs and example
diff: @@ -152,18 +152,11 @@ const candidate = endpoint.getLocalCandidate();
  //Create local SDP info
  let answer = new SDPInfo();
  -//Set RTP local properties
  - transport.setLocalProperties({
  - audio : answer.getAudio(),
  - video : answer.getVideo()
  - });
  -
  -
  //Get remote audio m-line info
  let audioOffer = offer.getAudio();
  //If we have audio
  -if (audioOffer!=null)
  +if (audioOffer)
  {
  //Create audio media
  let audio = new MediaInfo("audio", "audio");
  @@ -188,7 +181,7 @@ if (audioOffer!=null)
  let videoOffer = offer.getVideo();
  //If offer had video
  -if (videoOffer!=null)
  +if (videoOffer)
  {
  //Create video media
  let video = new MediaInfo("video", "video");
  @@ -215,6 +208,13 @@ if (videoOffer!=null)
  answer.addMedia(video);
  }
  +//Set RTP local properties
  + transport.setLocalProperties({
  + audio : answer.getAudio(),
  + video : answer.getVideo()
  +});
  +
  +
  //For each stream offered
  for (let offered of offer.getStreams().values())
  {
  