com.github.alexeylapin.m3u8.model.MediaPlaylist Maven / Gradle / Ivy
The newest version!
package com.github.alexeylapin.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 long discontinuitySequence() {
return 0;
}
@Value.Default
default boolean ongoing() {
return true;
}
Optional allowCache();
Optional playlistType();
@Value.Default
default boolean iFramesOnly() {
return false;
}
List mediaSegments();
Optional serverControl();
Optional partialSegmentInformation();
List partialSegments();
Optional skip();
Optional preloadHint();
List renditionReports();
static Builder builder() {
return new Builder();
}
class Builder extends MediaPlaylistBuilder {
}
}