Skip to main content
Version: 3.4.x

RSSP

RSSP (Realtime Simple Streaming Protocol) is the protocol used by the Moth server. TeamGRIT designed it to reduce the complexity of traditional streaming protocols and provide a simpler developer experience.

How RSSP works

RSSP uses WebSocket-based frame transport. Frames are sent as text or binary. When a text frame is used, it describes the following binary stream through MIME information. Because the protocol runs on WebSocket, firewall issues are minimized and text and binary messages can be mixed. JSON-based messages are also supported.

RSSP operating principles

RSSP works as follows.

  1. Data is interpreted based on MIME information.
  2. If MIME information is missing, previous data is ignored until MIME is received.
  3. MIME information should be retransmitted frequently. A one-second interval is recommended.
  4. MIME information includes both the data format and additional metadata.

RSSP supports many data formats and uses MIME information to deliver media format and control metadata together. New formats can also be defined when needed.

Image, video, and audio codecs

Moth supports the following codec families.

  • image formats: JPEG, PNG, WEBP, HEIF, and others
  • video formats: H.264, H.265, VP8, VP9, AV1, and others
  • audio formats: Opus, Speex, AAC, and others