Linux 软件免费装
Banner图

tlloancy Turn Relay

开发者 tlloancy
更新时间 2026年11月13日 10:50
捐献地址: 去捐款
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

webrtc turn stun coturn

下载

1.0 1.1.0

详情介绍:

WebRTC in the browser needs ICE servers. STUN discovers a public address. TURN relays the media when a direct path is impossible. coturn does that work. This plugin does not. tlloancy Turn Relay signs a username and a password that coturn accepts for a limited time (use-auth-secret). The shared secret stays on the server. Callers receive iceServers for RTCPeerConnection and leave iceTransportPolicy at all. Other plugins, including a video plugin, call tlloancy_turn_relay_get_ice_servers() when a call starts. They do not collect a TURN host of their own. Publication is off until you turn it on. A published card is JSON. It never contains the shared secret. You can paste another site’s card URL. Private and loopback addresses are refused. The admin drawing measures latency in your browser with RTCPeerConnection. A figure advertised by the remote card is ignored. Step-by-step guides: docs/USER-GUIDE.md (English) and docs/MODE-DEMPLOI.md (French).

安装:

  1. Upload the tlloancy-turn-relay folder to /wp-content/plugins/.
  2. Activate tlloancy Turn Relay.
  3. Open Settings → tlloancy Turn Relay.
  4. Enter the TURN host and a shared secret of at least 32 characters. The same secret is configured on coturn as static-auth-secret.
  5. Leave publication off until you want another site to read a card.
To keep the secret out of the database, define it in wp-config.php: define( 'TLLOANCY_TURN_RELAY_SECRET', 'paste-a-long-random-secret' );

常见问题:

Does this plugin relay audio or video?

No. coturn relays the media. The plugin only signs credentials and, if you turn it on, publishes a card.

Why do the credentials change?

The password is visible in the browser. It expires. A fixed TURN user would keep working after someone copies it. An administrator sets the host and the secret once. Visitors never edit them.

How does another plugin start a call?

tlloancy_turn_relay_get_ice_servers() returns the list. In the browser, enqueue the helper and call TlloancyTurnRelay.getIceServers(). Guests are allowed by returning true from the tlloancy_turn_relay_can_issue filter.

What is the invitation token?

It is not the shared secret. A shared card tells another site where to ask for credentials. That request must include the token in the X-Tlloancy-Turn-Relay-Token header. The HMAC secret never leaves this server.

How do I test the relay from another network?

Open Settings → tlloancy Turn Relay, click Issue a test credential, and scan the QR code with a phone on mobile data. The result Relay plus the public address means the phone reached coturn.

Can I list every WordPress site that has the plugin?

No. A site appears only after an administrator pastes its card URL, and only if that administrator has published the card.

更新日志:

1.1.0 1.0