pi-webrtc

API Reference

這一頁還沒有中文版,以下顯示英文原文。

Everything that @mazupo/client exports. The main class is PiCamera: create it with options, set the events that you need, and call its methods.

import { PiCamera } from '@mazupo/client';

const camera = new PiCamera({ uid: 'your-custom-uid', mqttHost: 'your.mqtt.cloud' /* ... */ });
camera.onStream = (stream) => { /* ... */ };
camera.connect();
  • Options: every option of PiCamera.
  • Events: the callbacks that PiCamera calls.
  • Methods: what you can ask PiCamera to do.
  • DataChannels: the four channels, and what each one carries.
  • Gamepad: the @mazupo/client/gamepad entry points.
在 GitHub 上編輯此頁