2025-02-09 03:28:27 +09:00
..
2025-02-09 03:28:27 +09:00
2025-02-09 03:28:27 +09:00

pixel streaming

pixel streaming.exeをサーバー(server)に置いてwebからプレイするためのものです。

pixel streaming 2が最新です。ガイドに従い構築しましょう。

  1. projectのpluginでpixel streamingをdisableにし、pixel streaming 2をenableにする。
  2. これをpackage buildして、app.exeを作ります。引数は以下のようにしてください。

なお、sshなどで作業している場合はfirewallの許可が出ませんので、local-desktopで作業してください。または手動でruleを更新してください。

./$project/Windows/app.exe -AudioMixer -RenderOffScreen -PixelStreamingSignallingURL="ws://127.0.0.1:8888"

次にserverの設定です。

# 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(パス)にも注意してください。

$ cd PixelStreamingInfrastructure/SignallingWebServer
$ vim config.json
$ npm start -- --public_ip localhost