Basic understanding of OpenTok and Docker for self learning
- Create opentok session
- How to join session
- Create live stream HLS url
- Broadcast session
- Destroy broadcast
- Covered (HLS and WebRTC)
You can use the OpenTok Node.js library to generate OpenTok sessions. Each session has a unique session ID, which you can use in an OpenTok client library to connect to an OpenTok session. (See "Joining a Session" for Web, iOS, or Android.)
- sudo docker build -t imageName .
- docker run -it -p newPort:oldPort (example : 9000 : 3000) imageName
- docker run -d -p 9000:3000 imageName
- docker ps
- In nodejs we use "nodemon index.js" (continuous watch our file)
- If nodemon not installed, install it and create again same imageFile
- docker run -it -p 9001:3000 -v $(pwd):/index node-docker // assign Different PORT
- check list of images(docker images)
- sudo docker tag node-docker:latest vishalims095/node-docker-test:v1 node-docker // image name latest // tag name vishalims095/node-docker-test:v1 // repo name and add tag it'll create a file
- sudo docker push vishalims095/node-docker-test:v1 v1 // pass tag name previously created using cmd