Feature

Audio and Subtitle Track Inspection in Debug Overlay

TL;DR Snapshot

Stream Probe now captures audio and subtitle track data through the PlayerInterceptor and surfaces it in the debug overlay. Two new models, AudioTrackInfo and SubtitleTrackInfo, handle the data layer. No setup changes needed if you already use the overlay.

Share this update

Stream Probe introduces AudioTrackInfo and SubtitleTrackInfo data models in this update, bringing audio and subtitle track inspection directly into the player debug overlay.

TL;DR

You can now inspect audio and subtitle tracks from the debug overlay without touching logs. The PlayerInterceptor captures track data automatically, and the overlay panel renders it alongside existing playback info.

What's New

  • AudioTrackInfo model: captures language, codec, channel count, and bitrate for each available audio track
  • SubtitleTrackInfo model: captures language, label, and format for each subtitle track
  • OverlayPanelView updated: renders both audio and subtitle track info in the existing debug panel
  • RenditionListAdapter extended: lists audio and subtitle tracks alongside video renditions
  • PlayerInterceptor updated: intercepts and records audio and subtitle track selection events
  • Unit tests added: covers overlay formatting edge cases and error handling for both new models

How to Use

No API changes required. If you already have the Stream Probe overlay integrated, audio and subtitle track data will appear automatically once tracks are loaded by the player.

To access track info programmatically:

// AudioTrackInfo and SubtitleTrackInfo are now available via the interceptor
let audioTracks = interceptor.audioTracks
let subtitleTracks = interceptor.subtitleTracks

FAQ

[{"question": "Do I need to change my existing Stream Probe setup to see audio and subtitle tracks?", "answer": "No. If you already have the debug overlay enabled, audio and subtitle track data will appear automatically. No configuration changes needed."}, {"question": "What data does AudioTrackInfo expose?", "answer": "AudioTrackInfo captures language, codec, channel count, and bitrate for each available audio track in the stream."}, {"question": "Are the new models available for unit testing in my own test suite?", "answer": "Yes. AudioTrackInfo and SubtitleTrackInfo are public models. Stream Probe also ships new unit tests covering formatting and error handling that you can reference as examples."}, {"question": "Does this change how video rendition switching is displayed in the overlay?", "answer": "No. Video rendition data is unchanged. Audio and subtitle tracks appear as separate sections in the RenditionListAdapter alongside the existing rendition list."}]