Skip to content

feat: add more track analytics#3600

Merged
raviteja83 merged 18 commits intomainfrom
feat/track-video-constraints-analytics
Feb 10, 2026
Merged

feat: add more track analytics#3600
raviteja83 merged 18 commits intomainfrom
feat/track-video-constraints-analytics

Conversation

@raviteja83
Copy link
Copy Markdown
Collaborator

No description provided.

raviteja83 and others added 16 commits January 27, 2026 13:42
Track video/audio constraints passed to getUserMedia and the resulting
track.settings after successful getUserMedia call. This helps debug
issues where requested constraints differ from actual track settings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…acement

Track video/audio constraints and resulting track.settings when tracks
are replaced via replaceTrackWith in HMSLocalVideoTrack and
HMSLocalAudioTrack. This covers track replacement scenarios like
unmuting, device switching, and error recovery.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add applied_constraints from track.getConstraints() to the media
constraints analytics event. This provides a more complete picture:
- requested_constraints: what was passed to getUserMedia
- applied_constraints: what the browser actually applied (from track)
- track_settings: the actual resulting values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add missing getConstraints() method to mock MediaStreamTrack objects
to fix test failures caused by the new media constraints analytics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Track frame rate and FPS metrics from HMSEffectsPlugin when applying
media stream plugins.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…nts analytics

Add webgpu_supported and media_stream_track_processor_supported flags
to the media.constraints event to help identify browser capabilities.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…isher stats

- Add getMetrics() method to HMSEffectsPlugin to expose effects SDK performance metrics
- Add getPluginsMetrics() method to HMSLocalVideoTrack and base HMSTrack class
- Update HMSMediaStreamPlugin interface with optional getMetrics() method
- Add track_settings and effects_metrics fields to publisher stats analytics payload
- Capture native track settings from getSettings() in publisher stats

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…to stats analytics

Add avg_bitrate_bps to subscriber stats, sample_start_ts/sample_end_ts/sample_duration_ms
and enabled state to both publisher and subscriber stats for better observability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d remove enabled from stats

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard-app Ready Ready Preview, Comment Feb 10, 2026 4:42pm
storybook-app Ready Ready Preview, Comment Feb 10, 2026 4:42pm

Request Review

@raviteja83 raviteja83 enabled auto-merge (squash) February 10, 2026 16:39
@raviteja83 raviteja83 merged commit a03bacc into main Feb 10, 2026
3 of 4 checks passed
@raviteja83 raviteja83 deleted the feat/track-video-constraints-analytics branch February 10, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants