Skip to content
Docs
Guides

Join from native iOS

Install the dTelecom Swift package, connect with a Cloud room grant, and open Meet or Live invites in the SwiftUI Rooms example.

Use DTelecomRTC to join dTelecom rooms from a Swift app. It supports microphone, camera and screen tracks, room chat, adaptive video subscriptions and optional end-to-end media encryption. The SDK targets iOS 15 or later and requires a Swift 6.2 or newer toolchain. SDK source

In Xcode, choose File → Add Package Dependencies, enter https://github.com/dTelecom/client-sdk-ios.git, select version 1.0.0, and add the DTelecomRTC product to your app target.

Have your backend issue a participant token and return token, wsUrl and the optional fallbackUrls. Keep Cloud API credentials on your backend. Decode the URL fields as URL values and retain the connected room for the duration of the call.

import Foundation
import DTelecomRTC
@MainActor
func join(url: URL, token: String, fallbackURLs: [URL] = []) async throws -> Room {
let room = Room()
try await room.connect(url: url, token: token, fallbackURLs: fallbackURLs)
return room
}

Local capture starts off. Add the microphone and camera usage descriptions to your app. After the user grants permission, call try await room.setMicrophoneEnabled(true) or try await room.setCameraEnabled(true) for tracks they want to publish. Call await room.disconnect() when they leave. SwiftUI participant and track views

For encrypted media, call try room.setEncryptionKey(mediaKey) before connecting. Each participant’s app supplies the same key through its own trusted channel. Keep the key out of room invites and token requests. Screen sharing · CallKit, audio routing and microphone processing

Check out the SDK repository at tag 1.0.0. Open Examples/Rooms/Rooms.xcodeproj in Xcode and run the Rooms scheme on iOS 16 or later. SwiftUI Rooms example

Open Invite in Meet or Live, then paste its full link into Rooms or scan the QR code on a supported iPhone. Enter your name and join. A Live viewer can watch and chat. Use the signed invitation from Show host QR to broadcast. Leave encryption off when joining the standard hosted Meet or Live web interface. For encrypted calls, each participant needs a compatible client configured with the same key.