Mux has the capability to track each network request made by the player, in order to expose network-level metrics such as throughput and latency measurements. In addition, Mux is able to inspect certain response headers, allowing auto-detection of the CDN that was used to serve each manifest, segment, or fragment. Enabling these auto-detection features requires some minor configuration at each of your CDNs.
Note: This feature is available to customers with Pro subscriptions and higher.
Mux currently supports request metrics for the following players, with more being added as they are completed.
- Shaka Player
Simply integrate the player as mentioned in Integration Guide: Web, and we'll automatically track each network request.
In order for Mux to automatically detect which CDN is serving the content to the player, you need to make a few configuration changes to each of your CDNs. These changes are necessary to expose two specific headers.
X-CDN- This is a custom header that you need to add to all responses from each of your CDNs. The value of this should be a name describing that specific CDN; you should lowercase the name and replace spaces with
_s. For example:
Access-Control-Expose-Headers- This should be set on each response, with the value being a comma-separated string of headers to expose to the client. At the least, you should set this to
X-CDN. It is also suggested that you add other identifying headers that your CDN may use, such as
Via, or similar headers. More information on
Access-Control-Expose-Headers, see here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers.