This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

5
book/pixel/01_server.md Normal file
View File

@ -0,0 +1,5 @@
# 基本事項
pcのdisplay(ディスプレイ)が必要になる。画面の電源もつけておく必要があります。

32
book/pixel/README.md Normal file
View File

@ -0,0 +1,32 @@
# pixel streaming
`pixel streaming``.exe`をサーバー(server)に置いてwebからプレイするためのものです。
[pixel streaming 2](https://github.com/EpicGamesExt/PixelStreamingInfrastructure/)が最新です。[ガイド](https://github.com/EpicGamesExt/PixelStreamingInfrastructure/blob/master/Docs/pixel-streaming-2-migration-guide.md)に従い構築しましょう。
1. projectのpluginで`pixel streaming`をdisableにし、`pixel streaming 2`をenableにする。
2. これをpackage buildして、app.exeを作ります。引数は以下のようにしてください。
なお、sshなどで作業している場合はfirewallの許可が出ませんので、local-desktopで作業してください。または手動でruleを更新してください。
```sh
./$project/Windows/app.exe -AudioMixer -RenderOffScreen -PixelStreamingSignallingURL="ws://127.0.0.1:8888"
```
次にserverの設定です。
```sh
# git clone https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git
$ git clone --branch UE5.5 https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git
$ cd PixelStreamingInfrastructure/SignallingWebServer/platform_scripts/cmd
$ ./setup.bat
$ ./start.bat
```
`PixelStreamingInfrastructure/SignallingWebServer/config.json`の書き換えと起動。特に注意すべきは`http_root`です。Publicからwwwに変更されています。path(パス)にも注意してください。
```sh
$ cd PixelStreamingInfrastructure/SignallingWebServer
$ vim config.json
$ npm start -- --public_ip localhost
```