LoginSignup
0
0

More than 3 years have passed since last update.

agora.io + NWJS

Last updated at Posted at 2019-03-19

NW.jsでagora.ioのWebSDKが動作するか確認してみました。

開発環境

macOS Mojave 10.14.1
VisualStudioCode 1.29.1
AgoraVideoSDK for Web 2.5.2
NW.js 0.37.0

NW.jsのインストール

今回はnpmで実行しました。

$ npm install -g nwjs
$ nw list-remote //バージョンの確認
$ nw install 0.37.0

package.jsonの作成

以下のようにpackage.jsonを作成します。

{
  "name": "Agora Web Sample",
  "main": "index.html"
}

HTMLの準備

今回はSDKに含まれているサンプルをそのまま使います。

<!DOCTYPE html>
<html>
<head>
<title>Agora Web Sample</title>
・・・

実行

$ nw .

これだけで簡単に作成することができます。
スクリーンショット 0031-03-19 13.20.54.png

こちらにサンプルコードをあげています。
又、Electronでも同様の事ができます。サンプルはこちら

最後に

agora.ioに関するお問い合わせはこちらから
スクリーンショット 0001-08-15 13.41.56.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0