Click or drag to resize

Phone Class

Phone represents a Cisco Spark calling device. The application can obtain a phone object from Spark object and use *phone* to call other Cisco Spark users or PSTN when enabled. The phone must be registered before it can make or receive calls.
Inheritance Hierarchy
SystemObject
  SparkSDKPhone

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public sealed class Phone

The Phone type exposes the following members.

Properties
  NameDescription
Public propertyAudioMaxBandwidth
The max bandwidth for audio in unit bps for the call.
Public propertyShareMaxBandwidth
The max bandwidth for sharing in unit bps for the call.
Public propertyVideoCodecLicense
Return the text of the H.264 codec license from Cisco Systems, Inc.
Public propertyVideoCodecLicenseURL
Return the URL of the H.264 codec license from Cisco Systems, Inc.
Public propertyVideoMaxBandwidth
The max bandwidth for video in unit bps for the call.
Top
Methods
  NameDescription
Public methodActivateVideoCodecLicense
Response to onRequestVideoCodecActivation event.
Public methodDeregister
Removes this phone from Cisco Spark cloud on behalf of the authenticated user. It also disconnects the websocket from Cisco Spark cloud. Subsequent invocations of this method behave as a no-op.
Public methodDial
Makes a call to an intended recipient on behalf of the authenticated user.
Public methodDisableVideoCodecActivation
Prevents Cisco Spark SDK from poping up an Alert for the end user to approve the use of H.264 video codec license from Cisco Systems, Inc.
Public methodGetAVIODevices
Get audio/video IO devices
Public methodRegister
Registers this phone to Cisco Spark cloud on behalf of the authenticated user. It also creates the websocket and connects to Cisco Spark cloud.
Public methodRequestVideoCodecActivation
Notify the end user to activate the use of H.264 codec license from Cisco Systems, Inc. Invoking this function is optional since the alert will appear automatically during the first video call.
Public methodSelectAVIODevice
Select an audio/video IO device
Public methodStartPreview
Render a preview of the local party before the call is answered.
Public methodStopPreview
Stop rendering the preview of the local party.
Public methodUpdatePreview
Update the preview when video window is resized.
Top
Events
  NameDescription
Public eventOnIncoming
Callback when call is incoming.
Public eventOnRequestVideoCodecActivation
Callback when request video codec activation
Top
Remarks
Since: 0.1.0
See Also