{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method SetConfiguration | WebRTC | 2.2.0-preview
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Method SetConfiguration

    SetConfiguration(ref RTCConfiguration)

    This method sets the current configuration of the RTCPeerConnection This lets you change the ICE servers used by the connection and which transport policies to use.

    Declaration
    public RTCErrorType SetConfiguration(ref RTCConfiguration configuration)
    Parameters
    Type Name Description
    RTCConfiguration configuration

    The changes are not additive; instead, the new values completely replace the existing ones.

    Returns
    Type Description
    RTCErrorType

    Error code.

    Examples
    var configuration = new RTCConfiguration
    {
        iceServers = new[]
        {
            new RTCIceServer
            {
                urls = new[] {"stun:stun.l.google.com:19302"},
                username = "",
                credential = "",
                credentialType = RTCIceCredentialType.Password
            }
        }
    };
    var error = myPeerConnection.SetConfiguration(ref configuration);
    if(error == RTCErrorType.None)
    {
        ...
    }
    See Also
    GetConfiguration()
    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)