Exemple #1
0
        internal VideoInformation(Mp4Reader reader)
        {
            foreach (eBoxType boxType in reader.readChildren())
            {
                switch (boxType)
                {
                default:
                    // dinf is useless but mandatory in the spec.
                    // vmhd is useless, as well.
                    reader.skipCurrentBox();
                    break;

                case eBoxType.stbl:
                    sampleTable = new SampleTable(reader);
                    break;
                }
            }
        }
Exemple #2
0
        internal AudioInformation(Mp4Reader reader)
        {
            foreach (eBoxType boxType in reader.readChildren())
            {
                switch (boxType)
                {
                case eBoxType.smhd:
                    balance = readHeader(reader);
                    break;

                default:
                    // dinf is useless but mandatory in the spec
                    reader.skipCurrentBox();
                    break;

                case eBoxType.stbl:
                    sampleTable = new SampleTable(reader);
                    break;
                }
            }
        }