Surfmeter Player SDK (Web) Changelog
This is the changelog for the Surfmeter Player SDK for the web. Each release lists the versions of the packages it includes. Changes that name a player apply only to the package for that player.
2026-11-03
This release includes @surfmeter/client-analytics v1.22.0 (plain HTML5 video), @surfmeter/videojs-analytics v2.7.0, @surfmeter/shaka-player-analytics v0.9.0, @surfmeter/theoplayer-web-analytics v0.8.0 and @surfmeter/chromecast-analytics v2.1.0.
- Send a standardized SVTA2070 code, a fatal flag and the HTTP status with each player error, next to the raw code of the player
- Change in behavior: a fatal error no longer ends the session at once. The session stays open for 30 seconds, so that it can continue after a successful retry. If playback does not resume, it ends as aborted with the reason
playbackError. - Change in behavior: errors reported with
onPlaybackError()no longer end the session, unless you setfatal: true, which starts the same 30 seconds - Shaka Player: recoverable errors no longer end the session
- Plain HTML5 video: report errors of the video element automatically
- A session sends at most 10 identical errors and at most 50 errors per severity
2026-11-02
This release includes @surfmeter/client-analytics v1.21.1 (plain HTML5 video), @surfmeter/videojs-analytics v2.6.3, @surfmeter/shaka-player-analytics v0.8.3, @surfmeter/theoplayer-web-analytics v0.7.3 and @surfmeter/chromecast-analytics v2.0.1.
- The bundles now use ES2017 JavaScript syntax, including the code of their dependencies, so that they load in older browsers. Before, they needed Chrome 80 and Safari 16 or newer. See Browser support.
- Video.js, Shaka Player and THEOplayer: fix for
measure()failing in browsers withoutcrypto.randomUUID, such as Chrome before version 92, and on pages not served over HTTPS
2026-10-31
This release includes @surfmeter/client-analytics v1.21.0 (plain HTML5 video), @surfmeter/videojs-analytics v2.6.2, @surfmeter/shaka-player-analytics v0.8.2, @surfmeter/theoplayer-web-analytics v0.7.2 and @surfmeter/chromecast-analytics v2.0.0.
- Support hls.js 1.5 and newer in Safari, which attaches the stream to the video element with a
<source>element (ManagedMediaSource). Before, the SDK sent no data in this case. - Plain HTML5 video: also see the network requests of players that keep their own reference to the browser's
fetchfunction, such as THEOplayer, if the SDK is loaded before the player. The analytics instance can now be created later. This gives a bitrate and video quality reports in Firefox and Safari for these players. - THEOplayer: send the bitrate and video quality reports in Firefox and Safari also for streams without an average bandwidth, such as DASH streams
- Chromecast: first documented release of the adapter for CAF Web Receivers, see Usage.
ChromecastAnalyticsnow measures the video element of the receiver and sends video quality reports. It sends the URL of the loaded media as the manifest URL. - Chromecast: the
ChromecastAnalytics2class is removed. UseChromecastAnalytics, and callmeasure()once the media has loaded, for example onPLAYER_LOAD_COMPLETE.
2026-10-30
This release includes @surfmeter/client-analytics v1.20.0 (plain HTML5 video), @surfmeter/videojs-analytics v2.6.1, @surfmeter/shaka-player-analytics v0.8.1 and @surfmeter/theoplayer-web-analytics v0.7.1.
- Add the
deviceTypeanddisplaySizeconstructor options, which set the device type (pcormobile) and the display size used to calculate the video quality score (the display size only if the SDK cannot measure the size of the video element) - Add the
contentTypemeasurement option, which sets the content type of the video (for example,liveorfeature) instead of detecting it from the duration - The SDK ignores invalid values of these three options
- Plain HTML5 video: fix for
streamId,metadataandparamspassed tomeasure()not being sent
2026-10-29
This release includes @surfmeter/client-analytics v1.19.0 (plain HTML5 video), @surfmeter/videojs-analytics v2.5.0, @surfmeter/shaka-player-analytics v0.7.0 and @surfmeter/theoplayer-web-analytics v0.6.0.
- Send the first video quality report 5 seconds after the playback starts, and then one report for every 10 seconds of playback instead of every 20 seconds, so that short sessions are reported as well
- Send the remaining data when the page is hidden, for example when the user switches to another tab or app
- End the session when the user closes the page or navigates away, and send the final report, with the session marked as aborted with the reason
pageHide destroy()now sends a final report for the session, and retries sending it if it fails- Add
abort(reason)to the handler returned bymeasure(), which ends the session as aborted with a free-text reason (defaultaborted), for example when the user leaves the video - A playback error now ends the session as aborted with the reason
playbackError, instead of as finished - Send sessions that end before the video started playing, if the playback was attempted, so that video start failures and exits before playback are counted
- Report stalls sooner, also if no new part of the video can be reported yet, and count a stall that is still going on when the session ends
- Fix for implausible bitrate and frame rate values in video quality reports after quality switches and seeks
- Fix for metadata and parameters set with
setMetadata()andsetMeasurementParams()not being sent - Fix for events that could be lost when sending a report failed
- Lower CPU usage before the playback starts
- Plain HTML5 video: send video quality reports also if the codec is not known, for example with hls.js, assuming H.264 video and AAC audio
- Plain HTML5 video: send only ad, error and CDN events along with the video quality reports, instead of all playback events, which reduces the amount of data sent (the packages for the other players already did this)
- Shaka Player: end the session when the player is destroyed, not only when it is detached from the video element
- Shaka Player: fix for bitrate and codec changes not being picked up when the player switches quality or a track is selected, and for missing track information when
measure()is called afterplayer.load() - Video.js: end the session when the player is disposed
- THEOplayer: end the session when the player is destroyed
- THEOplayer: set
surfmeterMonitoringIdon the player's container element (player.element) again while the session runs