--- title: "How to integrate video processing solutions?" slug: "how-to-integrate-video-processing-solutions" updated: 2024-05-06T00:04:36Z published: 2024-05-06T00:04:36Z canonical: "docs.tegsoft.com/how-to-integrate-video-processing-solutions" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.tegsoft.com/llms.txt > Use this file to discover all available pages before exploring further. # How to integrate video processing solutions? This article covers technical details to integrate video processing solutions with the Tegsoft Contact Center. Video processing solutions may be used for “video onboarding”, “video verification”, “video recording”, etc. For better integration Tegsoft Solution provides, - tools for accessing remote video (video of the contact /customer) or local video (video of the agent) - APIs to support call control (Answer, hold, mute, hangup, etc.) - tools for creating video calls from the contact/customer side via a webpage or a mobile app In summary, Tegsoft APIs and integration tools can be considered a full set for creating a video solution over a video contact center. This article will cover all the technical details from top to bottom. Here are the main sections of the article, - Agent Desktop Video Integration - Initiating a video call as a client (contact/customer side) All the topics will be explained via a sample video processing application integration. The sample application will have the following features, - video calls initiated via a web page (similar to mobile solutions) - the parameters will be carried from the originator client app to the popup application which will process videos. - Both contact and agent videos will be duplicated as an example of processing. ## Integrating video processing application into the Tegsoft Agent Desktop During a video call, Tegsoft's “agent full desktop” interface has remote and local video components accessible via CTI applications that run in the Agent Desktop Interface via an iframe. If a video application wants to access and perform tasks over the video content both local or remote this is the point all the logic must be executed. To add an application to a CTI interface please check the related article from the [link](/v1/docs/cti-integration). In our use case, the application will be sampleVideo.html. All the parameters are dynamic. If needed both key or sequence can be changed. New static key-value pairs can be added or unnecessary parameters can be removed. ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image(253).png?sv=2026-02-06&spr=https&st=2026-11-23T03%3A45%3A44Z&se=2026-11-23T04%3A45%3A44Z&sr=b&sp=r&sig=DmGCyuXjSCZoFlNHeLOlV7Wh206Gg3rtDa1ljBS49VU%3D) You need to add a space character as a separator and then the “clientSideCTIEventList=all” parameter at the end of the URL to activate the event-action interface. This integration parameter needs to be assigned to the agents that will process videos. Our sample video-processing application will use events and actions to communicate with the Tegsoft Agent Desktop Interface. **Actions** are the commands from our video processing application to Agent Desktop. (Video App —> Agent Desktop) **Events** are feedbacks, action results, or notifications that we receive on the video application from Agent Desktop (Agent Desktop —> Video App) For more details, you can check events & actions from the widget [integration](/v1/docs/widget-integration) article which is very similar to the usage that is going to be described here. There are two ways to catch call control events. 1. Configuring “Login”, “Call Offer” (Ringing), “Call Popup” (Connect / Answer), or “After Call” (Hangup) URLs with different parameters or different URLs 2. Configuring a single loading URL (Login URL) to initialize the app and catching events to handle start processing or stop processing. In our sample application, we will catch start and stop events. If this usage is compatible with the app this is the most recommended practice to configure. Please consider the browser limitations below for a secure integration. - The application URL needs to be accessible via HTTPS protocol and needs to be considered as secure. - The application needs to be served from the same domain as the Tegsoft Server. Please check the sample application HTML source below. ```xml                                                                                            
           

THIS IS A SAMPLE VIDEO INTEGRATION TEST PAGE

           Query parameters are listed below.
           For more details please check integration article https://docs.tegsoft.com/how-to-integrate-video-processing-solutions        
       
           These are the query parameters:
       
       
       

THIS IS remote Video

       
               

THIS IS local Video

       
            ``` ### Agent Desktop Idle Stage If the login URL is configured, a successful agent login will load the app. Agents will be accessing the app like in the screenshot below. ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image(254).png?sv=2026-02-06&spr=https&st=2026-11-23T03%3A45%3A44Z&se=2026-11-23T04%3A45%3A44Z&sr=b&sp=r&sig=YnSaQ07Gi4NK0jX%2BK4Gzp0YJ5BLiuM9%2BdMhJbvkRSx4%3D) ## Initiating A Video Call Video calls can be initiated via a mobile application or a web page. For a better user experience after loading the iframe window events need to be monitored and hiding showing interface process needs to be handled. Here is an example link and a client video call configuration, ```xml https://TEGSOFT_SERVER_URL/Tobe/forms/TegsoftVue/?fileName=forms/TegsoftTelecom/webchat/ccchatVideoCall &locale=en &DID=9542 &traceevents=true&traceactions=true&tracebackend=true &start=true &CONTID=CONT987 &FIRSTNAME=John &LASTNAME=Doe &ctiData={ctiVariableNames: [integrationKey, integrationKey2, CONTID],variables: {integrationKey: 'sampleKey', CONTID: 'CONT987'}} &PHONE=02123212088 ``` | Parameter Name | Description | Example Data | | --- | --- | --- | | locale | Customer locale parameter for UI layout. ISO language codes are valid. | en tr de | | DID | Multiple scenarios can be executed (Direct call for agents, Data collection via IVR, etc.) This number can be configured via Tegsoft incoming call management. | 9876 5101122 942 | | traceevents, traceactions, tracebackend | Those parameters are used to activate tracing and debugging. It is strongly recommended to remove those parameters for production environments. | &traceevents=true&traceactions=true&tracebackend=true | | start | This parameter needs to be true to start a video call | start=true | | CONTID, FIRSTNAME, LASTNAME, PHONE, EMAIL | These are CRM fields to have better customer communication management. It is strongly recommended to use the same values matching with the company CRM data. Otherwise, customer identification will not take place. | &CONTID=CONT987 &FIRSTNAME=John &LASTNAME=Doe &PHONE=02123212088 | | ctiData | This parameter is used for passing integration parameters from the client to the server app. ctiVariableNames is an array of keys to pass from client to server. variables will store the key/value pairs. | ctiData={ctiVariableNames: [integrationKey, integrationKey2, CONTID],variables: {integrationKey: 'sampleKey', CONTID: 'CONT987'}} | ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image(257).png?sv=2026-02-06&spr=https&st=2026-11-23T03%3A45%3A44Z&se=2026-11-23T04%3A45%3A44Z&sr=b&sp=r&sig=7IvhBbMlTU8XVapiV1f%2F3PtUyYhoc02z1b159Kt6hMM%3D) The URL can be used in an iframe of an app or a webpage. Here is an example of a clientside screenshot. ## Receiving A Video Call When an agent receives video calls a video sign is displayed on the top left corner of the incoming call dialog. Even during the ringing stage integration parameters and all the events are fired. OnIncomingCallRinging can be handled to prepare video processing. ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image(255).png?sv=2026-02-06&spr=https&st=2026-11-23T03%3A45%3A44Z&se=2026-11-23T04%3A45%3A44Z&sr=b&sp=r&sig=qnoMm7vcmhQOQJmIkG0eK0Cs7watDQbkOV6kcJ21JhY%3D) When the call is answered video streaming starts. OnIncomingCallAnswered event will be received and remote and local video components can be accessed from parent via Javascript. ```javascript                let remoteVideoElement =  parent.document.getElementById('tegsoft-remote-video');                let localVideoElement =  parent.document.getElementById('tegsoft-local-video'); ``` In this example, both remote and local video content is copied to have a sample processing. ![](https://cdn.document360.io/7d619985-59f1-4eeb-98a5-51b967cac580/Images/Documentation/image(256).png?sv=2026-02-06&spr=https&st=2026-11-23T03%3A45%3A44Z&se=2026-11-23T04%3A45%3A44Z&sr=b&sp=r&sig=Q1L5KxVrU07r8CijnnRfvuYcknjuLC4glnyT7ePsAqM%3D)