Skip to content

Commit

Permalink
exposed inbound-rtp.id as streamId
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hamdananwar committed Jan 10, 2025
1 parent ee15010 commit 634f977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 634f977

Please sign in to comment.