io.lindstrom.m3u8.model.MediaSegment Maven / Gradle / Ivy
package io.lindstrom.m3u8.model;
import org.immutables.value.Value;
import java.time.OffsetDateTime;
import java.util.Optional;
/**
* Media Segment interface
*/
@Value.Immutable
public interface MediaSegment {
double duration();
Optional title();
String uri();
Optional byteRange();
Optional programDateTime();
Optional segmentMap();
Optional segmentKey();
@Value.Default
default boolean discontinuity() {
return false;
}
static Builder builder() {
return new Builder();
}
class Builder extends MediaSegmentBuilder {
}
}