Ejemplo n.º 1
0
        public List <int> GetListTrackToDecrypt()
        {
            List <int> result = new List <int>();

            if (Children != null)
            {
                foreach (var box in Children)
                {
                    if (box.GetBoxType() == "trak")
                    {
                        Mp4Box encbox = box.FindChildBox("encv");
                        if (encbox == null)
                        {
                            encbox = box.FindChildBox("enca");
                            if (encbox == null)
                            {
                                encbox = box.FindChildBox("enct");
                            }
                        }
                        if (encbox != null)
                        {
                            Mp4BoxTRAK trakbox = box as Mp4BoxTRAK;
                            if (trakbox != null)
                            {
                                result.Add(trakbox.GetTrackID());
                            }
                        }
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 2
0
        public List <int> GetListTrack()
        {
            List <int> result = new List <int>();

            if (Children != null)
            {
                foreach (var box in Children)
                {
                    if (box.GetBoxType() == "trak")
                    {
                        Mp4BoxTRAK trakbox = box as Mp4BoxTRAK;
                        if (trakbox != null)
                        {
                            result.Add(trakbox.GetTrackID());
                        }
                    }
                }
            }
            return(result);
        }