Java Code Examples for com.google.android.exoplayer2.extractor.ExtractorOutput#endTracks()

The following examples show how to use com.google.android.exoplayer2.extractor.ExtractorOutput#endTracks() . 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: OggExtractor.java    From K-Sonic with MIT License 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  TrackOutput trackOutput = output.track(0, C.TRACK_TYPE_AUDIO);
  output.endTracks();
  // TODO: fix the case if sniff() isn't called
  streamReader.init(output, trackOutput);
}
 
Example 2
Source File: Ac4Extractor.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(
      output, new TrackIdGenerator(/* firstTrackId= */ 0, /* trackIdIncrement= */ 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(/* durationUs= */ C.TIME_UNSET));
}
 
Example 3
Source File: WavExtractor.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  extractorOutput = output;
  trackOutput = output.track(0, C.TRACK_TYPE_AUDIO);
  wavHeader = null;
  output.endTracks();
}
 
Example 4
Source File: RawCcExtractor.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
  trackOutput = output.track(0, C.TRACK_TYPE_TEXT);
  output.endTracks();
  trackOutput.format(format);
}
 
Example 5
Source File: WavExtractor.java    From K-Sonic with MIT License 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  extractorOutput = output;
  trackOutput = output.track(0, C.TRACK_TYPE_AUDIO);
  wavHeader = null;
  output.endTracks();
}
 
Example 6
Source File: Ac3Extractor.java    From K-Sonic with MIT License 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader = new Ac3Reader(); // TODO: Add support for embedded ID3.
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 7
Source File: AdtsExtractor.java    From K-Sonic with MIT License 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader = new AdtsReader(true);
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 8
Source File: WavExtractor.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  extractorOutput = output;
  trackOutput = output.track(0, C.TRACK_TYPE_AUDIO);
  wavHeader = null;
  output.endTracks();
}
 
Example 9
Source File: RawCcExtractor.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
  trackOutput = output.track(0, C.TRACK_TYPE_TEXT);
  output.endTracks();
  trackOutput.format(format);
}
 
Example 10
Source File: RawCcExtractor.java    From K-Sonic with MIT License 5 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
  trackOutput = output.track(0, C.TRACK_TYPE_TEXT);
  output.endTracks();
  trackOutput.format(format);
}
 
Example 11
Source File: AmrExtractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput extractorOutput) {
  this.extractorOutput = extractorOutput;
  trackOutput = extractorOutput.track(/* id= */ 0, C.TRACK_TYPE_AUDIO);
  extractorOutput.endTracks();
}
 
Example 12
Source File: AmrExtractor.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput extractorOutput) {
  this.extractorOutput = extractorOutput;
  trackOutput = extractorOutput.track(/* id= */ 0, C.TRACK_TYPE_AUDIO);
  extractorOutput.endTracks();
}
 
Example 13
Source File: Ac3Extractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 14
Source File: AdtsExtractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 15
Source File: AdtsExtractor.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.extractorOutput = output;
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
}
 
Example 16
Source File: AdtsExtractor.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.extractorOutput = output;
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
}
 
Example 17
Source File: Ac3Extractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 18
Source File: AdtsExtractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 19
Source File: AmrExtractor.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput extractorOutput) {
  this.extractorOutput = extractorOutput;
  trackOutput = extractorOutput.track(/* id= */ 0, C.TRACK_TYPE_AUDIO);
  extractorOutput.endTracks();
}
 
Example 20
Source File: Ac3Extractor.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  reader.createTracks(output, new TrackIdGenerator(0, 1));
  output.endTracks();
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}