On top of the stats API exposed by the SDK, we created a view helper to help you integrate and understand CDN Mesh Delivery faster. The StatsView will inform you about the different states of the SDK lifecycle and Streamroot metrics.
The view looks like the following:
Using the SDK
To add statsview, call the corresponding method from the Mesh Delivery Client instance:
Swift
dnaClient?.displayStats(onView: contentOverlayView!)
Objective-C
[self.dnaClient displayStatsOnView: self.contentOverlayView];
Using the plugin
strPlugin?.dnaClient?.displayStats(onView: contentOverlayView!)
Knowing how many peer sources are connected to you and how much offload a single SDK instance is performing while you are integrating the SDK could be useful. It could also be used to send data to third parties analytics.
Please refer to our Client API documentation to learn how to use it.