package im.actor.runtime;

import org.jetbrains.annotations.NotNull;

import im.actor.runtime.promise.Promise;
import im.actor.runtime.promise.Promises;
import im.actor.runtime.webrtc.WebRTCIceServer;
import im.actor.runtime.webrtc.WebRTCMediaStream;
import im.actor.runtime.webrtc.WebRTCPeerConnection;
import im.actor.runtime.webrtc.WebRTCSettings;

public class WebRTCRuntimeProvider implements WebRTCRuntime {

    @NotNull
    @Override
    public Promise<WebRTCPeerConnection> createPeerConnection(WebRTCIceServer[] webRTCIceServers, WebRTCSettings settings) {
        return Promise.failure(new RuntimeException("Dumb"));
    }

    @NotNull
    @Override
    public Promise<WebRTCMediaStream> getUserAudio() {
        return Promise.failure(new RuntimeException("Dumb"));
    }

    @Override
    public boolean supportsPreConnections() {
        throw new RuntimeException("Dumb");
    }
}

@@ -705,14 +705,36 @@
 User
-Audio(
+Media(boolean isVideoEnabled
 ) %7B%0A

update shared WebRTCRuntimeProvider