# Matrix

> Matrix transport for the Meeting Place SDK, enabling native end-to-end encrypted individual and group chats, rich messaging features, and optional audio/video calling via LiveKit.

Building richer messaging into Meeting Place requires more than DIDComm message passing. When your application needs persistent room history, media attachments, reactions, and real-time audio/video calls, the DIDComm transport alone cannot deliver those capabilities.

The Matrix SDK brings a [Matrix](https://matrix.org/) homeserver as the transport layer, adding native end-to-end encryption, room history, and a full set of rich chat actions. For Flutter applications that also need call rendering, the LiveKit Flutter plugin wraps the Matrix call API with Flutter WebRTC track rendering backed by a LiveKit SFU. Together, the two packages provide a complete encrypted messaging and calling stack built on decentralised identity. [See the Matrix SDK reference →](./matrix/)

## How the packages work together

The Matrix SDK is the foundation. It implements MeetingPlaceCoreSDK, routing chats over Matrix rooms rather than DIDComm. Audio and video calling is built in as an optional plugin: provide livekitServiceUrl in MatrixConfig, then pass rtcDelegate and roomFactory to MeetingPlaceMatrixSDK.create() to activate it.

The LiveKit Flutter plugin is a Flutter-only companion that depends on the Matrix SDK. It supplies the two concrete implementations the call plugin requires:

- FlutterMatrixRTCDelegate: bridges Matrix RTC signalling to flutter_webrtc.

- FlutterLiveKitRoom: connects to the LiveKit SFU and handles per-participant video track rendering.

The dependency is strictly one-directional. The LiveKit Flutter plugin requires the Matrix SDK, but the Matrix SDK has no dependency on LiveKit Flutter and functions fully without it. Pure-Dart applications can use the Matrix SDK with a custom WebRTCDelegate implementation, or without any call plugin when calls are not needed.

## Packages

      [

Matrix SDK →

API reference for MeetingPlaceMatrixSDK, MeetingPlaceMatrixChatSDK, and MatrixConfig: the Matrix transport implementation for Meeting Place.

      ](/dev-tools/meeting-place/matrix/matrix.md)

      [

LiveKit Flutter →

Flutter plugin for real-time audio and video calls in Meeting Place SDK, using LiveKit for media transport, Matrix RTC for signalling, and per-participant end-to-end encryption.

      ](/dev-tools/meeting-place/matrix/livekit-flutter.md)


## Pages in this section


- [Matrix SDK](/dev-tools/meeting-place/matrix/matrix.md): API reference for MeetingPlaceMatrixSDK, MeetingPlaceMatrixChatSDK, and MatrixConfig: the Matrix transport implementation for Meeting Place.


- [LiveKit Flutter](/dev-tools/meeting-place/matrix/livekit-flutter.md): Flutter plugin for real-time audio and video calls in Meeting Place SDK, using LiveKit for media transport, Matrix RTC for signalling, and per-participant end-to-end encryption.



