github onsip/SIP.js 0.6.0

latest releases: 0.21.2, 0.21.1, 0.21.0...
10 years ago
  • 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;
});

Don't miss a new SIP.js release

NewReleases is sending notifications on new releases.