com.zingaya.voximplant

Class VoxImplantClient

  • java.lang.Object
    • com.zingaya.voximplant.VoxImplantClient

  • Deprecated. 
    Use IClient instead

    @Deprecated public class VoxImplantClient extends java.lang.Object
    • Method Detail

      • setAndroidContext

        @Deprecated public void setAndroidContext(Context context) throws java.security.AccessControlException
        Deprecated. Android context is provided to SDK via Voximplant.getClientInstance(Executor, Context, ClientConfig) instead
        Set Android context
        Parameters:
        context - Android context
        Throws:
        java.security.AccessControlException
      • connect

        @Deprecated public void connect()
        Deprecated. Use IClient.connect() instead
        Connect to VoxImplant cloud
      • connect

        @Deprecated public void connect(boolean connectivityCheck, java.util.List<java.lang.String> serverNames)
        Deprecated. Use IClient.connect(boolean, List) instead
        Connect to VoxImplant cloud
        Parameters:
        connectivityCheck - Checks whether UDP traffic will flow correctly between device and VoxImplant cloud. This check reduces connection speed.
        serverNames - Server name of particular media gateway for connection
      • closeConnection

        @Deprecated public void closeConnection()
        Deprecated. Use IClient.disconnect() instead
        Closes connection with media server
      • login

        @Deprecated public void login(java.lang.String username, java.lang.String password)
        Deprecated. Use IClient.login(String, String) instead
        Login to specified VoxImplant application
        Parameters:
        username - Full user name, including app and account name, like someuser@someapp.youraccount.voximplant.com
        password - User password
      • loginUsingOneTimeKey

        @Deprecated public void loginUsingOneTimeKey(java.lang.String user, java.lang.String hash)
        Perform login using one time key that was generated before
        Parameters:
        user - Full user name, including app and account name, like someuser@someapp.youraccount.voximplant.com
        hash - Hash that was generated using following formula: MD5(oneTimeKey+"|"+MD5(user+":voximplant.com:"+password)). Please note that here user is just a user name, without app name, account name or anything else after "@". So if you pass myuser@myapp.myacc.voximplant.com as a username, you should only use myuser while computing this hash.
      • createCall

        @Deprecated public java.lang.String createCall(java.lang.String to, boolean video, java.lang.String customData)
        Create new call instance. Call must be then started using startCall
        Parameters:
        to - SIP URI, username or phone number to make call to. Actual routing is then performed by VoxEngine scenario
        video - Enable video support in call
        customData - Optional custom data passed with call. Will be available in VoxEngine scenario
        Returns:
        Call id of newly created call, null if the call was not created. Created call id should be used to perform any subsequent call operations
      • startCall

        @Deprecated public boolean startCall(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
        Deprecated. Use ICall.start(Map) instead
        Send start call request If call with specified id is not found - returns false
        Parameters:
        callId - id of previously created call
        headers - Optional set of headers to be sent with message. Names must begin with "X-" to be processed by SDK
        Returns:
        true on success, false if operation has failed
      • startCall

        @Deprecated public boolean startCall(java.lang.String callId)
        Deprecated. Use ICall.start(Map) instead
        Send start call request If call with specified id is not found - returns false
        Parameters:
        callId - id of previously created call
        Returns:
        true on success, false if operation has failed
      • sendDTMF

        @Deprecated public void sendDTMF(java.lang.String callId, int digit)
        Deprecated. Use ICall.sendDTMF(String) instead
        Sends DTMF digit in specified call.
        Parameters:
        callId - id of previously created call
        digit - Digit can be 0-9 for 0-9, 10 for bin build_docs.sh build.gradle cdn_mock doc gradle gradle.properties gradlew gradlew.bat id_rsa node_modules output package.json print_template_input.js Readme.md sdkdemo settings.gradle tmp voximplantdemo voximplant-sdk yarn.lock and 11 for #
      • disconnectCall

        @Deprecated public void disconnectCall(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
        Deprecated. Use ICall.hangup(Map) instead
        Terminate specified call. Call must be either established, or outgoing progressing
        Parameters:
        callId - id of previously created call
        headers - Optional set of headers to be sent with message. Names must begin with "X-" to be processed by Voximplant
      • disconnectCall

        @Deprecated public void disconnectCall(java.lang.String callId)
        Deprecated. Use ICall.hangup(Map) instead
        Terminate specified call. Call must be either established, or outgoing progressing
        Parameters:
        callId - id of previously created call
      • declineCall

        @Deprecated public void declineCall(java.lang.String callId, java.util.Map<java.lang.String,java.lang.String> headers)
        Deprecated. Use ICall.reject(Map) instead
        Reject incoming alerting call
        Parameters:
        callId - id of previously created call
        headers - Optional set of headers to be sent with message. Names must begin with "X-" to be processed by SDK
      • declineCall

        @Deprecated public void declineCall(java.lang.String callId)
        Deprecated. Use ICall.reject(Map) instead
        Reject incoming alerting call
        Parameters:
        callId - id of previously created call
      • answerCall

        @Deprecated public void answerCall(java.lang.String callId, java.lang.String customData, java.util.Map<java.lang.String,java.lang.String> headers)
        Deprecated. Use ICall.answer(String, VideoFlags, Map) instead
        Answer incoming call
        Parameters:
        callId - Id of previously created call
        customData - Optional custom data passed with call. Will be available in VoxEngine scenario
        headers - Optional set of headers to be sent with message. Names must begin with "X-" to be processed by SDK
      • answerCall

        @Deprecated public void answerCall(java.lang.String callId)
        Deprecated. Use ICall.answer(String, VideoFlags, Map) instead
        Answer incoming call
        Parameters:
        callId - id of previously created call
      • sendMessage

        @Deprecated public void sendMessage(java.lang.String callId, java.lang.String text)
        Deprecated. Use ICall.sendMessage(String) instead
        Sends instant message within established call
        Parameters:
        callId - id of previously created call
        text - Message text
      • sendInfo

        @Deprecated public void sendInfo(java.lang.String callId, java.lang.String mimeType, java.lang.String content, java.util.Map<java.lang.String,java.lang.String> headers)
        Deprecated. Use ICall.sendInfo(String, String, Map) instead
        Sends info within established call
        Parameters:
        callId - id of previously created call
        mimeType - MIME type of info
        content - Custom string data
        headers - Optional set of headers to be sent with message. Names must begin with "X-" to be processed by SDK
      • sendInfo

        @Deprecated public void sendInfo(java.lang.String callId, java.lang.String mimeType, java.lang.String content)
        Deprecated. Use ICall.sendInfo(String, String, Map) instead
        Sends info within established call
        Parameters:
        callId - id of previously created call
        mimeType - MIME type of info
        content - Custom string data
      • setLocalPreview

        @Deprecated public void setLocalPreview(VideoRenderer.Callbacks videoView)
        Set view for local stream
        Parameters:
        videoView - org.webrtc.SurfaceViewRenderer or custom implementation of org.webrtc.VideoRenderer.Callbacks
        It is recommended to use SurfaceViewRenderer for the most of cases.
        In case of custom implementation of VideoRenderer.Callback class:
        • 1. VideoRenderer.renderFrameDone(i420Frame) must be called after every VideoRenderer.renderFrame()
        • 2. See VoxImplamtClientConfig parameters to set up video frame format
      • setRemoteView

        @Deprecated public void setRemoteView(VideoRenderer.Callbacks videoView)
        Set view for remote stream
        Parameters:
        videoView - org.webrtc.SurfaceViewRenderer or custom implementation of org.webrtc.VideoRenderer.Callbacks
        It is recommended to use SurfaceViewRenderer for the most of cases.
        In case of custom implementation of VideoRenderer.Callback class:
        • 1. VideoRenderer.renderFrameDone(i420Frame) must be called after every VideoRenderer.renderFrame()
        • 2. See VoxImplamtClientConfig parameters to set up video frame format
      • setRemoteView

        @Deprecated public void setRemoteView(java.lang.String callId, VideoRenderer.Callbacks videoView)
        Set view for remote stream for call
        Parameters:
        videoView - org.webrtc.SurfaceViewRenderer or custom implementation of org.webrtc.VideoRenderer.Callbacks
        It is recommended to use SurfaceViewRenderer for the most of cases.
        In case of custom implementation of VideoRenderer.Callback class:
        • 1. VideoRenderer.renderFrameDone(i420Frame) must be called after every VideoRenderer.renderFrame()
        • 2. See VoxImplamtClientConfig parameters to set up video frame format
        callId - id of the call
      • sendVideo

        @Deprecated public void sendVideo(boolean doSendVideo)
        Start/stop sending video from local camera
        Parameters:
        doSendVideo - Specify if video should be sent
      • setMute

        @Deprecated public void setMute(boolean doMute)
        Deprecated. Use ICall.sendAudio(boolean) instead
        Mute or unmute microphone. This is reset after audio interruption
        Parameters:
        doMute - Enable/disable flag
      • setUseLoudspeaker

        @Deprecated public boolean setUseLoudspeaker(boolean useLoudSpeaker)
        Enable/disable loudspeaker
        Parameters:
        useLoudSpeaker - Enable/disable loudspeaker
      • getMissingPermissions

        @Deprecated public static java.util.List<java.lang.String> getMissingPermissions(Context context, boolean videoSupportEnabled)
        Returns the list of permissions that have not been granted by user yet
        Parameters:
        context - Android context
        videoSupportEnabled - Specify if permissions for video calls are required.
        Returns:
        List of disallowed permissions
      • handlePushNotification

        @Deprecated public void handlePushNotification(java.util.Map<java.lang.String,java.lang.String> notification)
        Deprecated. Use IClient.handlePushNotification(Map) instead
        Handle incoming push notification
        Parameters:
        notification - Incoming push notification that comes from FirebaseMessagingService.onMessageReceived(RemoteMessage remoteMessage)
      • registerForPushNotifications

        @Deprecated public void registerForPushNotifications(java.lang.String pushRegistrationToken)
        Register for push notifications. Application will receive push notifications from VoxImplant Server after first log in.
        Parameters:
        pushRegistrationToken - FCM registration token that can be retrieved by calling FirebaseInstanceID.getToken()
      • unregisterFromPushNotifications

        @Deprecated public void unregisterFromPushNotifications(java.lang.String pushRegistrationToken)
        Unregister from push notifications. Application will no longer receive push notifications from VoxImplant server
        Parameters:
        pushRegistrationToken - FCM registration token that was used to register for push notifications
        See Also:
        registerForPushNotifications(String)