Steps To Build and Run OpenViudu-call Application

hi,

Are the instructions described in https://docs.openvidu.io/en/2.14.0/demos/openvidu-call/ accurate? What are the exact steps to clone the app and run it locally?

V

Hi,

I installed openvidu-call and launched it. But, when I go to host:4443, I see the following. Where do I go to make a call?

Can you describe what are the steps you used to deploy OpenVidu platform?

Can you share with us the OpenVidu logs?

Here are the steps that I took to deploy the app.

  • sudo apt install docker.io
  • Clone the repo
  • Install node and NPM
  • docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-server-kms:2.14.0
  • Install NPM dependencies of NodeJS backend
    • Change directory /home/ubuntu/App/openvidu-call
    • npm install --prefix openvidu-call-back
  • Start OpenVidu-call backend
    • npm run start --prefix openvidu-call-back
  • Install NPM dependencies of Angular front end
    • npm install --prefix openvidu-call-front
  • Start OpenVidu call frontend
    • cd openvidu-call-front
    • npx ng serve –open
  • Launch app
    • Hostname:4443 (make sure port is open for inbound traffic)

If you execute OpenVidu Call locally based on source code with command “npx ng serve” then the application URL is deployed in “http://localhost:4200/”.

If you deploy OpenVidu for production, OpenVidu call is automaticall deployed in the URL https://domain.com/

Best

Thanks.

What files do I need to change to have OpenVidu on port 80 in a development environment? I have this installed on Linux on AWS. I would rather access it from browser on my laptop (windows).

I changed -e parameter DOMAIN_OR_PUBLIC_IP=ec2-3-94-129-39.compute-1.amazonaws.com and have it startup on the provided host name. But, when I go to that host on port 4443, I still get the same greeting as above which provides two links one of which is the link I just visited and the other is a link dashboard. On dashboard, there is nothing but Server Events screen.

I do see some error messages (which I sent earlier to you via email) that there is a problem with TURN server. Please see below.

2020-05-28 21:36:33,575 DEBG ‘openvidu-server’ stdout output:
[WARN] 2020-05-28 21:36:33,574 [main] io.openvidu.server.coturn.CoturnCredentialsService - No COTURN server is installed in the host machine. Response: /bin/sh: 1: turnadmin: not found

2020-05-28 21:36:33,576 DEBG ‘openvidu-server’ stdout output:
[ERROR] 2020-05-28 21:36:33,576 [main] io.openvidu.server.coturn.CoturnCredentialsService - No COTURN server will be automatically configured for clients

What do I need to do to bring up a very simple development environment on AWS?

Still don’t know how you deployed OpenVidu. Please, indicate us the link to the specific instructions of the OpenVidu documentation you followed to deploy OpenVidu on AWS (as I guess for the URL in your last message).

Then, after you deployed it, if what you want is to deploy your very own compilation of OpenVidu Call application, you just need to compile it and follow these steps: https://docs.openvidu.io/en/2.14.0/deployment/#deploy-openvidu-based-applications

Regards.

Hi Pablo,

The instructions that I used to deploy are listed above. Please see my earlier post with 9 bullet points. These are the instructions from your web site.

Thanks

Those instructions are not supposed to be used to deploy OpenVIdu in a real public server. You are making use of OpenVidu developent container (openvidu-server-kms). I see you are deploying in AWS, so you should follow the instructions of deploying OpenVidu on AWS: https://docs.openvidu.io/en/2.14.0/deployment/#openvidu-on-aws

And then you can deploy any application you want with by following these
steps (which are prepared to work with any official deployment of OpenVidu, CE or PRO in AWS or On Premises): https://docs.openvidu.io/en/2.14.0/deployment/#deploy-openvidu-based-applications

Thanks you! I will check these out in the next few days. If I follow these steps, will I be able to deploy and make changes to the code? That is, I would like to customize some portions of it.

Hi,

As per your suggestion, I followed instructions at https://docs.openvidu.io/en/2.14.0/openvidu-pro/deployment/on-premises/#change-the-number-of-media-nodes-on-the-fly and started up both OpenVidu Pro Node as well KMS. Everything seems to be working well. Thanks.

Now, how do I change this application to record the video sessions?

Thanks for your help

Take a look to recording documentation. Everything is explained in there: https://docs.openvidu.io/en/stable/advanced-features/recording/
You must adapt the Node backend to record the sessions.

Thanks for the quick response.

In the sample app https://docs.openvidu.io/en/2.14.0/openvidu-pro/deployment/on-premises/#change-the-number-of-media-nodes-on-the-fly, where would I find the node backend code?

You can also take a look to this recording tutorial build with plain JS and Node: https://github.com/OpenVidu/openvidu-tutorials/tree/master/openvidu-recording-node

I don’t understand your question. I thought you wanted to enable recording capabilities for OpenVidu Call application. The way to do that is to work with that application: https://github.com/OpenVidu/openvidu-call

Specifically in its Node backend: https://github.com/OpenVidu/openvidu-call/tree/master/openvidu-call-back

Thanks. I will take a look at that one.

Hi,

I downloaded openvidu-call-back code for openvidu-call app. Which file do I change to activate session recording?

Thanks

You have to develop this feature following the guide that @pabloFuente posted above.