Adopt livekit 0.10 SendTextOptions

Merged
JS
1d ago
+35-5

The livekit 0.10.0 bump (#567) renamed the options type that LocalParticipant::send_text takes from StreamTextOptions to SendTextOptions, which broke the build on every lane at src/livekit/room_link.rs:160. The constructor and the with_* setters are unchanged, so this renames the type at the two sites that name it.

Behavior on the wire is unchanged. send_text in 0.10 may inline and compress the text, but only when every recipient reports client protocol 2 or newer and advertises deflate-raw. The vendored web/vendor/livekit-client.js reports protocol 1, so the sender keeps the classic stream the browser already reads.

The test Recorder now records sender_identity, which it dropped before, so a test can check that a candidate segment is published under the candidate's identity. A length mismatch on a board stream reaches drain as an error item, and the existing broken-stream test now covers that case.


Summary by cubic

Adopts the SendTextOptions type renamed in livekit 0.10.0 so the build passes again — StreamTextOptions no longer exists, and the constructor and setters are unchanged. Wire behavior is unchanged: send_text may inline and compress text only when every recipient reports client protocol 2 or newer, and the vendored client reports protocol 1.

The test Recorder now records sender_identity, and a new test checks a candidate segment is published under the candidate's identity. The broken-board-stream test now covers a length mismatch reaching drain as an error item.