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>();
            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);
            }
        }
        public Moov(FileStream fs, ulong maximumLength)
        {
            this.Tracks = new List<Trak>();
            this.Position = (ulong)fs.Position;
            while (fs.Position < (long)maximumLength)
            {
                if (!this.InitializeSizeAndName(fs))
                {
                    return;
                }

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

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

                switch (Name)
                {
                    case "trak":
                        Tracks.Add(new Trak(fs, Position));
                        break;
                    case "mvhd":
                        Mvhd = new Mvhd(fs);
                        break;
                }

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