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

js.web.webrtc.RTCSrtpSdesTransport Maven / Gradle / Ivy

package js.web.webrtc;

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

import javax.annotation.Nullable;

/**
 * Created by Artem Godin on 1/22/2020.
 */
public interface RTCSrtpSdesTransport extends EventTarget, RTCTransport {
    @JSBody(script = "return RTCSrtpSdesTransport.prototype")
    static RTCSrtpSdesTransport prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = {"transport", "encryptParameters", "decryptParameters"}, script = "return new RTCSrtpSdesTransport(transport, encryptParameters, decryptParameters)")
    static RTCSrtpSdesTransport create(RTCIceTransport transport, RTCSrtpSdesParameters encryptParameters, RTCSrtpSdesParameters decryptParameters) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

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

    @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
    RTCIceTransport getTransport();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy