For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReferenceClick-to-Call
GuidesReferenceClick-to-Call
  • Core
    • Overview
  • Entities
    • SignalWire
    • Address
    • Participant
    • ClientPreferences
    • SelfCapabilities
    • SelfParticipant
    • User
    • WebRTCCall
      • AddressHistory<TAddress>
      • AudioConstraintsEvent
      • AuthenticateContext
      • Call
      • CallAddress
      • CallCapabilitiesState
      • CallDiagnosticSummary
      • CallError
      • CallNetworkIssue
      • CallNetworkMetrics
      • CallOptions
      • CallParticipant
      • CallSelfParticipant
      • CallState
      • ConstraintFallbackEvent
      • CredentialNoRefreshHandlerWarning
      • CredentialProvider
      • CredentialRefreshFallbackWarning
      • DebugOptions
      • DeviceController
      • DeviceRecoveryEvent
      • DiagnosticEvent
      • DialOptions
      • Directory
      • JSONRPCErrorResponse
      • JSONRPCRequest<TParams>
      • JSONRPCSuccessResponse<TResult>
      • LayoutLayer
      • MediaDirections
      • MediaOptions
      • MediaParamsEvent
      • MemberCapabilities
      • NodeSocketAdapter
      • OnOffCapability
      • PendingRPCOptions
      • PermissionResult
      • PlatformCapabilities
      • PreflightOptions
      • PreflightResult
      • RecoveryEvent
      • SATClaims
      • SDKCredential
      • SDKLogger
      • SelectDeviceOptions
      • SessionDiagnostics
      • SessionState
      • SignalWireOptions
      • Storage
      • StoredDevicePreference
      • TextMessage<TAddress>
      • TransferOptions
      • WebRTCApiProvider
      • WebRTCMediaDevices
  • Web Components
    • Overview
    • sw-audio-level
    • sw-call-controls
    • sw-call-dialpad
    • sw-call-media
    • sw-call-provider
    • sw-call-status
    • sw-call-widget
    • sw-click-to-call
    • sw-device-selector
    • sw-directory
    • sw-local-camera
    • sw-participant-controls
    • sw-participants
    • sw-self-media
    • sw-ui-alert
    • sw-ui-background
    • sw-ui-call-layout
    • sw-ui-content-drawer
    • sw-ui-control-bar
    • sw-ui-dialpad
    • sw-ui-dropup
    • sw-ui-icon
    • sw-ui-modal
    • sw-ui-responsive-container
    • sw-ui-split-button
    • sw-ui-transcript-view
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Methods
  • addEventListener()
  • enumerateDevices()
  • getDisplayMedia()?
  • getUserMedia()
  • removeEventListener()
EntitiesInterfaces

WebRTCMediaDevices

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

CallDirection

Next
Built with

Subset of the MediaDevices interface actually used by the SDK.

Implementations only need to provide these methods — the full browser MediaDevices type is intentionally not required so that React Native and other non-browser environments can conform without polyfilling unused APIs.

Methods

addEventListener()

1addEventListener(type, listener): void

Parameters

type
stringRequired

Event type to listen for.

listener
EventListenerOrEventListenerObjectRequired

Listener invoked when the event fires.

Returns

void


enumerateDevices()

1enumerateDevices(): Promise<MediaDeviceInfo[]>

Returns

Promise<MediaDeviceInfo[]>


getDisplayMedia()?

1optional getDisplayMedia(options): Promise<MediaStream>

Parameters

options
DisplayMediaStreamOptionsRequired

Options to pass to getDisplayMedia.

Returns

Promise<MediaStream>


getUserMedia()

1getUserMedia(constraints): Promise<MediaStream>

Parameters

constraints
MediaStreamConstraintsRequired

Media-track constraints to pass to getUserMedia.

Returns

Promise<MediaStream>


removeEventListener()

1removeEventListener(type, listener): void

Parameters

type
stringRequired

Event type to listen for.

listener
EventListenerOrEventListenerObjectRequired

Listener invoked when the event fires.

Returns

void