Container for track meta-data
Inheritance: Box
コード例 #1
0
ファイル: moov.cs プロジェクト: i-e-b/HLS---Smooth-Encoder
        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);
        }
コード例 #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);
        }