From 634f977b09c1dcd278934a2ee1aac18405c12413 Mon Sep 17 00:00:00 2001 From: Hamdan Anwar Sayeed <96612374+s-hamdananwar@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:23:26 +0300 Subject: [PATCH 1/2] exposed inbound-rtp.id as streamId --- src/room/track/RemoteAudioTrack.ts | 1 + src/room/track/RemoteVideoTrack.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/room/track/RemoteAudioTrack.ts b/src/room/track/RemoteAudioTrack.ts index 6259291b32..baeaad6462 100644 --- a/src/room/track/RemoteAudioTrack.ts +++ b/src/room/track/RemoteAudioTrack.ts @@ -244,6 +244,7 @@ export default class RemoteAudioTrack extends RemoteTrack { if (v.type === 'inbound-rtp') { receiverStats = { type: 'audio', + streamId: v.id, timestamp: v.timestamp, jitter: v.jitter, bytesReceived: v.bytesReceived, diff --git a/src/room/track/RemoteVideoTrack.ts b/src/room/track/RemoteVideoTrack.ts index 79248acf9c..2a380f542f 100644 --- a/src/room/track/RemoteVideoTrack.ts +++ b/src/room/track/RemoteVideoTrack.ts @@ -177,6 +177,7 @@ export default class RemoteVideoTrack extends RemoteTrack { codecID = v.codecId; receiverStats = { type: 'video', + streamId: v.id, framesDecoded: v.framesDecoded, framesDropped: v.framesDropped, framesReceived: v.framesReceived, From 05d1d6fcf78ea59f68ad8faf4304999acd04a4cf Mon Sep 17 00:00:00 2001 From: Hamdan <96612374+s-hamdananwar@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:25:03 -0600 Subject: [PATCH 2/2] Create eighty-rice-end.md --- .changeset/eighty-rice-end.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eighty-rice-end.md diff --git a/.changeset/eighty-rice-end.md b/.changeset/eighty-rice-end.md new file mode 100644 index 0000000000..824cbd5b81 --- /dev/null +++ b/.changeset/eighty-rice-end.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +expose inbound-rtp.id as streamId