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); }
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); }