JA

← JumPHP エンジン拡張

Webrtc

v0.5.53.1 jumphp/webrtc · MIT · 2 回ダウンロード

Peer-to-peer WebRTC from PHP: data channels between players (no server in the middle), and a computer's screen streamed to a browser with mouse and keyboard.

JumPHP ^0.5.53 に対応

できること

  • One PHP API on both targets: the browser's RTCPeerConnection, a native GStreamer peer on the desktop
  • Data channels: reliable or not, ordered or not, text and binary
  • Signaling over the relay you already have (NetSession) or any channel of your own
  • Screen streaming (Linux X11): H.264 with the GPU's encoder (VA-API, NVENC) or x264 zero-latency
  • Remote input: absolute / relative mouse, buttons, wheel, keys, Unicode text (XTest)
  • LAN first (ICE host candidates), STUN for the internet

ゲームに追加

bin/jumphp extension:add <game> jumphp/webrtc

Composer で追加:

bin/jumphp composer <game> require jumphp/webrtc

サービス: JumPHP\WebRtc\WebRtc
project.yaml のキー: webrtc

▶ サンプルゲーム チュートリアル ドキュメント ソースコード Packagist

この拡張機能のレビュー

ログイン この拡張機能を評価するには Git でログインしてください。

まだレビューはありません。最初の投稿者になりましょう。