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

The following examples show how to use com.google.android.exoplayer2.extractor.Id3Peeker. 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: Mp3Extractor.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
/**
 * @param flags Flags that control the extractor's behavior.
 * @param forcedFirstSampleTimestampUs A timestamp to force for the first sample, or
 *     {@link C#TIME_UNSET} if forcing is not required.
 */
public Mp3Extractor(@Flags int flags, long forcedFirstSampleTimestampUs) {
  this.flags = flags;
  this.forcedFirstSampleTimestampUs = forcedFirstSampleTimestampUs;
  scratch = new ParsableByteArray(SCRATCH_LENGTH);
  synchronizedHeader = new MpegAudioHeader();
  gaplessInfoHolder = new GaplessInfoHolder();
  basisTimeUs = C.TIME_UNSET;
  id3Peeker = new Id3Peeker();
}
 
Example #2
Source File: Mp3Extractor.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param flags Flags that control the extractor's behavior.
 * @param forcedFirstSampleTimestampUs A timestamp to force for the first sample, or
 *     {@link C#TIME_UNSET} if forcing is not required.
 */
public Mp3Extractor(@Flags int flags, long forcedFirstSampleTimestampUs) {
  this.flags = flags;
  this.forcedFirstSampleTimestampUs = forcedFirstSampleTimestampUs;
  scratch = new ParsableByteArray(SCRATCH_LENGTH);
  synchronizedHeader = new MpegAudioHeader();
  gaplessInfoHolder = new GaplessInfoHolder();
  basisTimeUs = C.TIME_UNSET;
  id3Peeker = new Id3Peeker();
}
 
Example #3
Source File: Mp3Extractor.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param flags Flags that control the extractor's behavior.
 * @param forcedFirstSampleTimestampUs A timestamp to force for the first sample, or
 *     {@link C#TIME_UNSET} if forcing is not required.
 */
public Mp3Extractor(@Flags int flags, long forcedFirstSampleTimestampUs) {
  this.flags = flags;
  this.forcedFirstSampleTimestampUs = forcedFirstSampleTimestampUs;
  scratch = new ParsableByteArray(SCRATCH_LENGTH);
  synchronizedHeader = new MpegAudioHeader();
  gaplessInfoHolder = new GaplessInfoHolder();
  basisTimeUs = C.TIME_UNSET;
  id3Peeker = new Id3Peeker();
}
 
Example #4
Source File: Mp3Extractor.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param flags Flags that control the extractor's behavior.
 * @param forcedFirstSampleTimestampUs A timestamp to force for the first sample, or
 *     {@link C#TIME_UNSET} if forcing is not required.
 */
public Mp3Extractor(@Flags int flags, long forcedFirstSampleTimestampUs) {
  this.flags = flags;
  this.forcedFirstSampleTimestampUs = forcedFirstSampleTimestampUs;
  scratch = new ParsableByteArray(SCRATCH_LENGTH);
  synchronizedHeader = new MpegAudioHeader();
  gaplessInfoHolder = new GaplessInfoHolder();
  basisTimeUs = C.TIME_UNSET;
  id3Peeker = new Id3Peeker();
}
 
Example #5
Source File: Mp3Extractor.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param flags Flags that control the extractor's behavior.
 * @param forcedFirstSampleTimestampUs A timestamp to force for the first sample, or
 *     {@link C#TIME_UNSET} if forcing is not required.
 */
public Mp3Extractor(@Flags int flags, long forcedFirstSampleTimestampUs) {
  this.flags = flags;
  this.forcedFirstSampleTimestampUs = forcedFirstSampleTimestampUs;
  scratch = new ParsableByteArray(SCRATCH_LENGTH);
  synchronizedHeader = new MpegAudioHeader();
  gaplessInfoHolder = new GaplessInfoHolder();
  basisTimeUs = C.TIME_UNSET;
  id3Peeker = new Id3Peeker();
}
 
Example #6
Source File: FlacExtractor.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param flags Flags that control the extractor's behavior.
 */
public FlacExtractor(int flags) {
  outputBuffer = new ParsableByteArray();
  id3Peeker = new Id3Peeker();
  id3MetadataDisabled = (flags & FLAG_DISABLE_ID3_METADATA) != 0;
}
 
Example #7
Source File: FlacExtractor.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param flags Flags that control the extractor's behavior.
 */
public FlacExtractor(int flags) {
  outputBuffer = new ParsableByteArray();
  id3Peeker = new Id3Peeker();
  id3MetadataDisabled = (flags & FLAG_DISABLE_ID3_METADATA) != 0;
}
 
Example #8
Source File: FlacExtractor.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param flags Flags that control the extractor's behavior.
 */
public FlacExtractor(int flags) {
  id3Peeker = new Id3Peeker();
  isId3MetadataDisabled = (flags & FLAG_DISABLE_ID3_METADATA) != 0;
}
 
Example #9
Source File: FlacExtractor.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param flags Flags that control the extractor's behavior.
 */
public FlacExtractor(int flags) {
  id3Peeker = new Id3Peeker();
  isId3MetadataDisabled = (flags & FLAG_DISABLE_ID3_METADATA) != 0;
}