openvidu-live-captions: another minor beautification
This commit is contained in:
parent
d385068049
commit
af880945dc
@ -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"];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user