A Bootstrap Info (abst) box contains the information necessary to bootstrap the media-presentation URL requests RFC1630 from the media client to the HTTP server. The media presentation can be either a live or a video-ondemand scenario. This box contains basic information about the server, movie, and segment information. It also contains one or more segment run tables and fragment run tables. In the HTTP streaming segment, the abst box is optional and precedes the Movie (moov) box. In the HTTP streaming fragment, the abst box is required. For a description of the boxes and structure required for HTTP streaming, see Annex C. HTTP Streaming: File Structure.
Inheritance: F4VBox
Esempio n. 1
0
        public F4VBox ReadBox()
        {
            if (currentHeader == null)
                ReadHeader();

            F4VBox box;
            switch (currentHeader.BoxType.ToString())
            {
                case "abst":
                    box = new BootstrapInfoBox();
                    break;
                case "asrt":
                    box = new SegmentRunTableBox();
                    break;
                case "afrt":
                    box = new FragmentRunTableBox();
                    break;
                case "mdat":
                    box = new MediaDataBox();
                    break;
                default:
                    box = new UnknownBox();
                    break;
            }
            box.BoxHeader = currentHeader;
            box.Parse(br);

            currentHeader = null;

            return box;
        }
 public static BootstrapInfoBox FromBase64String(string s)
 {
     var stream = new MemoryStream(System.Convert.FromBase64String(s));
     using (var br = new ExtendedBinaryReader(stream))
     {
         BootstrapInfoBox bib = new BootstrapInfoBox();
         bib.Parse(br);
         return bib;
     }
 }