com.google.android.exoplayer2.extractor.DummyTrackOutput Java Examples

The following examples show how to use com.google.android.exoplayer2.extractor.DummyTrackOutput. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChunkExtractorWrapper.java    From K-Sonic with MIT License 5 votes vote down vote up
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (trackOutput != null) {
    trackOutput.format(sampleFormat);
  }
}
 
Example #2
Source File: BaseMediaChunkOutput.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@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();
}
 
Example #3
Source File: BaseMediaChunkOutput.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@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();
}
 
Example #4
Source File: BaseMediaChunkOutput.java    From K-Sonic with MIT License 5 votes vote down vote up
@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();
}
 
Example #5
Source File: BaseMediaChunkOutput.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@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();
}
 
Example #6
Source File: ChunkExtractorWrapper.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (sampleFormat != null) {
    trackOutput.format(sampleFormat);
  }
}
 
Example #7
Source File: BaseMediaChunkOutput.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@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();
}
 
Example #8
Source File: ChunkExtractorWrapper.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
public void bind(TrackOutputProvider trackOutputProvider) {
  if (trackOutputProvider == null) {
    trackOutput = new DummyTrackOutput();
    return;
  }
  trackOutput = trackOutputProvider.track(id, type);
  if (sampleFormat != null) {
    trackOutput.format(sampleFormat);
  }
}
 
Example #9
Source File: BaseMediaChunkOutput.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example #10
Source File: HlsSampleStreamWrapper.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
private static DummyTrackOutput createDummyTrackOutput(int id, int type) {
  Log.w(TAG, "Unmapped track with id " + id + " of type " + type);
  return new DummyTrackOutput();
}
 
Example #11
Source File: HlsSampleStreamWrapper.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
private static DummyTrackOutput createDummyTrackOutput(int id, int type) {
  Log.w(TAG, "Unmapped track with id " + id + " of type " + type);
  return new DummyTrackOutput();
}
 
Example #12
Source File: ScriptTagPayloadReader.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
public ScriptTagPayloadReader() {
  super(new DummyTrackOutput());
  durationUs = C.TIME_UNSET;
}
 
Example #13
Source File: ScriptTagPayloadReader.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
public ScriptTagPayloadReader() {
  super(new DummyTrackOutput());
  durationUs = C.TIME_UNSET;
}
 
Example #14
Source File: HlsSampleStreamWrapper.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
private static DummyTrackOutput createDummyTrackOutput(int id, int type) {
  Log.w(TAG, "Unmapped track with id " + id + " of type " + type);
  return new DummyTrackOutput();
}
 
Example #15
Source File: ChunkExtractorWrapper.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
public BindingTrackOutput(int id, int type, Format manifestFormat) {
  this.id = id;
  this.type = type;
  this.manifestFormat = manifestFormat;
  dummyTrackOutput = new DummyTrackOutput();
}
 
Example #16
Source File: ChunkExtractorWrapper.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
public BindingTrackOutput(int id, int type, Format manifestFormat) {
  this.id = id;
  this.type = type;
  this.manifestFormat = manifestFormat;
  dummyTrackOutput = new DummyTrackOutput();
}
 
Example #17
Source File: ScriptTagPayloadReader.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
public ScriptTagPayloadReader() {
  super(new DummyTrackOutput());
  durationUs = C.TIME_UNSET;
}
 
Example #18
Source File: HlsSampleStreamWrapper.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
private static DummyTrackOutput createDummyTrackOutput(int id, int type) {
  Log.w(TAG, "Unmapped track with id " + id + " of type " + type);
  return new DummyTrackOutput();
}
 
Example #19
Source File: ChunkExtractorWrapper.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
public BindingTrackOutput(int id, int type, Format manifestFormat) {
  this.id = id;
  this.type = type;
  this.manifestFormat = manifestFormat;
  dummyTrackOutput = new DummyTrackOutput();
}
 
Example #20
Source File: HlsSampleStreamWrapper.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
private static DummyTrackOutput createDummyTrackOutput(int id, int type) {
  Log.w(TAG, "Unmapped track with id " + id + " of type " + type);
  return new DummyTrackOutput();
}