Search in sources :

Example 1 with MpegAudioHeader

use of com.google.android.exoplayer2.extractor.MpegAudioHeader in project ExoPlayer by google.

the class XingSeekerTest method setUp.

@Override
public void setUp() throws Exception {
    MpegAudioHeader xingFrameHeader = new MpegAudioHeader();
    MpegAudioHeader.populateHeader(XING_FRAME_HEADER_DATA, xingFrameHeader);
    seeker = XingSeeker.create(xingFrameHeader, new ParsableByteArray(XING_FRAME_PAYLOAD), XING_FRAME_POSITION, C.LENGTH_UNSET);
    seekerWithInputLength = XingSeeker.create(xingFrameHeader, new ParsableByteArray(XING_FRAME_PAYLOAD), XING_FRAME_POSITION, INPUT_LENGTH);
    xingFrameSize = xingFrameHeader.frameSize;
}
Also used : ParsableByteArray(com.google.android.exoplayer2.util.ParsableByteArray) MpegAudioHeader(com.google.android.exoplayer2.extractor.MpegAudioHeader)

Aggregations

MpegAudioHeader (com.google.android.exoplayer2.extractor.MpegAudioHeader)1 ParsableByteArray (com.google.android.exoplayer2.util.ParsableByteArray)1