Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
js.web.mse.SourceBuffer Maven / Gradle / Ivy
package js.web.mse;
import js.web.dom.*;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;
import javax.annotation.Nullable;
/**
* A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.
*/
public interface SourceBuffer extends EventTarget {
@JSBody(script = "return SourceBuffer.prototype")
static SourceBuffer prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new SourceBuffer()")
static SourceBuffer create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSProperty
double getAppendWindowEnd();
@JSProperty
void setAppendWindowEnd(double appendWindowEnd);
@JSProperty
double getAppendWindowStart();
@JSProperty
void setAppendWindowStart(double appendWindowStart);
@JSProperty
AudioTrackList getAudioTracks();
@JSProperty
TimeRanges getBuffered();
@JSProperty
AppendMode getMode();
@JSProperty
void setMode(AppendMode mode);
@JSProperty
@Nullable
EventListener getOnabort();
@JSProperty
void setOnabort(EventListener onabort);
default void addAbortEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("abort", listener, options);
}
default void addAbortEventListener(EventListener listener, boolean options) {
addEventListener("abort", listener, options);
}
default void addAbortEventListener(EventListener listener) {
addEventListener("abort", listener);
}
default void removeAbortEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("abort", listener, options);
}
default void removeAbortEventListener(EventListener listener, boolean options) {
removeEventListener("abort", listener, options);
}
default void removeAbortEventListener(EventListener listener) {
removeEventListener("abort", listener);
}
@JSProperty
@Nullable
EventListener getOnerror();
@JSProperty
void setOnerror(EventListener onerror);
default void addErrorEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("error", listener, options);
}
default void addErrorEventListener(EventListener listener, boolean options) {
addEventListener("error", listener, options);
}
default void addErrorEventListener(EventListener listener) {
addEventListener("error", listener);
}
default void removeErrorEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("error", listener, options);
}
default void removeErrorEventListener(EventListener listener, boolean options) {
removeEventListener("error", listener, options);
}
default void removeErrorEventListener(EventListener listener) {
removeEventListener("error", listener);
}
@JSProperty
@Nullable
EventListener getOnupdate();
@JSProperty
void setOnupdate(EventListener onupdate);
default void addUpdateEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("update", listener, options);
}
default void addUpdateEventListener(EventListener listener, boolean options) {
addEventListener("update", listener, options);
}
default void addUpdateEventListener(EventListener listener) {
addEventListener("update", listener);
}
default void removeUpdateEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("update", listener, options);
}
default void removeUpdateEventListener(EventListener listener, boolean options) {
removeEventListener("update", listener, options);
}
default void removeUpdateEventListener(EventListener listener) {
removeEventListener("update", listener);
}
@JSProperty
@Nullable
EventListener getOnupdateend();
@JSProperty
void setOnupdateend(EventListener onupdateend);
default void addUpdateEndEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("updateend", listener, options);
}
default void addUpdateEndEventListener(EventListener listener, boolean options) {
addEventListener("updateend", listener, options);
}
default void addUpdateEndEventListener(EventListener listener) {
addEventListener("updateend", listener);
}
default void removeUpdateEndEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("updateend", listener, options);
}
default void removeUpdateEndEventListener(EventListener listener, boolean options) {
removeEventListener("updateend", listener, options);
}
default void removeUpdateEndEventListener(EventListener listener) {
removeEventListener("updateend", listener);
}
@JSProperty
@Nullable
EventListener getOnupdatestart();
@JSProperty
void setOnupdatestart(EventListener onupdatestart);
default void addUpdateStartEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("updatestart", listener, options);
}
default void addUpdateStartEventListener(EventListener listener, boolean options) {
addEventListener("updatestart", listener, options);
}
default void addUpdateStartEventListener(EventListener listener) {
addEventListener("updatestart", listener);
}
default void removeUpdateStartEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("updatestart", listener, options);
}
default void removeUpdateStartEventListener(EventListener listener, boolean options) {
removeEventListener("updatestart", listener, options);
}
default void removeUpdateStartEventListener(EventListener listener) {
removeEventListener("updatestart", listener);
}
@JSProperty
TextTrackList getTextTracks();
@JSProperty
double getTimestampOffset();
@JSProperty
void setTimestampOffset(double timestampOffset);
@JSProperty
boolean isUpdating();
@JSProperty
VideoTrackList getVideoTracks();
void abort();
void appendBuffer(BufferSource data);
void remove(double start, double end);
}