Root level fragment signalling box. Sibling of ftyp, moof, mdat and mfra
Inheritance: Box
Example #1
0
        public moov(params MediaStream[] Streams)
            : base("moov")
        {
            // Add a basic header:
            head = new mvhd();
            AddChild(head);

            // Add a track record for each stream (specific to format)
            foreach (var stream in Streams) {
                structure = new trak(stream.Width, stream.Height, stream.TrackId);
                AddChild(structure);
            }

            // add extensions to mark as fragmented:
            mvex extensions = new mvex(Streams);
            AddChild(extensions);
        }
Example #2
0
        public moov(params MediaStream[] Streams) : base("moov")
        {
            // Add a basic header:
            head = new mvhd();
            AddChild(head);

            // Add a track record for each stream (specific to format)
            foreach (var stream in Streams)
            {
                structure = new trak(stream.Width, stream.Height, stream.TrackId);
                AddChild(structure);
            }

            // add extensions to mark as fragmented:
            mvex extensions = new mvex(Streams);

            AddChild(extensions);
        }