This section is under construction.
You need to have Docker, Go, and FFmpeg installed in your machine.
Go has to be installed because we use it to install CA certificates in the docker image and your browser will trust the certificates generated by the server.
Important
Generated certificates are only valid for 10 days. If you ever face SSL errors, you can regenerate the certificates by running make certs/localhost.crt
.
make dev
After running the command above, you should be able to access the server at https://localhost:5173.
- With this command, any changes you make in
repos/demo
andrepos/moq-rs
will be reflected in the server. - No need to setup CA yourself, or modify
/etc/hosts
to trick the browser into trusting the certificates. - When a file related to
moq-pub
changes, at the same timemoq-relay
will restart. So you have to wait untilmoq-pub
fails for it to restart itself. Otherwise you can just send SIGINT and restartmoq-pub
make pub-moq
make pub-dash
These will run FFmpeg and supply the generated stream to moq (via pipe) and dash (via http). Look at scripts/pub-moq
and scripts/pub-dash
to see how we use FFmpeg to publish the stream.
make prod
The only difference between dev
and prod
is that no live-reloading is enabled in the prod
version.
This is the same as in development.