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

The following examples show how to use com.google.android.exoplayer2.extractor.ExtractorOutput#seekMap() . 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: 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 2
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 3
Source File: Ac4Extractor.java    From Telegram-FOSS with GNU General Public License v2.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 4
Source File: RawCcExtractor.java    From TelePlus-Android 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 5
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 6
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 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: 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 9
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));
}
 
Example 10
Source File: WebvttExtractor.java    From K-Sonic with MIT License 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 11
Source File: PsExtractor.java    From K-Sonic with MIT License 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 12
Source File: TsExtractor.java    From K-Sonic with MIT License 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 13
Source File: WebvttExtractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 14
Source File: WebvttExtractor.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 15
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 16
Source File: WebvttExtractor.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
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: WebvttExtractor.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void init(ExtractorOutput output) {
  this.output = output;
  output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
 
Example 20
Source File: Ac3Extractor.java    From MediaSDK with Apache License 2.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));
}