public void bind(TrackOutputProvider trackOutputProvider) { if (trackOutputProvider == null) { trackOutput = new DummyTrackOutput(); return; } trackOutput = trackOutputProvider.track(id, type); if (trackOutput != null) { trackOutput.format(sampleFormat); } }
@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(); }
public void bind(TrackOutputProvider trackOutputProvider) { if (trackOutputProvider == null) { trackOutput = new DummyTrackOutput(); return; } trackOutput = trackOutputProvider.track(id, type); if (sampleFormat != null) { trackOutput.format(sampleFormat); } }
@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(); }