public MediaBox getMdia() { return findFirst(this, MediaBox.class, "mdia"); }
public TrackHeaderBox getTrackHeader() { return findFirst(this, TrackHeaderBox.class, "tkhd"); }
public MediaBox getMdia() { return findFirst(this, MediaBox.class, "mdia"); }
public TrackHeaderBox getTrackHeader() { return findFirst(this, TrackHeaderBox.class, "tkhd"); }
public String getHandlerType() { HandlerBox handlerBox = findFirst(this, HandlerBox.class, "mdia", "hdlr"); if (handlerBox == null) return null; String type = handlerBox.getComponentSubType(); return type; }
public long getMediaDuration() { return findFirst(this, MediaHeaderBox.class, "mdia", "mdhd").getDuration(); }
public List<Edit> getEdits() { EditListBox elst = findFirst(this, EditListBox.class, "edts", "elst"); if (elst == null) return null; return elst.getEdits(); }
public List<Edit> getEdits() { EditListBox elst = findFirst(this, EditListBox.class, "edts", "elst"); if (elst == null) return null; return elst.getEdits(); }
public String getHandlerType() { HandlerBox handlerBox = findFirst(this, HandlerBox.class, "mdia", "hdlr"); if (handlerBox == null) return null; String type = handlerBox.getComponentSubType(); return type; }
public int getTimescale() { return findFirst(this, MediaHeaderBox.class, "mdia", "mdhd").getTimescale(); }
public long getMediaDuration() { return findFirst(this, MediaHeaderBox.class, "mdia", "mdhd").getDuration(); }
public int getTimescale() { return findFirst(this, MediaHeaderBox.class, "mdia", "mdhd").getTimescale(); }
public int getFrameCount() { SampleSizesBox stsz = findFirst(this, SampleSizesBox.class, "mdia", "minf", "stbl", "stsz"); return stsz.getDefaultSize() != 0 ? stsz.getCount() : stsz.getSizes().length; }
public int getFrameCount() { SampleSizesBox stsz = findFirst(this, SampleSizesBox.class, "mdia", "minf", "stbl", "stsz"); return stsz.getDefaultSize() != 0 ? stsz.getCount() : stsz.getSizes().length; }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }