com.github.alexeylapin.m3u8.model.MediaSegment Maven / Gradle / Ivy
The newest version!
package com.github.alexeylapin.m3u8.model;
import org.immutables.value.Value;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Optional;
/**
* Media Segment interface
*/
@Value.Immutable
public interface MediaSegment {
double duration();
Optional title();
String uri();
Optional byteRange();
Optional programDateTime();
Optional dateRange();
Optional segmentMap();
Optional segmentKey();
@Value.Default
default boolean discontinuity() {
return false;
}
Optional cueOut();
@Value.Default
default boolean cueIn() {
return false;
}
@Value.Default
default boolean gap() {
return false;
}
Optional bitrate();
List partialSegments();
List tvgAttributes();
static Builder builder() {
return new Builder();
}
class Builder extends MediaSegmentBuilder {
}
}