Skip to content

Commit

Permalink
Merge pull request #337 from skyway/staging
Browse files Browse the repository at this point in the history
Deploy to master (v4.4.5)
  • Loading branch information
d-matsui authored Jul 28, 2022
2 parents c4c7db2 + 3105777 commit 818e44f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

## release note

## [v4.4.5](https://github.com/skyway/skyway-js-sdk/releases/tag/v4.4.5) - 2022-07-28

### Fixed

- Fixed a problem that could cause `TypeError: Cannot read properties of null (reading 'addIceCandidate')` error if the `close` method of `MediaConnection` was called before the connection was established. ([#336](https://github.com/skyway/skyway-js-sdk/pull/336))

## [v4.4.4](https://github.com/skyway/skyway-js-sdk/releases/tag/v4.4.4) - 2022-03-17

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
Add the following script tag to your html file.

```html
<script type="text/javascript" src="https://cdn.webrtc.ecl.ntt.com/skyway-4.4.4.js"></script>
<script type="text/javascript" src="https://cdn.webrtc.ecl.ntt.com/skyway-4.4.5.js"></script>
```

You can then use the `Peer` object to start connecting.
For more details, check out the [Tutorial](https://webrtc.ecl.ntt.com/en/js-tutorial.html). ([日本語](https://webrtc.ecl.ntt.com/js-tutorial.html))

To use the compressed version, add `.min` to the end of the file name, like `skyway-4.4.4.min.js`.
To use the compressed version, add `.min` to the end of the file name, like `skyway-4.4.5.min.js`.

### Installing using npm to use with a bundler (e.g. webpack or browserify)

Expand Down
2 changes: 1 addition & 1 deletion examples/p2p-data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="heading">P2P Data example</h1>
</div>
<p class="meta" id="js-meta"></p>
</div>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.4.js"></script>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.5.js"></script>
<script src="../_shared/key.js"></script>
<script src="./script.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/p2p-media/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="heading">P2P Media example</h1>
</div>
<p class="meta" id="js-meta"></p>
</div>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.4.js"></script>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.5.js"></script>
<script src="../_shared/key.js"></script>
<script src="./script.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/room/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 class="heading">Room example</h1>
</div>
<p class="meta" id="js-meta"></p>
</div>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.4.js"></script>
<script src="//cdn.webrtc.ecl.ntt.com/skyway-4.4.5.js"></script>
<script src="../_shared/key.js"></script>
<script src="./script.js"></script>
</body>
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": "skyway-js",
"version": "4.4.4",
"version": "4.4.5",
"description": "The official JavaScript SDK for SkyWay",
"main": "dist/skyway.js",
"types": "skyway-js.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion skyway-js.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for SkyWay@4.4.4
// Type definitions for SkyWay@4.4.5
// Project: https://github.com/skyway/skyway-js-sdk
// Definitions by: Yuji Sugiura <https://github.com/leader22>

Expand Down
4 changes: 4 additions & 0 deletions src/peer/negotiator.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ class Negotiator extends EventEmitter {
* @return {Promise<void>} Promise that resolves when handling candidate is done.
*/
async handleCandidate(candidate) {
if (!this._pc) {
return;
}

await this._pc
.addIceCandidate(new RTCIceCandidate(candidate))
.then(() => logger.log('Successfully added ICE candidate'))
Expand Down

0 comments on commit 818e44f

Please sign in to comment.