Skip to content

MSC4195: LiveKit transport for MatrixRTC - #4195

Open
hughns wants to merge 115 commits into
matrix-org:mainfrom
hughns:hughns/matrixrtc-livekit
Open

MSC4195: LiveKit transport for MatrixRTC#4195
hughns wants to merge 115 commits into
matrix-org:mainfrom
hughns:hughns/matrixrtc-livekit

Conversation

@hughns

@hughns hughns commented Sep 16, 2024

Copy link
Copy Markdown
Member

Rendered

Server

Note

For backwards compatibility, the endpoint also returns livekit_service_url. The stems from a previous iteration of the proposal and has been fully replaced by url in the current text.

Note

For backwards compatibility with implementations of previous versions of this MSC, https://github.com/element-hq/lk-jwt-service exhibits the following differences with respect to the proposal text:

  • The legacy endpoints /sfu/get, /get_token and /delegate_delayed_leave are still included. These have been replaced by proper Client-Server and Server-Server endpoints in the proposal which are also implemented in https://github.com/element-hq/lk-jwt-service.
  • The device ID is still included in the LiveKit participant identity derivation. On requests, the ID is supplied as claimed_device_id wrapped together with the member ID in a member object. The proposal has eliminated claimed_device_id and replaced the member object with member_id.
  • The delay_timeout request parameter is still included in the /delegate_delayed_leave endpoint. This parameter has been removed from the proposal because it can be inferred from the delayed event ID.
  • Extended tokens do not contain the grant to create LiveKit rooms. Instead the service creates rooms itself (using its own token). This is because client implementations are not yet updated to perform the room creation themselves.

Furthermore, https://github.com/element-hq/lk-jwt-service doesn't currently implement kicking participants from the SFU on room leaves.

Client

Note

Similar to what's mentioned above, the client implementations also still support the legacy livekit_service_url property in transports objects in membership events.


SCT Stuff:

No MSC checklist

No FCP tickyboxes

BLOCKED on MSC4143 - #4195 (comment)

@hughns hughns changed the title MatrixRTC using LiveKit backend MSC4195: MatrixRTC using LiveKit backend Sep 16, 2024
@turt2live turt2live added A-VOIP Any VoIP or MatrixRTC related proposals proposal A matrix spec change proposal. Process state. A-Client Server Client-Server API kind:core MSC which is critical to the protocol's success needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. labels Sep 25, 2024
@hughns
hughns force-pushed the hughns/matrixrtc-livekit branch from 054a23c to 6072744 Compare December 17, 2024 07:22
Comment thread proposals/4195-matrixrtc-livekit.md
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
@ara4n ara4n added the matrix-2.0 Required for Matrix 2.0 (note: do not rename - used in reports/links) label Sep 5, 2025
@github-project-automation github-project-automation Bot moved this to Tracking for review in Spec Core Team Workflow Sep 5, 2025
@fkwp fkwp changed the title MSC4195: MatrixRTC using LiveKit backend MSC4195: MatrixRTC Transport using LiveKit Backend Oct 14, 2025
@fkwp
fkwp marked this pull request as ready for review October 14, 2025 13:16
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Johennes and others added 10 commits September 2, 2026 09:28
Co-authored-by: gewitternacht <60887951+gewitternacht@users.noreply.github.com>
Co-authored-by: gewitternacht <60887951+gewitternacht@users.noreply.github.com>
Co-authored-by: gewitternacht <60887951+gewitternacht@users.noreply.github.com>
Co-authored-by: gewitternacht <60887951+gewitternacht@users.noreply.github.com>
Co-authored-by: gewitternacht <60887951+gewitternacht@users.noreply.github.com>
@Johennes
Johennes requested a review from turt2live September 2, 2026 15:59
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md Outdated
Comment thread proposals/4195-matrixrtc-livekit.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Client Server Client-Server API A-VOIP Any VoIP or MatrixRTC related proposals blocked Something needs to be done before action can be taken on this PR/issue. kind:core MSC which is critical to the protocol's success matrix-2.0 Required for Matrix 2.0 (note: do not rename - used in reports/links) proposal A matrix spec change proposal. Process state.

Projects

Status: Proposed for FCP readiness

Development

Successfully merging this pull request may close these issues.