Uploading a video
To upload a video, you can use the docker-compose-selfstreawm.yml file to start all the services required for the upload process.
Starting the services​
- in vod-service.go change the port to 8080:
err := http.ListenAndServe(":8080", nil) - Run the following command to start the services:
docker compose -f docker-compose-selfstream.yml up --build
Setting up services locally​
1. Configure the setup​
- in vod-service.go change the port to 8080:
err := http.ListenAndServe(":8080", nil) - change
var vodPath = /home/.../dev/storage/massinedge.go - add
token: abcin config.yaml
2. Start the services​
- Start the backend and (optional) frontend. Don't forget the DB See the main docs for more information.
- Start worker:
LrzUploadUrl="http://localhost:8080" \VodURLTemplate="http://localhost:8089/vod/%s.mp4/playlist.m3u8" \Token=abc \MassStorage=/home/mkm00/dev/storage/mass \go run ./worker/cmd/worker
- Start edge:
go run ./worker/edge
- Start vod-service:
go run ./vod-service/cmd/vod-service
Uploading the video​
- Open the frontend in your browser at
http://localhost:8081and navigate to a lecture or create a new one. - Choose the Upload option and select continue. You have to give it a name and select the date and time of the lecture.
- After that, you can select the video file you want to upload and start the uploading process.
info
Check the logs as you are uploading the video