All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.mse.SourceBufferList Maven / Gradle / Ivy

package js.web.mse;


import js.util.collections.ArrayLike;
import js.web.dom.*;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * A simple container list for multiple SourceBuffer objects.
 */
public interface SourceBufferList extends ArrayLike, EventTarget {

    @JSBody(script = "return SourceBufferList.prototype")
    static SourceBufferList prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new SourceBufferList()")
    static SourceBufferList create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    @Nullable
    EventListener getOnaddsourcebuffer();

    @JSProperty
    void setOnaddsourcebuffer(EventListener onaddsourcebuffer);

    default void addAddSourceBufferEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("addsourcebuffer", listener, options);
    }

    default void addAddSourceBufferEventListener(EventListener listener, boolean options) {
        addEventListener("addsourcebuffer", listener, options);
    }

    default void addAddSourceBufferEventListener(EventListener listener) {
        addEventListener("addsourcebuffer", listener);
    }

    default void removeAddSourceBufferEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("addsourcebuffer", listener, options);
    }

    default void removeAddSourceBufferEventListener(EventListener listener, boolean options) {
        removeEventListener("addsourcebuffer", listener, options);
    }

    default void removeAddSourceBufferEventListener(EventListener listener) {
        removeEventListener("addsourcebuffer", listener);
    }

    @JSProperty
    @Nullable
    EventListener getOnremovesourcebuffer();

    @JSProperty
    void setOnremovesourcebuffer(EventListener onremovesourcebuffer);

    default void addRemoveSourceBufferEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("removesourcebuffer", listener, options);
    }

    default void addRemoveSourceBufferEventListener(EventListener listener, boolean options) {
        addEventListener("removesourcebuffer", listener, options);
    }

    default void addRemoveSourceBufferEventListener(EventListener listener) {
        addEventListener("removesourcebuffer", listener);
    }

    default void removeRemoveSourceBufferEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("removesourcebuffer", listener, options);
    }

    default void removeRemoveSourceBufferEventListener(EventListener listener, boolean options) {
        removeEventListener("removesourcebuffer", listener, options);
    }

    default void removeRemoveSourceBufferEventListener(EventListener listener) {
        removeEventListener("removesourcebuffer", listener);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy