askrobots / network-computer
Public
Your phone is the terminal. Stream a Linux/Mac desktop to an iPhone over WebRTC through NAT, with audio and input. Open source, single binaries.
Dan Quellhorst
Firefox policy: no WebRTC mDNS (a page using WebRTC made Firefox listen on UDP 5353)
a1d92f3
1 month, 3 weeks ago
History
nc-streams.service · 704 bytes · 22 lines
| 1 | [Unit] |
| 2 | Description=Network Computer live streams (MediaMTX: SRT in, watch and record on the desk) |
| 3 | After=network-online.target |
| 4 | Wants=network-online.target |
| 5 | |
| 6 | [Service] |
| 7 | User=nc-streams |
| 8 | Group=nc-streams |
| 9 | EnvironmentFile=/etc/nc/streams.env |
| 10 | # no passphrase, no service: SRT would otherwise accept any publisher |
| 11 | ExecStartPre=/bin/sh -c 'test $${#MTX_PATHDEFAULTS_SRTPUBLISHPASSPHRASE} -ge 10 || { echo "no passphrase in /etc/nc/streams.env: nc-stream on makes one" >&2; exit 1; }' |
| 12 | ExecStart=/usr/local/bin/mediamtx /etc/nc/mediamtx.yml |
| 13 | Restart=always |
| 14 | RestartSec=3 |
| 15 | NoNewPrivileges=true |
| 16 | ProtectSystem=strict |
| 17 | ProtectHome=true |
| 18 | ReadWritePaths=/var/lib/nc-streams |
| 19 | PrivateTmp=true |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |