VideoCallPlus Online Training

About this course

This course introduces you to VideoCallPlus so you will learn how to add video calls in both a web and mobile application.

This course is intended for developers who already know the GeneXus´s basics concepts. You need not have programming experience to take this training.

The training provides a step-by-step explanation of how to create a web application using VideCallPlus and GeneXus 16 using .NET  and SQLServer. If you are using another generator (Java) or DBMS, the steps are quite similar. 

If you perform the hands-on exercises, this course will take you approximately 4 hours to complete.

Before we start

For this example you will need:

What Are We Building?

This example was built to solve the following scenario:

  • A user can log in to a video call using a name or identifier in the mobile application or the web application.
  • Once logged in, the user can enter the name of any user and place a call.

This example allows the user the place calls in any direction:

  • Web -> Web
  • Web -> SD
  • SD -> Web
  • SD -> SD

To use this example follow these steps:

  1. Create a new KB, selecting the option to "Deploy to Cloud". Is really important to deploy the application in the cloud (or in a https server) as this is a requirement for the product to work
  2. Import the xpz from the following link 
  3. Set up the user control with the Sinch key:

    VideoCallSampleImg001
     
  4. From a device ("device1"), run the VideoCallFullWeb web panel:

    a) Write the "user1" name in the "Local User Id" field
    b) Press the "Enter Videocall" button.
    c) The SinchCustomUI2WaysMode panel will be opened, where you will have to enter the user ("user2") that you'll be calling.
    d) Don't press the "Place Call" button yet.

  5. From another computer or smartphone ("device2"), run the VideoCallFullWeb web panel:

    a) Write the "user2" name in the "Local User Id" field
    b) Press the "Enter Videocall" button.

  6. From the "device1" press the "Place Call" button. 
  7. In the "device2" you will receive the incoming call and the call will be established.
     
  8. If you also want to run the SD example, set up the user control with Sinch’s key and secret:

    SinchSampleImg002
     
  9. Finally, run the VideoConfSDSamples main object and follow the analogous steps explained in steps 4 to 7.

Recording session

A sample "RecordingSession" transaction can be downloaded in the following link.

This Transaction can be used to store and view recorded videos in the server, when "Remote Recording" is used.

This transaction can be used combined with previous examples to enable video call recording on the web. To complete the sample, the user must include the following code on the web app:

Event DVSinchClientWeb1.onCallEstablished    
    DVSinchClientWeb1.StartRecording()
    StartRecordingSession(&DVRecordingSession)
EndEvent

Event DVSinchClientWeb1.onRecordingRemoteUploadEnded
    EndRecordingSession(&DVRecordingSession)
    msg(!"Recording Upload Success")
    msg(&DVRecordingSession.Session.RemoteResponse.resourceUrl)
EndEvent

Event DVSinchClientWeb1.onRecordingRemoteUploadFailed
    EndRecordingSession(&DVRecordingSession)
    msg(!"Recording Failed")
EndEvent

Check "Video call recording on web" for more information.