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

                if (Name == "mdia")
                    Mdia = new Mdia(fs, Position);
                else if (Name == "tkhd")
                    Tkhd = new Tkhd(fs);

                fs.Seek((long)Position, SeekOrigin.Begin);
            }
        }
        public Trak(FileStream fs, ulong maximumLength)
        {
            this.Position = (ulong)fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!this.InitializeSizeAndName(fs))
                {
                    return;
                }

                if (this.Name == "mdia")
                {
                    this.Mdia = new Mdia(fs, this.Position);
                }
                else if (this.Name == "tkhd")
                {
                    this.Tkhd = new Tkhd(fs);
                }

                fs.Seek((long)this.Position, SeekOrigin.Begin);
            }
        }
Esempio n. 3
0
        public Trak(FileStream fs, ulong maximumLength)
        {
            Position = (ulong)fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!InitializeSizeAndName(fs))
                {
                    return;
                }

                if (Name == "mdia")
                {
                    Mdia = new Mdia(fs, Position);
                }
                else if (Name == "tkhd")
                {
                    Tkhd = new Tkhd(fs);
                }

                fs.Seek((long)Position, SeekOrigin.Begin);
            }
        }
Esempio n. 4
0
        public Trak(FileStream fs, ulong maximumLength)
        {
            Position = (ulong)fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!InitializeSizeAndName(fs))
                {
                    return;
                }

                switch (Name)
                {
                    case "mdia":
                        Mdia = new Mdia(fs, Position);
                        break;
                    case "tkhd":
                        Tkhd = new Tkhd(fs);
                        break;
                }

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