Java 类com.google.android.exoplayer2.extractor.DummyTrackOutput 实例源码

项目:Exoplayer2Radio    文件:ChunkExtractorWrapper.java   
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (trackOutput != null) {
    trackOutput.format(sampleFormat);
  }
}
项目:Exoplayer2Radio    文件:BaseMediaChunkOutput.java   
@Override
public TrackOutput track(int id, int type) {
  for (int i = 0; i < trackTypes.length; i++) {
    if (type == trackTypes[i]) {
      return trackOutputs[i];
    }
  }
  Log.e(TAG, "Unmatched track of type: " + type);
  return new DummyTrackOutput();
}
项目:K-Sonic    文件:ChunkExtractorWrapper.java   
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (trackOutput != null) {
    trackOutput.format(sampleFormat);
  }
}
项目:K-Sonic    文件:BaseMediaChunkOutput.java   
@Override
public TrackOutput track(int id, int type) {
  for (int i = 0; i < trackTypes.length; i++) {
    if (type == trackTypes[i]) {
      return trackOutputs[i];
    }
  }
  Log.e(TAG, "Unmatched track of type: " + type);
  return new DummyTrackOutput();
}
项目:transistor    文件:ChunkExtractorWrapper.java   
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (sampleFormat != null) {
    trackOutput.format(sampleFormat);
  }
}
项目:transistor    文件:BaseMediaChunkOutput.java   
@Override
public TrackOutput track(int id, int type) {
  for (int i = 0; i < trackTypes.length; i++) {
    if (type == trackTypes[i]) {
      return sampleQueues[i];
    }
  }
  Log.e(TAG, "Unmatched track of type: " + type);
  return new DummyTrackOutput();
}