Skip to content

Commit

Permalink
Merge branch 'hotfix/2021.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ito committed Jan 27, 2022
2 parents 0ce0576 + e20a913 commit edb8114
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- FIX
- バグ修正

## 2021.2.1
- [FIX] type redirect 時のシグナリングで接続エラーになった場合、例外が発火しなかった問題を修正する
- @yuitowest

## 2021.2.0
- [UPDATE] simulcast 時の transceiver 判定条件に offer.mids.video での分岐を追加する
- @yuitowest
Expand Down
15 changes: 10 additions & 5 deletions dist/sora.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.0
* @version: 2021.2.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -1635,7 +1635,7 @@
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.0",
sora_client: "Sora JavaScript SDK 2021.2.1",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -2873,8 +2873,13 @@
}
else if (message.type == "redirect") {
this.writeWebSocketSignalingLog("onmessage-redirect", message);
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
try {
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
}
catch (error) {
reject(error);
}
}
};
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down Expand Up @@ -4373,7 +4378,7 @@
* @public
*/
version: function () {
return "2021.2.0";
return "2021.2.1";
},
/**
* WebRTC のユーティリティ関数群
Expand Down
2 changes: 1 addition & 1 deletion dist/sora.min.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions dist/sora.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.0
* @version: 2021.2.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -1629,7 +1629,7 @@ function createSignalingMessage(offerSDP, role, channelId, metadata, options, re
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.0",
sora_client: "Sora JavaScript SDK 2021.2.1",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -2867,8 +2867,13 @@ class ConnectionBase {
}
else if (message.type == "redirect") {
this.writeWebSocketSignalingLog("onmessage-redirect", message);
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
try {
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
}
catch (error) {
reject(error);
}
}
};
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down Expand Up @@ -4367,7 +4372,7 @@ var sora = {
* @public
*/
version: function () {
return "2021.2.0";
return "2021.2.1";
},
/**
* WebRTC のユーティリティ関数群
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sora-js-sdk",
"version": "2021.2.0",
"version": "2021.2.1",
"description": "WebRTC SFU Sora JavaScript SDK",
"main": "dist/sora.min.js",
"module": "dist/sora.mjs",
Expand Down
8 changes: 6 additions & 2 deletions packages/sdk/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,12 @@ export default class ConnectionBase {
this.signalingOnMessageTypeSwitched(message);
} else if (message.type == "redirect") {
this.writeWebSocketSignalingLog("onmessage-redirect", message);
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
try {
const redirectMessage = await this.signalingOnMessageTypeRedirect(message);
resolve(redirectMessage);
} catch (error) {
reject(error);
}
}
};
// eslint-disable-next-line @typescript-eslint/no-floating-promises
Expand Down

0 comments on commit edb8114

Please sign in to comment.