diff --git a/dev/README.md b/dev/README.md index d952b72e..88e0a066 100644 --- a/dev/README.md +++ b/dev/README.md @@ -1,6 +1,6 @@ -# dev +# Local Development -This is a collection of helpful scripts for local development ONLY. +This is a collection of helpful scripts for local development. ## Setup @@ -70,6 +70,10 @@ This listens for WebTransport connections on WebTransport `https://localhost:444 ./dev/relay ``` +It will print out a URL when you can use to publish. Alternatively, you can use `dev/pub` instead. + +> Publish URL: https://quic.video/publish/?server=localhost:4443 + ### moq-pub The following command runs a development instance, broadcasing `dev/source.mp4` to WebTransport `https://localhost:4443`: @@ -78,6 +82,11 @@ The following command runs a development instance, broadcasing `dev/source.mp4` ./dev/pub ``` +It will print out a URL when you can use to watch. +This will contain a random broadcast name so the below link won't work: + +> Watch URL: https://quic.video/watch/REPLACE_WITH_NAME?server=localhost:4443 + ### moq-api The following commands runs an API server, listening for HTTP requests on `http://localhost:4442` by default. diff --git a/dev/relay b/dev/relay index c5fd3792..175f8718 100755 --- a/dev/relay +++ b/dev/relay @@ -22,12 +22,12 @@ ARGS="" # Connect to the given URL to get origins. # TODO default to a public instance? -if [ -n "$API" ]; then +if [ -n "${API-}" ]; then ARGS="$ARGS --api $API" fi # Provide our node URL when registering origins. -if [ -n "$NODE" ]; then +if [ -n "${NODE-}" ]; then ARGS="$ARGS --node $NODE" fi