com.iheartradio.m3u8.PlaylistLineParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-m3u8 Show documentation
Show all versions of open-m3u8 Show documentation
An open source M3U8 playlist parser java library.
The newest version!
package com.iheartradio.m3u8;
import com.iheartradio.m3u8.data.PlaylistData;
class PlaylistLineParser implements LineParser {
@Override
public void parse(String line, ParseState state) {
final PlaylistData.Builder builder = new PlaylistData.Builder();
final MasterParseState masterState = state.getMaster();
masterState.playlists.add(builder
.withUri(line)
.withStreamInfo(masterState.streamInfo)
.build());
masterState.streamInfo = null;
}
}