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 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,