surflion-service 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/surflion.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surflion-service",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "main": "surflion.js",
6
6
  "scripts": {
package/surflion.js CHANGED
@@ -1532,7 +1532,7 @@ var SurfLion = {
1532
1532
  // SurfLion.ringtoneStream.pause();
1533
1533
  SurfLion.eventHandlers.ended(data)
1534
1534
  })
1535
- data.session.on('sdp', function (data) {
1535
+ data.session.on('sdp', function (e) {
1536
1536
  console.log('sdp');
1537
1537
  const stream = new MediaStream();
1538
1538
  const receivers = data.session.connection?.getReceivers();
@@ -1542,7 +1542,7 @@ var SurfLion = {
1542
1542
  SurfLion.localStream.srcObject = stream;
1543
1543
  SurfLion.localStream.play();
1544
1544
  if (SurfLion.debug) {
1545
- console.info('onSDP, type - ', data.type, ' sdp - ', data.sdp);
1545
+ console.info('onSDP, type - ', e.type, ' sdp - ', e.sdp);
1546
1546
  }
1547
1547
  });
1548
1548