Im trying to integrate openvidu with flask application, but there is no good examples or tutorials,i could find only this documentation ` https://pyopenvidu.readthedocs.io/en/latest/examples.html
I would be really glad if you could help me.
Hi,
OpenVidu does not have official clients for Python (that’s a third-party library). REST API is only covered for Java and Node. But of course this doesn’t mean you can’t use OpenVidu from a Python app. You just need to implement a REST client with Python and consume OpenVidu REST API.
In other words, Java and Node SDKs are just a simple wrapper around OpenVidu REST API. So you can consume OpenVidu REST API from any backend language or framework that you want.
Thanks for your attention.
So i could integrate PyOpenvidu package and now i can generate an openvidu token.
Actual problem is when it returns token "wss://localhost:4443/?sessionId..." its for localhost it works fine locally, but after i deploy it it doesnt work. Ive tried to replace "localhost:4443" manually with my domain but after that ive got SSL Handshake error. My Server is Ubuntu 18.04, and Ive deployed openvidu server with docker
“docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET openvidu/openvidu-server-kms:2.12.0”
What have I done wrong?
I could imagine you’re deploying OpenVidu with a self-signed certificate. You need to accept this self-signed certificate of openvidu-server the first time try to join a video-call.
You can read how to start with OpenVidu for more info.
On the other hand, take into account that openvidu/openvidu-server-kms:2.12.0 docker image is not designed for production, is designed for development.
To deploy OpenVidu for production visit this page: https://docs.openvidu.io/en/2.12.0/deployment/deploying-ubuntu/
We are working in a dockerized production deployment that will be release in a few days.
Thank you very much you helped me a lot.
Now ive downloaded openvidu jar from github repository and set publicUrl, now wss url is clear