「Unity/PC画面投影/Electron」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==参考コード== https://qiita.com/ShinYoshiaki/items/897bc3e3f09a2fee335b github(https://github.com/shinyoshiaki/quest-rdp) ==配信側実行準備== package.json <...」) |
(→WebSocket がオープンしないエラー) |
||
(同じ利用者による、間の5版が非表示) | |||
行1: | 行1: | ||
− | == | + | (未完成)起動はできてない。 |
+ | ==quest-rdpのelectron== | ||
https://qiita.com/ShinYoshiaki/items/897bc3e3f09a2fee335b | https://qiita.com/ShinYoshiaki/items/897bc3e3f09a2fee335b | ||
github(https://github.com/shinyoshiaki/quest-rdp) | github(https://github.com/shinyoshiaki/quest-rdp) | ||
− | ==配信側実行準備== | + | ===配信側実行準備=== |
package.json | package.json | ||
<pre> | <pre> | ||
行29: | 行30: | ||
</pre> | </pre> | ||
− | ==配信側実行== | + | ===配信側実行=== |
<pre> | <pre> | ||
cd electron | cd electron | ||
行38: | 行39: | ||
</pre> | </pre> | ||
− | ===cross-envが見つからないエラー=== | + | ====cross-envが見つからないエラー==== |
エラー詳細 | エラー詳細 | ||
sh: cross-env: command not found | sh: cross-env: command not found | ||
行44: | 行45: | ||
対応方法 | 対応方法 | ||
npm install | npm install | ||
+ | |||
+ | ==quest-rdpのelectronのバイナリ== | ||
+ | https://github.com/shinyoshiaki/quest-rdp/releases | ||
+ | streamer.zipをDL | ||
+ | |||
+ | macだと、xamarinが動いてしまうが、windowsだと、動作する。 | ||
+ | |||
+ | ==quest-viewのunityサンプル== | ||
+ | https://github.com/shinyoshiaki/quest-view | ||
+ | |||
+ | https://github.com/neuecc/UniRx/releases unirx をインストール | ||
+ | |||
+ | ===WebSocket がオープンしないエラー=== | ||
+ | エラー詳細 | ||
+ | InvalidOperationException: The current state of the connection is not Open.WebSocketSharp.WebSocket.Send | ||
+ | |||
+ | SampleScene.unityのLogicのInspectorのExampleのIpAddressを変更してみると良さそうだったが・・・ | ||
+ | |||
+ | 繋がらず・・・ |
2023年12月27日 (水) 16:10時点における最新版
(未完成)起動はできてない。
目次
quest-rdpのelectron
https://qiita.com/ShinYoshiaki/items/897bc3e3f09a2fee335b
github(https://github.com/shinyoshiaki/quest-rdp)
配信側実行準備
package.json
"engines": { "node": "10.16.0" },
以下を実行しnodeバージョンをv10.16.0へ
$ nvm install v10.16.0 $ nvm use v10.16.0 $ node --version v10.16.0
以下を実行しPythonバージョンをv2.7.18へ
$ pyenv install 2.7.18 Installed Python-2.7.18 $ pyenv local 2.7.18 $ python -V Python 2.7.18
配信側実行
cd electron npm install npm install robotjs npm update npm start
cross-envが見つからないエラー
エラー詳細
sh: cross-env: command not found
対応方法
npm install
quest-rdpのelectronのバイナリ
https://github.com/shinyoshiaki/quest-rdp/releases streamer.zipをDL
macだと、xamarinが動いてしまうが、windowsだと、動作する。
quest-viewのunityサンプル
https://github.com/shinyoshiaki/quest-view
https://github.com/neuecc/UniRx/releases unirx をインストール
WebSocket がオープンしないエラー
エラー詳細
InvalidOperationException: The current state of the connection is not Open.WebSocketSharp.WebSocket.Send
SampleScene.unityのLogicのInspectorのExampleのIpAddressを変更してみると良さそうだったが・・・
繋がらず・・・