How to figure out when data chunk failed to be downloaded – SSME v2 walkthrough

This blog belongs to a series of Smooth Streaming Client v2.0 walkthroughs. You could download this latest Smooth Streaming Client SDks here. We have made a few major changes in this version. In this blog, I will introduce to you how to figure out data chunk information while you are downloading it.

While playing smooth streaming content, you could utilize ChunkDownloadedEventArgs to figure out downloaded chunk information, such as whether data chunk is successfully downloaded, what type of data chunk is, what duration the chunk has and etc. This is very useful for you to monitor data chunk download progress. If you find something wrong, you don’t have to wait the downloader to keep retrying, rather you could route to other media source for instance.

Here is all the information you could get from ChunkDownloadedEventArgs:

You could refer to the table below for more information.

The way to implement ChunkDownloadedEventArgs is quite straight forward. Firstly, we need to hook up ChunkDownloadedEventArgs with smooth streaming player.

Here I implement a method to read out all the useful information from the event args.

One Response to How to figure out when data chunk failed to be downloaded – SSME v2 walkthrough
  1. [...] Provide API access for obtaining data chunk download information, such as whether data chunk gets succe... mingfeiy.com/smooth-streaming-client-sdk

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.