public String getName() { return "timeScale(" + source.getName() + ")"; }
public String getName() { return parent.getName() + "'"; }
public String getName() { return "timscale(" + source.getName() + ")"; }
public String getName() { return "enc(" + source.getName() + ")"; }
public String getName() { return "timscale(" + source.getName() + ")"; }
/** * Wraps an existing track and masks out a number of samples. * Works like {@link java.util.List#subList(int, int)}. * * @param origTrack the original <code>Track</code> * @param fromSample first sample in the new <code>Track</code> - beginning with 0 * @param toSample first sample not in the new <code>Track</code> - beginning with 0 */ public ClippedTrack(Track origTrack, long fromSample, long toSample) { super("crop(" + origTrack.getName() + ")"); this.origTrack = origTrack; assert fromSample <= Integer.MAX_VALUE; assert toSample <= Integer.MAX_VALUE; this.fromSample = (int) fromSample; this.toSample = (int) toSample; }
public static String appendTracknames(Track... tracks) { String name = ""; for (Track track : tracks) { name += track.getName() + " + "; } return name.substring(0, name.length() - 3); }
public ReplaceSampleTrack(Track origTrack, long sampleNumber, ByteBuffer content) { super("replace(" + origTrack.getName() + ")"); this.origTrack = origTrack; this.sampleNumber = sampleNumber; this.sampleContent = new SampleImpl(content, this.origTrack.getSamples().get(l2i(sampleNumber)).getSampleEntry()); this.samples = new ReplaceASingleEntryList(); }
public String getName() { return parent.getName() + "'"; }
public String getName() { return "timscale(" + source.getName() + ")"; }
public String getName() { return "enc(" + source.getName() + ")"; }
public String getName() { return "timscale(" + source.getName() + ")"; }
public String getName() { return "timeScale(" + source.getName() + ")"; }
/** * Wraps an existing track and masks out a number of samples. * Works like {@link java.util.List#subList(int, int)}. * * @param origTrack the original <code>Track</code> * @param fromSample first sample in the new <code>Track</code> - beginning with 0 * @param toSample first sample not in the new <code>Track</code> - beginning with 0 */ public ClippedTrack(Track origTrack, long fromSample, long toSample) { super("crop(" + origTrack.getName() + ")"); this.origTrack = origTrack; assert fromSample <= Integer.MAX_VALUE; assert toSample <= Integer.MAX_VALUE; this.fromSample = (int) fromSample; this.toSample = (int) toSample; }
public static String appendTracknames(Track... tracks) { String name = ""; for (Track track : tracks) { name += track.getName() + " + "; } return name.substring(0, name.length() - 3); }
public static String findRepresentationId(Track track, MPDtype mpd) { HashSet<String> ids = new HashSet<>(); for (PeriodType periodType : mpd.getPeriod()) { for (AdaptationSetType adaptationSetType : periodType.getAdaptationSet()) { for (RepresentationType representationType : adaptationSetType.getRepresentation()) { ids.add(representationType.getId()); } } } if (ids.contains(FilenameUtils.getBaseName(track.getName()))) { return FilenameUtils.getBaseName(track.getName()) + "-" + track.getTrackMetaData().getTrackId(); } else { return FilenameUtils.getBaseName(track.getName()); } }
public class Library { // ... existing code ... public void sort() { class TrackPlayCountComparator implements Comparator<Track> { @Override public int compare(Track t1, Track t2) { int compare = t2.getPlayCount() - t1.getPlayCount(); if (compare == 0) { return t1.getName().compareTo(t2.getName()); } return compare; } } Collections.sort(this.tracks, new TrackPlayCountComparator()); } }
public void randomAllTracks() { List<Track> randomList = buildRandomList(); playList(randomList); } private List<Track> buildRandomList() { List<Track> randomList = new ArrayList<Track>(this.tracks); Collections.shuffle(randomList); return randomList; } public void playList(List<Track> playList) { if(playList.size() > 0) { for(Track track : playList) { player.startPlaying(track.getName()); } } }
public ReplaceSampleTrack(Track origTrack, long sampleNumber, ByteBuffer content) { super("replace(" + origTrack.getName() + ")"); this.origTrack = origTrack; this.sampleNumber = sampleNumber; this.sampleContent = new SampleImpl(content, this.origTrack.getSamples().get(l2i(sampleNumber)).getSampleEntry()); this.samples = new ReplaceASingleEntryList(); }