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
PiCameracalls. - Methods: what you can ask
PiCamerato do. - DataChannels: the four channels, and what each one carries.
- Gamepad: the
@mazupo/client/gamepadentry points.

