Skip to content

0.6.0

Compare
Choose a tag to compare
@josephfrazier josephfrazier released this 09 Jul 03:43
· 1744 commits to master since this release
  • The syntax for the media property has changed slightly. You now need to put the constraints inside a constraints property. For example:
session.accept({
  media: {
    constraints: {
      audio: true,
      video: false
    }
  }
});
  • UA#invite and Session#accept now allow an option specifying <audio> and <video> elements within which session media will be rendered. For example:
  var session = new SIP.UA().invite('welcome@onsip.com', {
    media: {
      render: {
        remote: {
          audio: document.createElement('audio'),
          video: document.createElement('video')
        },
        local: {
          audio: document.createElement('audio'),
          video: document.createElement('video')
        }
      }
    }
  });
  • The Session's referred event has been removed. See the commit message of 3115223 for an alternative.
  • The Session's refer event handler's first argument is now a request, not a uri. The uri can be obtained as follows:
session.on('refer', function handleRefer (request) {
  var uri = request.parseHeader('refer-to').uri;
});