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

项目:Exoplayer2Radio    文件:ExoPlayerImplInternal.java   
public boolean selectTracks() throws ExoPlaybackException {
  TrackSelectorResult selectorResult = trackSelector.selectTracks(rendererCapabilities,
      mediaPeriod.getTrackGroups());
  if (selectorResult.isEquivalent(periodTrackSelectorResult)) {
    return false;
  }
  trackSelectorResult = selectorResult;
  return true;
}
项目:K-Sonic    文件:ExoPlayerImplInternal.java   
public boolean selectTracks() throws ExoPlaybackException {
  TrackSelectorResult selectorResult = trackSelector.selectTracks(rendererCapabilities,
      mediaPeriod.getTrackGroups());
  if (selectorResult.isEquivalent(periodTrackSelectorResult)) {
    return false;
  }
  trackSelectorResult = selectorResult;
  return true;
}
项目:transistor    文件:ExoPlayerImplInternal.java   
public boolean selectTracks() throws ExoPlaybackException {
  TrackSelectorResult selectorResult = trackSelector.selectTracks(rendererCapabilities,
      mediaPeriod.getTrackGroups());
  if (selectorResult.isEquivalent(periodTrackSelectorResult)) {
    return false;
  }
  trackSelectorResult = selectorResult;
  return true;
}
项目:transistor    文件:ExoPlayerImplInternal.java   
private void updatePeriodTrackSelectorResult(TrackSelectorResult trackSelectorResult) {
  if (periodTrackSelectorResult != null) {
    disableTrackSelectionsInResult(periodTrackSelectorResult);
  }
  periodTrackSelectorResult = trackSelectorResult;
  if (periodTrackSelectorResult != null) {
    enableTrackSelectionsInResult(periodTrackSelectorResult);
  }
}
项目:transistor    文件:ExoPlayerImplInternal.java   
private void enableTrackSelectionsInResult(TrackSelectorResult trackSelectorResult) {
  for (int i = 0; i < trackSelectorResult.renderersEnabled.length; i++) {
    boolean rendererEnabled = trackSelectorResult.renderersEnabled[i];
    TrackSelection trackSelection = trackSelectorResult.selections.get(i);
    if (rendererEnabled && trackSelection != null) {
      trackSelection.enable();
    }
  }
}
项目:transistor    文件:ExoPlayerImplInternal.java   
private void disableTrackSelectionsInResult(TrackSelectorResult trackSelectorResult) {
  for (int i = 0; i < trackSelectorResult.renderersEnabled.length; i++) {
    boolean rendererEnabled = trackSelectorResult.renderersEnabled[i];
    TrackSelection trackSelection = trackSelectorResult.selections.get(i);
    if (rendererEnabled && trackSelection != null) {
      trackSelection.disable();
    }
  }
}