OpenVidu / openvidu-tutorials

OpenVidu tutorials to get started
http://openvidu.io/tutorials
Apache License 2.0
228 stars 255 forks source link

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

Open sidarun88 opened 1 year ago

sidarun88 commented 1 year ago

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


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 commented 1 year ago

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

pabloFuente commented 1 year ago

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

sidarun88 commented 1 year ago

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

openvidu-dev.log

sidarun88 commented 1 year ago

~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:~

~Also commented out the following line in polyfills.ts~

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

sidarun88 commented 1 year ago

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:


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