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

com.opentok.MediaMode Maven / Gradle / Ivy

/**
 * OpenTok Java SDK
 * Copyright (C) 2023 Vonage.
 * http://www.tokbox.com
 *
 * Licensed under The MIT License (MIT). See LICENSE file for more information.
 */
package com.opentok;

/**
 * Defines values for the mediaMode parameter of the
 * {@link SessionProperties.Builder#mediaMode(MediaMode mediaMode)} method.
 */
public enum MediaMode {
    /**
     * The session will transmit streams using the OpenTok Media Server.
     */
    ROUTED ("disabled"),
    /**
     * The session will attempt to transmit streams directly between clients. If two clients
     * cannot send and receive each others' streams, due to firewalls on the clients' networks,
     * their streams will be relayed using the OpenTok TURN Server.
     */
    RELAYED ("enabled");

    private String serialized;

    MediaMode(String s) {
        serialized = s;
    }

    @Override
    public String toString() {
        return serialized;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy