@reactoo/watchtogether-sdk-js 2.6.78 → 2.6.79

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.6.78",
3
+ "version": "2.6.79",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -1646,7 +1646,8 @@ class RoomSession {
1646
1646
  .then(() => {
1647
1647
  p.webrtcStuff.simulcastSwitchFailedAttempts[mid] = 0
1648
1648
  })
1649
- .catch(() => {
1649
+ .catch((e) => {
1650
+ this._log('switch failed:', e);
1650
1651
  this._resetStats(p.handleId, mid);
1651
1652
 
1652
1653
  if(!p.webrtcStuff.simulcastSwitchFailedAttempts[mid]) {
@@ -1665,7 +1666,8 @@ class RoomSession {
1665
1666
  .then(() => {
1666
1667
  p.webrtcStuff.simulcastSwitchFailedAttempts[mid] = 0
1667
1668
  })
1668
- .catch(() => {
1669
+ .catch((e) => {
1670
+ this._log('switch failed:', e);
1669
1671
  this._resetStats(p.handleId, mid);
1670
1672
  if(!p.webrtcStuff.simulcastSwitchFailedAttempts[mid]) {
1671
1673
  p.webrtcStuff.simulcastSwitchFailedAttempts[mid] = 1;