Skip to content

WebRTC / Recording SDK

An SDK providing WebRTC video streaming and recording functionality for AI cameras.

WebRTC SDK

Features

  • P2P low-latency video streaming (<200ms)
  • H.264/H.265 codec support
  • Signaling server integration
  • STUN/TURN support
  • Direct browser viewing

API Reference

int csun_webrtc_init(csun_webrtc_config_t *config);
int csun_webrtc_start_stream(csun_stream_handle_t *handle);
int csun_webrtc_stop_stream(csun_stream_handle_t *handle);

Recording SDK

Features

  • Continuous recording / Trigger recording / Scheduled recording
  • Pre-buffer and post-buffer
  • SD card / NAS / Cloud support
  • Recording file management API

Integration Example

We provide an example of building a pipeline that simultaneously streams via WebRTC while recording.