openvidu-tutorials
openvidu-tutorials copied to clipboard
Problems when trying to test recording feature in 'openvidu-call' tutorial
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:
- Recording starts successfully, but its started state is not reflected back in UI
- The finished recording available at
path/to/recording/folder/session-slug
is just a black screen
Any help regarding this will be highly appreciated
Hi, it is very strange... do you have any logs for checking them out?
Can you provide the start up logs of openvidu/openvidu-dev container?
~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
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