openvidu-live-captions: another minor beautification

This commit is contained in:
pabloFuente 2025-06-27 11:51:04 +02:00
parent d385068049
commit af880945dc

View File

@ -59,8 +59,7 @@ async function joinRoom() {
room.registerTextStreamHandler("lk.transcription", async (reader, participantInfo) => { room.registerTextStreamHandler("lk.transcription", async (reader, participantInfo) => {
const message = await reader.readAll(); const message = await reader.readAll();
const isFinal = const isFinal = reader.info.attributes["lk.transcription_final"] === "true";
reader.info.attributes["lk.transcription_final"] === "true";
if (isFinal) { if (isFinal) {
const audioTrackId = reader.info.attributes["lk.transcribed_track_id"]; const audioTrackId = reader.info.attributes["lk.transcribed_track_id"];