---
title: Media agent for Shaka v4.0.2
source: https://docs.newrelic.com/docs/release-notes/streaming-browser-release-notes/streaming-browser-agent-shaka-26-02-18
---

## Bug fixes

### Fixed `contentBitrate` to accurately report stream bitrate

**Issue:** The `contentBitrate` attribute used `estimatedBandwidth` (the network capacity estimate) as its primary source, which didn't accurately represent the actual bitrate of the playing video stream.

**Solution:** Updated the bitrate calculation to prioritize `streamBandwidth` from Shaka Player statistics, which provides the actual content bitrate of the current video variant as defined in the manifest.

**Impact:** The `contentBitrate` attribute correctly reports the bitrate (in bits per second) of playing video stream rather than the estimated network bandwidth. This provides more accurate telemetry data for video quality monitoring and analytics.

#### Technical details

-   Changed the priority order in `getContentBitratePlayback()` method
-   Uses the `stats.streamBandwidth` as the primary source for content bitrate
-   Updated the `DATAMODEL.md` documentation to reflect the accurate definition
