Skip to content

agilityfeat/opentok-encoder-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTok Encoder

Configuration

Create .env file with the following parameters filled out:

API_KEY=<OPENTOK_PROJECT_API_KEY>
SESSION_ID=<OPENTOK_SESSION_ID>
TOKEN=<OPENTOK_SESSION_TOKEN>

Development Dockerfile

Building image

docker build -t opentok_encoder_builder:latest -f Dockerfile.cpp-env .

Run image with mount to local source code.

docker run -it --rm --name=opentok_encoder_builder \
 --mount type=bind,source=${PWD},target=/src \
 opentok_encoder_builder:latest \
 bash

Building and running source code in build container.

cd src

# Create and cd into a build directory
mkdir build && cd build

# Set Build Time environment variables here eg. "HTTP_SERVER_HOST=0.0.0.0 cmake .."
cmake ..

# Build and create binary
make

# Run binary, can set run time environment variables here
./streamer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published