Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
#!/bin/bash
set -e
# Determine if we should continue testing with S3 configuration.
if [[ -z "${S3_BUCKET}" ]]; then
echo "No S3 configuration is set. Skipping S3 tests!"
exit 0
fi
# shellcheck disable=SC1091 # tools.sh is sourced at runtime; not available to the linter
source ../tools.sh
# Install the node test framework
npm install --silent >/dev/null
install_ffmpeg
start_owncast
sleep 10
# Update the server config to use S3 for storage.
update_storage_config
start_stream
sleep 10
# Re-run the HLS test against the external storage configuration. Also write
# machine-readable results for CI artifact upload; jest keeps human-readable
# progress on stderr.
mkdir -p results
npm test -- --json --outputFile=results/jest-results-s3.json