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

js.web.mediastreams.MediaKeyMessageEvent Maven / Gradle / Ivy

package js.web.mediastreams;

import js.util.buffers.ArrayBuffer;
import js.web.dom.Event;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
 */
public interface MediaKeyMessageEvent extends Event {
    @JSBody(script = "return MediaKeyMessageEvent.prototype")
    static MediaKeyMessageEvent prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = {"type", "eventInitDict"}, script = "return new MediaKeyMessageEvent(type, eventInitDict)")
    static MediaKeyMessageEvent create(String type, MediaKeyMessageEventInit eventInitDict) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "type", script = "return new MediaKeyMessageEvent(type)")
    static MediaKeyMessageEvent create(String type) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    ArrayBuffer getMessage();

    @JSProperty
    MediaKeyMessageType getMessageType();


    interface MediaKeyMessageEventInit extends EventInit {
        @JSProperty
        ArrayBuffer getMessage();

        @JSProperty
        void setMessage(ArrayBuffer message);

        @JSProperty
        MediaKeyMessageType getMessageType();

        @JSProperty
        void setMessageType(MediaKeyMessageType messageType);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy