Skip to content

Official Plugins

This document only covers official plugin packages.

For architecture and lifecycle details, see Plugin System. For hook/type contracts, see Plugin API.

@webrtc-engine/plugin-logger

Logs player/publisher lifecycle events.

typescript
import { createPlayerLoggerPlugin } from '@webrtc-engine/plugin-logger';

player.use(createPlayerLoggerPlugin());

@webrtc-engine/plugin-performance

Monitors player FPS and network transport stats.

typescript
import { createPerformancePlugin } from '@webrtc-engine/plugin-performance';

player.use(createPerformancePlugin({ onStats: (s) => console.log(s) }));

基于 MIT 许可证发布