package org.jcodec.movtool; import java.lang.IllegalStateException; import java.lang.System; import org.jcodec.containers.mp4.boxes.MovieBox; import org.jcodec.containers.mp4.boxes.MovieFragmentBox; import java.util.List; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * Like MP4Edit * * @author The JCodec project * */ public class CompoundMP4Edit implements MP4Edit { private List<MP4Edit> edits; public CompoundMP4Edit(List<MP4Edit> edits) { this.edits = edits; } @Override public void applyToFragment(MovieBox mov, MovieFragmentBox[] fragmentBox) { for (MP4Edit command : edits) { command.applyToFragment(mov, fragmentBox); } } @Override public void apply(MovieBox mov) { for (MP4Edit command : edits) { command.apply(mov); } } }