Esempio n. 1
0
        public Moov(FileStream fs, ulong maximumLength)
        {
            Tracks = new List<Trak>();
            Position = (ulong) fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!InitializeSizeAndName(fs))
                    return;

                if (Name == "trak")
                    Tracks.Add(new Trak(fs, Position));
                else if (Name == "mvhd")
                    Mvhd = new Mvhd(fs);

                fs.Seek((long)Position, SeekOrigin.Begin);
            }
        }
Esempio n. 2
0
        public Moov(FileStream fs, ulong maximumLength)
        {
            Tracks = new List <Trak>();
            pos    = (ulong)fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!InitializeSizeAndName(fs))
                {
                    return;
                }

                if (name == "trak")
                {
                    Tracks.Add(new Trak(fs, pos));
                }
                else if (name == "mvhd")
                {
                    Mvhd = new Mvhd(fs, pos);
                }

                fs.Seek((long)pos, SeekOrigin.Begin);
            }
        }