Skip to content

Commit

Permalink
expose inbound-rtp.id as streamId (#1367)
Browse files Browse the repository at this point in the history
* exposed inbound-rtp.id as streamId

* Create eighty-rice-end.md
  • Loading branch information
s-hamdananwar authored Jan 10, 2025
1 parent ee15010 commit cd425c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-rice-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

expose inbound-rtp.id as streamId
1 change: 1 addition & 0 deletions src/room/track/RemoteAudioTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ export default class RemoteAudioTrack extends RemoteTrack<Track.Kind.Audio> {
if (v.type === 'inbound-rtp') {
receiverStats = {
type: 'audio',
streamId: v.id,
timestamp: v.timestamp,
jitter: v.jitter,
bytesReceived: v.bytesReceived,
Expand Down
1 change: 1 addition & 0 deletions src/room/track/RemoteVideoTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default class RemoteVideoTrack extends RemoteTrack<Track.Kind.Video> {
codecID = v.codecId;
receiverStats = {
type: 'video',
streamId: v.id,
framesDecoded: v.framesDecoded,
framesDropped: v.framesDropped,
framesReceived: v.framesReceived,
Expand Down

0 comments on commit cd425c8

Please sign in to comment.