로그인
KO

← 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로 로그인하세요.

아직 리뷰가 없습니다. 첫 번째가 되어 보세요.