登录
ZH

← 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 登录后为此扩展评分。

暂无评价:来做第一个吧。