Java 类com.google.android.exoplayer2.trackselection.MappingTrackSelector.SelectionOverride 实例源码

项目:ExoPlayer-Offline    文件:TrackSelectionHelper.java   
private static int[] getTracksRemoving(SelectionOverride override, int removedTrack) {
  int[] tracks = new int[override.length - 1];
  int trackCount = 0;
  for (int i = 0; i < tracks.length + 1; i++) {
    int track = override.tracks[i];
    if (track != removedTrack) {
      tracks[trackCount++] = track;
    }
  }
  return tracks;
}
项目:MDVideo    文件:TrackSelectionHelper.java   
private static int[] getTracksRemoving(SelectionOverride override, int removedTrack) {
    int[] tracks = new int[override.length - 1];
    int trackCount = 0;
    for (int i = 0; i < tracks.length + 1; i++) {
        int track = override.tracks[i];
        if (track != removedTrack) {
            tracks[trackCount++] = track;
        }
    }
    return tracks;
}
项目:Komica    文件:TrackSelectionHelper.java   
private static int[] getTracksRemoving(SelectionOverride override, int removedTrack) {
  int[] tracks = new int[override.length - 1];
  int trackCount = 0;
  for (int i = 0; i < tracks.length + 1; i++) {
    int track = override.tracks[i];
    if (track != removedTrack) {
      tracks[trackCount++] = track;
    }
  }
  return tracks;
}
项目:transistor    文件:TrackSelectionHelper.java   
private static int[] getTracksRemoving(SelectionOverride override, int removedTrack) {
  int[] tracks = new int[override.length - 1];
  int trackCount = 0;
  for (int i = 0; i < tracks.length + 1; i++) {
    int track = override.tracks[i];
    if (track != removedTrack) {
      tracks[trackCount++] = track;
    }
  }
  return tracks;
}
项目:ExoPlayer-Offline    文件:TrackSelectionHelper.java   
private void setOverride(int group, int[] tracks, boolean enableRandomAdaptation) {
  TrackSelection.Factory factory = tracks.length == 1 ? FIXED_FACTORY
      : (enableRandomAdaptation ? RANDOM_FACTORY : adaptiveVideoTrackSelectionFactory);
  override = new SelectionOverride(factory, group, tracks);
}
项目:ExoPlayer-Offline    文件:TrackSelectionHelper.java   
private static int[] getTracksAdding(SelectionOverride override, int addedTrack) {
  int[] tracks = override.tracks;
  tracks = Arrays.copyOf(tracks, tracks.length + 1);
  tracks[tracks.length - 1] = addedTrack;
  return tracks;
}
项目:MDVideo    文件:TrackSelectionHelper.java   
private void setOverride(int group, int[] tracks, boolean enableRandomAdaptation) {
    TrackSelection.Factory factory = tracks.length == 1 ? FIXED_FACTORY
            : (enableRandomAdaptation ? RANDOM_FACTORY : adaptiveVideoTrackSelectionFactory);
    override = new SelectionOverride(factory, group, tracks);
}
项目:MDVideo    文件:TrackSelectionHelper.java   
private static int[] getTracksAdding(SelectionOverride override, int addedTrack) {
    int[] tracks = override.tracks;
    tracks = Arrays.copyOf(tracks, tracks.length + 1);
    tracks[tracks.length - 1] = addedTrack;
    return tracks;
}
项目:Komica    文件:TrackSelectionHelper.java   
private void setOverride(int group, int[] tracks, boolean enableRandomAdaptation) {
  TrackSelection.Factory factory = tracks.length == 1 ? FIXED_FACTORY
      : (enableRandomAdaptation ? RANDOM_FACTORY : adaptiveVideoTrackSelectionFactory);
  override = new SelectionOverride(factory, group, tracks);
}
项目:Komica    文件:TrackSelectionHelper.java   
private static int[] getTracksAdding(SelectionOverride override, int addedTrack) {
  int[] tracks = override.tracks;
  tracks = Arrays.copyOf(tracks, tracks.length + 1);
  tracks[tracks.length - 1] = addedTrack;
  return tracks;
}
项目:transistor    文件:TrackSelectionHelper.java   
private void setOverride(int group, int[] tracks, boolean enableRandomAdaptation) {
  TrackSelection.Factory factory = tracks.length == 1 ? FIXED_FACTORY
      : (enableRandomAdaptation ? RANDOM_FACTORY : adaptiveTrackSelectionFactory);
  override = new SelectionOverride(factory, group, tracks);
}
项目:transistor    文件:TrackSelectionHelper.java   
private static int[] getTracksAdding(SelectionOverride override, int addedTrack) {
  int[] tracks = override.tracks;
  tracks = Arrays.copyOf(tracks, tracks.length + 1);
  tracks[tracks.length - 1] = addedTrack;
  return tracks;
}