com.google.android.exoplayer.util.MpegAudioHeader

Here are the examples of the java api class com.google.android.exoplayer.util.MpegAudioHeader taken from open source projects.

1. XingSeekerTest#setUp()

Project: ExoPlayer
Source File: XingSeekerTest.java
View license
@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.UNKNOWN_TIME_US);
    seekerWithInputLength = XingSeeker.create(xingFrameHeader, new ParsableByteArray(XING_FRAME_PAYLOAD), XING_FRAME_POSITION, INPUT_LENGTH);
    xingFrameSize = xingFrameHeader.frameSize;
}