Skip to content

Commit

Permalink
Merge branch 'hotfix/2020.6.1' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ito committed Dec 22, 2020
2 parents 0a1b317 + 263c2f4 commit 7e2c611
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
- FIX
- バグ修正

## 2020.6.1
- [FIX] simulcast 時に setParameters するための RTCRtpTransceiver 検索条件を変更する
- getUserMedia constraints の audio/video と Sora signaling の audio/video が一致しなかった場合に `DOMException: Read-only field modified in setParameters().` が発生する
- encodings が readonly な RTCRtpSender を持つ RTCRtpTransceiver を検索条件から除外して対応
- @yuitowest

## 2020.6.0
- [UPDATE] e2ee 処理で signaling notify 時に metadata / authn_metadata どちらでも動作するように修正する
- @yuitowest
Expand Down
11 changes: 7 additions & 4 deletions dist/sora.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @sora/sdk
* undefined
* @version: 2020.6.0
* @version: 2020.6.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -867,7 +867,7 @@
type: "connect",
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/camelcase
sora_client: `Sora JavaScript SDK ${'2020.6.0'}`,
sora_client: `Sora JavaScript SDK ${'2020.6.1'}`,
environment: window.navigator.userAgent,
role: role,
// eslint-disable-next-line @typescript-eslint/camelcase
Expand Down Expand Up @@ -1374,7 +1374,10 @@
// simulcast の場合
if (this.options.simulcast && (this.role === "upstream" || this.role === "sendrecv" || this.role === "sendonly")) {
const transceiver = this.pc.getTransceivers().find((t) => {
if (t.mid && 0 <= t.mid.indexOf("video") && t.sender.track !== null) {
if (t.mid &&
0 <= t.mid.indexOf("video") &&
t.sender.track !== null &&
(t.currentDirection === null || t.currentDirection === "sendonly")) {
return t;
}
});
Expand Down Expand Up @@ -1768,7 +1771,7 @@
},
version: function () {
// @ts-ignore
return '2020.6.0';
return '2020.6.1';
},
};

Expand Down
4 changes: 2 additions & 2 deletions dist/sora.min.js

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions dist/sora.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @sora/sdk
* undefined
* @version: 2020.6.0
* @version: 2020.6.1
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -861,7 +861,7 @@ function createSignalingMessage(offerSDP, role, channelId, metadata, options) {
type: "connect",
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/camelcase
sora_client: `Sora JavaScript SDK ${'2020.6.0'}`,
sora_client: `Sora JavaScript SDK ${'2020.6.1'}`,
environment: window.navigator.userAgent,
role: role,
// eslint-disable-next-line @typescript-eslint/camelcase
Expand Down Expand Up @@ -1368,7 +1368,10 @@ class ConnectionBase {
// simulcast の場合
if (this.options.simulcast && (this.role === "upstream" || this.role === "sendrecv" || this.role === "sendonly")) {
const transceiver = this.pc.getTransceivers().find((t) => {
if (t.mid && 0 <= t.mid.indexOf("video") && t.sender.track !== null) {
if (t.mid &&
0 <= t.mid.indexOf("video") &&
t.sender.track !== null &&
(t.currentDirection === null || t.currentDirection === "sendonly")) {
return t;
}
});
Expand Down Expand Up @@ -1762,7 +1765,7 @@ var sora = {
},
version: function () {
// @ts-ignore
return '2020.6.0';
return '2020.6.1';
},
};

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "2020.6.0"
"version": "2020.6.1"
}
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": "2020.6.0",
"version": "2020.6.1",
"description": "WebRTC SFU Sora JavaScript SDK",
"main": "dist/sora.min.js",
"module": "dist/sora.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sora/sdk",
"version": "2020.6.0",
"version": "2020.6.1",
"author": "Shiguredo Inc.",
"license": "Apache-2.0",
"main": "dist/sora.min.js",
Expand Down
7 changes: 6 additions & 1 deletion packages/sdk/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,12 @@ export default class ConnectionBase {
// simulcast の場合
if (this.options.simulcast && (this.role === "upstream" || this.role === "sendrecv" || this.role === "sendonly")) {
const transceiver = this.pc.getTransceivers().find((t) => {
if (t.mid && 0 <= t.mid.indexOf("video") && t.sender.track !== null) {
if (
t.mid &&
0 <= t.mid.indexOf("video") &&
t.sender.track !== null &&
(t.currentDirection === null || t.currentDirection === "sendonly")
) {
return t;
}
});
Expand Down

0 comments on commit 7e2c611

Please sign in to comment.