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

js.web.dom.AudioTrack Maven / Gradle / Ivy

package js.web.dom;

import js.lang.Any;
import js.web.mse.SourceBuffer;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * A single audio track from one of the HTML media elements, <audio> or <video>.
 */
public interface AudioTrack extends Any {
    @JSBody(script = "return AudioTrack.prototype")
    static AudioTrack prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

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

    @JSProperty
    boolean isEnabled();

    @JSProperty
    void setEnabled(boolean enabled);

    @JSProperty
    String getId();

    @JSProperty
    String getKind();

    @JSProperty
    void setKind(String kind);

    @JSProperty
    String getLabel();

    @JSProperty
    String getLanguage();

    @JSProperty
    void setLanguage(String language);

    @JSProperty
    @Nullable
    SourceBuffer getSourceBuffer();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy