io.lindstrom.m3u8.model.MediaPlaylist Maven / Gradle / Ivy
package io.lindstrom.m3u8.model;
import org.immutables.value.Value;
import java.util.List;
import java.util.Optional;
/**
* Media Playlist interface
*/
@Value.Immutable
public interface MediaPlaylist extends Playlist {
int targetDuration();
@Value.Default
default long mediaSequence() {
return 0;
}
@Value.Default
default boolean ongoing() {
return true;
}
Optional allowCache();
Optional playlistType();
@Value.Default
default boolean iFramesOnly() {
return false;
}
List mediaSegments();
static Builder builder() {
return new Builder();
}
class Builder extends MediaPlaylistBuilder {
}
}