Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when trying to test recording feature in 'openvidu-call' tutorial #184

Open
sidarun88 opened this issue Oct 17, 2022 · 5 comments

Comments

@sidarun88
Copy link

Was checking out the openvidu-call tutorial and tried to test recording feature (tested on v2.23.0)

Followed instructions as described here to enable recording module for OpenVidu

Docker images used

  • openvidu/openvidu-dev:2.23.0
  • openvidu/openvidu-recording:2.23.0

Steps followed

Started the docker image using the following command

docker run -d -p 4443:4443 --rm --name=openvidu-dev -e OPENVIDU_SECRET=MY_SECRET -e OPENVIDU_RECORDING=true -e OPENVIDU_RECORDING_PATH=/path/to/recording/folder -e OPENVIDU_RECORDING_DEBUG=true -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/recording/folder:/path/to/recording/folder openvidu/openvidu-dev:2.23.0

Then started the node server and client application as instructed here


Problems faced:

  1. Recording starts successfully, but its started state is not reflected back in UI
  2. The finished recording available at path/to/recording/folder/session-slug is just a black screen

Any help regarding this will be highly appreciated

@CSantosM
Copy link
Member

CSantosM commented Oct 17, 2022

Hi, it is very strange... do you have any logs for checking them out?

@pabloFuente
Copy link
Member

Can you provide the start up logs of openvidu/openvidu-dev container?

@sidarun88
Copy link
Author

Just tested it again right now... Here are the logs for openvidu-dev docker image:

openvidu-dev.log

@sidarun88
Copy link
Author

sidarun88 commented Oct 17, 2022

Adding this to provide you with complete picture,

I was unable to build and run openvidu-call-front client using provided dependencies. So I updated the dependencies in package.json as follows:

  • openvidu-angular: 2.23.0
  • @angular/*: ^14.0.0
  • ng-packagr: ^14.0.0
  • typescript: ^4.4.4
  • typedoc: ^0.22.11

Also commented out the following line in polyfills.ts

  • // import 'core-js/es7/reflect';

Manged to build and run openvidu-call-front using provided dependencies by following this StackOverflow answer

@sidarun88
Copy link
Author

Manged to successfully test recording feature. Followed the steps provided here with slight modifications


Openvidu deployment container

Ran container with some modifications (added recording related configuration parameters)

docker run -d -p 4443:4443 --rm --name=openvidu-dev -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=X.X.X.X -e SERVER_PORT=4443 -e HTTPS_PORT=443 -e FORCE_PLAIN_HTTP=false -e OPENVIDU_RECORDING=true -e OPENVIDU_RECORDING_PATH=/path/to/recording/folder -e OPENVIDU_RECORDING_DEBUG=true -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/recording/folder:/path/to/recording/folder openvidu/openvidu-dev:2.23.0

Client application and node server

Followed these steps. Then moved public folder into the dist folder.


Nginx

Copied nginx.conf from openvidu-hello-world tutorial with slight modifications:

  • Removed client-application
  • Added /dashboard/ location and proxy it to openvidu-deployment
  • Proxy all remaining requests to server-application

Have saved chrome debug logs and both container logs for both successful and failed runs. If you want I can upload all these logs, if it can help you to pinpoint the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants