Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ That's a few of the web app's own tests. The `web` job in `.github/workflows/ci.
| `cmd/wittymediaserver-tray` | The app people open: the tray or menu-bar icon |
| `cmd/wittymediaserver-uninstall` | The uninstaller with windows and buttons, on Windows and macOS |
| `cmd/wms-forwarder` | Ships as `wms` in archives only, so a copy of 0.5.2-alpha can update |
| `cmd/wittyconnect`, `pkg/wittyconnect` | Peer-to-peer connections, for reaching a server from away: [P2P](docs/P2P.md) |
| `cmd/wittyconnect`, `pkg/wittyconnect` | Private connections, for reaching a server away from home: [P2P](docs/P2P.md) |
| `internal/server` | The HTTP API |
| `internal/library` | Libraries, the scanner, TV parsing, metadata agents, NFO reading and writing |
| `internal/modules` | The module manager, the catalogue, the helpers' sandbox, and what a Module API 5 module brings: its routes, screens, data and setup steps. See [Module API 5](docs/MODULES-API5.md) |
Expand Down Expand Up @@ -150,7 +150,7 @@ That's a few of the web app's own tests. The `web` job in `.github/workflows/ci.
1. Open an issue first, or find the one for your change.
2. Fork the repository on GitHub and clone your fork.
3. Create a branch: `git checkout -b fix-menu-highlight`.
4. Commit with a clear message, push, and open a pull request against `master`, or against the release branch while one is open, such as `v0.8.0-alpha`. Say `Closes #<issue>` in it.
4. Commit with a clear message, push, and open a pull request against `master`, or against the release branch while one is open, such as `v0.9.0-alpha`. Say `Closes #<issue>` in it.
5. CI runs the checks above. A pull request is merged with a merge commit titled `Merge #<number>: <title>`.

New to Git and GitHub? [Publishing changes](docs/PUBLISHING.md) walks through it.
Expand Down
5 changes: 3 additions & 2 deletions NEXT-SESSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ Written 2026-11-15, when the 0.8.0-alpha work was finished on macOS. Read this f

## Rules that still apply

- **Test media:** test only with the owner's real media on `/Volumes/STUFF/ServerMedia` (on Windows,
wherever the owner puts it).
- **Test media:** a private test library may be used for testing on the machine itself. Pictures, and anything
else that goes into a repository, a pull request or the website, come only from the demo media
(`D:\WittyDemoMedia` on Windows).
- Read-only, and set `saveMetadata=0` before adding a library.
- Never put anything from it in a repository, docs, the website or release images.
- Generated media is only for pictures in docs and on the website.
Expand Down
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>

<p align="center">
<a href="https://github.com/wittywilla/WittyMediaServer/releases/latest"><img alt="Download" src="https://img.shields.io/badge/Download-0.8.0--alpha-6d4aff?style=for-the-badge"></a>
<a href="https://github.com/wittywilla/WittyMediaServer/releases/latest"><img alt="Download" src="https://img.shields.io/badge/Download-0.9.0--alpha-6d4aff?style=for-the-badge"></a>
<a href="https://wittymediaserver.com"><img alt="Website" src="https://img.shields.io/badge/Website-wittymediaserver.com-1f1d2b?style=for-the-badge"></a>
<a href="docs/GETTING_STARTED.md"><img alt="Get started" src="https://img.shields.io/badge/Get%20started-guide-1f1d2b?style=for-the-badge"></a>
</p>
Expand All @@ -30,13 +30,13 @@
<table align="center">
<tr>
<td align="center"><b>Streaming at home</b><br>free</td>
<td align="center"><b>Streaming from anywhere</b><br>free</td>
<td align="center"><b>Streaming away from home</b><br>free</td>
<td align="center"><b>Every feature, for everyone</b><br>free</td>
</tr>
</table>

> [!NOTE]
> **Alpha.** 0.8.x-alpha is still changing quickly. It can fail or lose data. Keep backups, and back up your data folder before you upgrade.
> **Alpha.** 0.9.x-alpha is still changing quickly. It can fail or lose data. Keep backups, and back up your data folder before you upgrade.

## What it does

Expand Down Expand Up @@ -67,14 +67,16 @@ The server runs on a computer you already have. Every other screen reaches it in
| The server runs on | Watch, listen and read on |
|---|---|
| **Windows** 10 and 11 | **Any web browser:** computers, phones, tablets and TVs. Nothing to install |
| **macOS** 11 and newer | **Android:** phones and tablets |
| **macOS** 11 and newer | **Android:** phones and tablets, with ARM or x86 processors |
| **Linux:** Debian, Ubuntu, Fedora and most others | **Android TV and Fire TV:** an app made for the remote, with game controllers and QR sign-in. Google TV too |
| **FreeBSD** 14 and newer | **Apple:** iPhone, iPad and Apple TV |
| **Docker and NAS:** any NAS or server that runs Docker | **Desktop:** Windows, macOS, Linux and Plasma Bigscreen |
| **Docker and NAS:** any NAS or server that runs Docker | **Desktop:** Windows, macOS, Linux, FreeBSD and Plasma Bigscreen |

> [!TIP]
> The apps aren't in the app stores yet: for now, each one is installed by hand (sideloaded) from the [WittyMediaClient releases page](https://github.com/wittywilla/WittyMediaClient/releases/latest). App store listings are coming soon.

WittyMediaClient 0.7.0 goes with WittyMediaServer 0.9.0-alpha. An older app says it needs a newer version.

## Install

Install the server on the computer or NAS that holds your media. Downloads are on the **[Releases page](https://github.com/wittywilla/WittyMediaServer/releases)**, and FFmpeg comes with them. When it's running, open `http://<that computer>:9797/` in a browser to set it up.
Expand All @@ -94,14 +96,26 @@ Then go through setup: your account, a name, your language and time zone, a layo

## Your server, away from home

**New in 0.8.0-alpha.** Turn on **Use this server away from home** in **Settings → Remote Access**, and the app on your phone, TV or laptop finds its own way home: no port forwarding, no rented server, and no account with anyone.
Turn on **Use this server away from home** in **Settings → Remote access**, and the app on your phone, TV or laptop finds its own way home: no port forwarding, no rented server, and no account with anyone.

- Encrypted from end to end, to a key only your server holds.
- Only devices you approved can connect, and they still sign in.
- **Connect a device** shows a QR code to scan, at home or away from home, and a short code to type at home.
- A TV that has never been home joins with a code it shows.
- On a network that lets no direct connection through, your own WittyRelay can carry it. It's optional and free, and it can't read what it carries.

Until you choose a way in, the server answers on your home network only. See [Remote access](docs/REMOTE.md).

## New in 0.9.0-alpha

- **Apps 0.7.0 or newer.** WittyMediaClient 0.7.0 is the oldest app this server works with.
- **Setup after an update.** After a big update, an administrator deals with the modules before anyone else comes in. A module made for an older server needs an update: it's turned off, never deleted, until it's updated or removed. Without a browser, `wittymediaserver setup --post-update` does the same in a terminal. See [Post-update setup](docs/POST-UPDATE-SETUP.md).
- **Away from home, said one way.** Settings, Repair, the logs and the guides all say *away from home*, and a connection made that way is a *private connection*.
- **Phone players.** A tap on the picture shows the controls and never pauses. A double-tap skips.
- **Steadier live TV** on a slow connection, and HDR programmes on a channel keep their colours.

The [Changelog](CHANGELOG.md) has everything.

## Karaoke night

<p>
Expand Down Expand Up @@ -247,4 +261,4 @@ The app's own **Legal** page (*Settings → Legal*, or `/legal` on any server) h

---

<p align="center"><sub>WittyMediaServer 0.8.0-alpha · AGPL-3.0-or-later · Made by <a href="https://github.com/wittywilla">WittyWilla</a> · <a href="https://wittymediaserver.com">wittymediaserver.com</a></sub></p>
<p align="center"><sub>WittyMediaServer 0.9.0-alpha · AGPL-3.0-or-later · Made by <a href="https://github.com/wittywilla">WittyWilla</a> · <a href="https://wittymediaserver.com">wittymediaserver.com</a></sub></p>
2 changes: 1 addition & 1 deletion deploy/docker/compose.hardened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- no-new-privileges:true
ports:
- "9797:9797"
- "9796:9796/tcp" # peer to peer, for devices away from home (Settings → Remote Access)
- "9796:9796/tcp" # private connections, for devices away from home (Settings → Remote access)
- "9796:9796/udp"
volumes:
# Modules and game cores run from here, so don't mount it noexec.
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/compose.intel-amd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- no-new-privileges:true
ports:
- "9797:9797"
- "9796:9796/tcp" # peer to peer, for devices away from home (Settings → Remote Access)
- "9796:9796/tcp" # private connections, for devices away from home (Settings → Remote access)
- "9796:9796/udp"
volumes:
- ./config:/config
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/compose.nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- no-new-privileges:true
ports:
- "9797:9797"
- "9796:9796/tcp" # peer to peer, for devices away from home (Settings → Remote Access)
- "9796:9796/tcp" # private connections, for devices away from home (Settings → Remote access)
- "9796:9796/udp"
volumes:
- ./config:/config
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
restart: unless-stopped
ports:
- "9797:9797"
- "9796:9796/tcp" # peer to peer, for devices away from home (Settings → Remote Access)
- "9796:9796/tcp" # private connections, for devices away from home (Settings → Remote access)
- "9796:9796/udp"
volumes:
- wms-config:/config # the database, settings, artwork and logs: keep it, and back it up
Expand Down
4 changes: 2 additions & 2 deletions deploy/unraid/wittymediaserver.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<Icon>https://raw.githubusercontent.com/wittywilla/WittyMediaServer/master/web/public/icon-512.png</Icon>
<ExtraParams>--user 99:100 --read-only --tmpfs /tmp --cap-drop ALL --security-opt no-new-privileges:true</ExtraParams>
<Config Name="Web UI" Target="9797" Default="9797" Mode="tcp" Description="The port to open in a browser." Type="Port" Display="always" Required="true" Mask="false">9797</Config>
<Config Name="Peer to peer (TCP)" Target="9796" Default="9796" Mode="tcp" Description="For devices away from home (Settings, Remote Access). Forward it on your router too, or use your own WittyRelay." Type="Port" Display="always" Required="false" Mask="false">9796</Config>
<Config Name="Peer to peer (UDP)" Target="9796" Default="9796" Mode="udp" Description="The same port, for UDP." Type="Port" Display="always" Required="false" Mask="false">9796</Config>
<Config Name="Away from home (TCP)" Target="9796" Default="9796" Mode="tcp" Description="For devices away from home (Settings, Remote access). Forward it on your router too, or use your own WittyRelay." Type="Port" Display="always" Required="false" Mask="false">9796</Config>
<Config Name="Away from home (UDP)" Target="9796" Default="9796" Mode="udp" Description="The same port, for UDP." Type="Port" Display="always" Required="false" Mask="false">9796</Config>
<Config Name="Config" Target="/config" Default="/mnt/user/appdata/wittymediaserver" Mode="rw" Description="The database, settings, artwork and logs. Keep it on the cache pool." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/wittymediaserver</Config>
<Config Name="Media" Target="/media" Default="/mnt/user/Media" Mode="ro" Description="Your media, read-only. Add its folders as libraries in the app." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/Media</Config>
<Config Name="Intel or AMD graphics" Target="" Default="/dev/dri" Mode="" Description="For hardware transcoding. Remove it on a machine with neither." Type="Device" Display="always" Required="false" Mask="false">/dev/dri</Config>
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ services:
- no-new-privileges:true
ports:
- "9797:9797"
- "9796:9796/tcp" # peer to peer, for devices away from home (Settings → Remote Access)
- "9796:9796/tcp" # private connections, for devices away from home (Settings → Remote access)
- "9796:9796/udp"
# - "9443:9443" # only if you use Settings → Remote Access with HTTPS
# - "9443:9443" # only if you use Settings → Remote access with HTTPS
# - "9798:9798/udp" # games over WebRTC: set this port and the NAS's address in Settings → Consoles & cores (docs/DOCKER.md#games)
environment:
- WMS_LOG=info
Expand Down
17 changes: 10 additions & 7 deletions docs/APPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ A browser can't search your network for servers, so you need the address. A brow

## WittyMediaClient

The app for your server, on every platform: Windows, macOS, Linux, FreeBSD, Plasma Bigscreen, Android phones, tablets and TVs, iPhone, iPad and Apple TV. It finds your server at home by itself, signs in with a code, and connects away from home with nothing set up on your router.
The app for your server, on every platform: Windows, macOS, Linux, FreeBSD, Plasma Bigscreen, Android phones, tablets and TVs, iPhone, iPad and Apple TV. It finds your server at home by itself, connects by scanning a QR code or typing a code, and connects away from home with nothing set up on your router.

![WittyMediaClient on Android TV: Home, with the menu along the top and a film to play](images/app-tv-home.webp)
*WittyMediaClient 0.6.2 on Android TV, signed in to a test server as a made-up profile. Openly licensed and public-domain media, credited in [the list](images/CREDITS.md).*
Expand All @@ -50,7 +50,7 @@ The app for your server, on every platform: Windows, macOS, Linux, FreeBSD, Plas

Every app draws the same pages, which the server describes. New pages and modules arrive with the server, with no app update. The desktop app is a window around the server's own web app, so it has everything a browser has. If the Android or Apple app can't play something yet, it says so: use a browser on that device for it.

Get it from the [WittyMediaClient releases page](https://github.com/wittywilla/WittyMediaClient/releases). Nothing is in an app store yet.
Get it from the [WittyMediaClient releases page](https://github.com/wittywilla/WittyMediaClient/releases). Nothing is in an app store yet. This server needs WittyMediaClient 0.7.0 or newer: an older app says it needs a newer version.

| You have | Download |
|---|---|
Expand All @@ -64,7 +64,7 @@ Get it from the [WittyMediaClient releases page](https://github.com/wittywilla/W
| Any other Linux | `wittymediaclient-<version>-linux-amd64.AppImage` |
| FreeBSD, amd64 | `wittymediaclient-<version>-freebsd-amd64.pkg`. It uses FreeBSD's own Electron, which `pkg` installs with it |
| Plasma Bigscreen | The `.deb`, `.rpm`, `.pacman` or `.flatpak` for its distribution |
| Android phone, tablet or TV | `wittymediaclient-<version>-android-universal.apk`, or the smaller one for its processor |
| Android phone, tablet or TV | `wittymediaclient-<version>-android-universal.apk`, or the smaller one for its processor (ARM or x86) |
| iPhone or iPad | `wittymediaclient-<version>-ios.ipa`, installed with AltStore, SideStore or Sideloadly |
| Apple TV | `wittymediaclient-<version>-tvos.ipa`, installed with Sideloadly, or Xcode on a Mac |

Expand Down Expand Up @@ -143,14 +143,17 @@ For an address on the internet, the app insists on `https://`, because your pass

## Away from home

Away from home, the app makes a **private connection** to your server, with nothing set up on your router and no account with anyone. An administrator turns it on first, in **Settings → Remote Access**, with **Use this server away from home**. [Remote access](REMOTE.md#private-connections) says what that exposes, and how to test it.
Away from home, the app makes a **private connection** to your server, with nothing set up on your router and no account with anyone. An administrator turns it on first, in **Settings → Remote access**, with **Use this server away from home**. [Remote access](REMOTE.md#private-connections) says what that exposes, and how to test it.

### Connect a device

One way, the same everywhere. On the server, open **Settings → Remote Access** (or **Connect a device** under **You**) and press **Show a code**. It shows a short code like `K7QM-2XHD` and a QR code.
One way, the same everywhere. On the server, open **Settings → Remote access** (or **Connect a device** under **You**) and press **Show a code**. It shows a QR code, and a short code like `K7QM-2XHD`.

- **On your home network:** in the app, choose **Add a server**, then **Enter a code**, and type the code. The app asks the servers it finds on the network, and the one that made the code proves it before the app says anything more.
- **Away from home:** scan the QR code with the device's camera, or send the device the link under **More options** and choose **Add a server → Paste a link**. This needs **Use this server away from home** on; the page offers to turn it on.
1. On the other device, open WittyMediaClient.
2. Scan the QR code with it. That works at home and away from home.
3. No camera? **At home,** choose **Add a server**, then **Enter a code**, and type the code. The app asks the servers it finds on the network, and the one that made the code proves it before the app says anything more. **Away from home,** send the device the link under **More options**, and choose **Add a server → Paste a link** there.

The QR code and the link need **Use this server away from home** on; the page offers to turn it on. Until it's on, the page shows the code alone, which works on your home network.

The code and the link are one way in: they work once, for fifteen minutes, and whichever is used first ends the other. Signing a device in as an administrator asks for the administrator's password again.

Expand Down
2 changes: 1 addition & 1 deletion docs/CLIENT-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ Paths are relative to `/api/v1`. Full request and response shapes are in `openap
| `POST /repair/remap` | admin | A library's folder moved: `{from, to}` says what would change, and adds `{apply: true, password, code}` to do it. |
| `POST /repair/restart` | admin | Restart, for a fix that waits for the next start. 409 if none is waiting. |
| `GET /network` | admin | The port: `{port, host, from, settingsFile, saveFile, locked, docker, next, canRestart, problems, addresses, discoveryPort, httpsPort}`. `from` is `flag`, `env`, `config`, `settings` or `default`; `locked` says where the port is set when this can't change it; `next` is the port after a restart. See [The port](CONFIG.md#the-port). |
| `POST /network/check` | admin | `{port}`: whether the server could move there, `{port, ok, current, problems, warnings}`. In range, not a port browsers refuse, not Remote Access's HTTPS port, and free here, tried by listening for a moment. Saves nothing. |
| `POST /network/check` | admin | `{port}`: whether the server could move there, `{port, ok, current, problems, warnings}`. In range, not a port browsers refuse, not Remote access's HTTPS port, and free here, tried by listening for a moment. Saves nothing. |
| `PUT /network` | admin | `{port}`: save it in settings.ini for the next start, after the same checks; 400 with the first problem. 409 when `-listen`, `WMS_LISTEN`, `wms.json` or Docker set the port. Answers as `GET /network`. |
| `POST /network/restart` | admin | Restart, on the saved port. 202, then nothing answers until it's back, at the new port. 409 when it can't restart itself. |
| `GET /update` | admin | What is installed and what is available (404 in builds that can't update themselves). |
Expand Down
Loading
Loading