Skip to content

How to pass RtcConfiguration with ice_servers? #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
avivace opened this issue Apr 4, 2025 · 0 comments
Open

How to pass RtcConfiguration with ice_servers? #408

avivace opened this issue Apr 4, 2025 · 0 comments

Comments

@avivace
Copy link

avivace commented Apr 4, 2025

Hi, I'm trying to to use a specific TURN server while using the real-time SDK for Python but I couldn't find a precise example .. Does this look ok?

ice_servers = [
            room_pb2.IceServer(
                urls=["turn:turn.myserver"], 

            )
        ]

        rtc_config = rtc.RtcConfiguration(
            ice_servers=ice_servers
        )

        options = rtc.RoomOptions(
            auto_subscribe=True,
            rtc_config=rtc_config
        )

        await room.connect(
            livekit_endpoint,
            token,
            options=options,
        )

I don't get any specific error, but it seems like it's not taking any effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant