Skip to content

@capgo/capacitor-twilio-video

Join Twilio Video rooms on iOS and Android with a native in-app call overlay.

@capgo/capacitor-twilio-video wraps the Twilio Video native SDKs for Capacitor apps. Your backend still mints access tokens. The plugin handles permissions, room lifecycle, media toggles, and a native call UI on top of the WebView. Install it with the Capgo skills or follow the getting started guide.

PlatformSDKFloor in this plugin
iOStwilio-video-iosSwift Package Manager from: "5.11.3". CocoaPods TwilioVideo ~> 5.11 allows any 5.11.x and does not by itself require 5.11.3.
Androidcom.twilio:video-android7.10.5
PlatformSupportNotes
iOSYesiOS 15+, native overlay, Twilio Video iOS 5.11.3+
AndroidYesAPI 24+, native overlay, Twilio Video Android 7.10.5
WebNoAll methods throw unimplemented
  • login stores and validates a Twilio Video access token minted by your backend.
  • joinRoom connects to a room with optional audio and video tracks and shows the native call surface. Defaults: enableAudio: true, enableVideo: false.
  • setMicrophoneEnabled and setCameraEnabled publish or unpublish local tracks while connected.
  • Listener events cover room connect, disconnect, reconnect, and remote participant changes.
  • Permission helpers cover microphone and camera on both native platforms.
MethodDescription
loginStore and validate a Twilio Video access token minted by your backend.
logoutClear the cached access token and leave the active room.
isLoggedInCheck whether a valid Twilio token is currently cached on the device.
joinRoomJoin a Twilio room and present the plugin’s native in-app call overlay.
leaveRoomLeave the current room if connected.
setMicrophoneEnabledEnable or disable local microphone publishing.
setCameraEnabledEnable or disable local camera publishing.
getCallStatusReturn room name, media state, and participant count.
checkMicrophonePermissionCheck microphone permission state.
requestMicrophonePermissionRequest microphone permission.
checkCameraPermissionCheck camera permission state.
requestCameraPermissionRequest camera permission.
addListenerListen for room connected events.
addListenerListen for room disconnected events.
addListenerListen for participant connected events.
addListenerListen for participant disconnected events.
addListenerListen for reconnection start events.
addListenerListen for reconnection success events.
removeAllListenersRemove every listener registered through this plugin instance.

This reference is synced from src/definitions.ts in capacitor-twilio-video.

Keep going from @capgo/capacitor-twilio-video

Section titled “Keep going from @capgo/capacitor-twilio-video”

If you are using @capgo/capacitor-twilio-video to plan native media and interface behavior, connect it with Using @capgo/capacitor-twilio-video for the native capability in Using @capgo/capacitor-twilio-video, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.