Built for Dungeon Train — usable by any mod. Stream Detect has no dependency on Dungeon Train.
When you're streaming, a mod can do better than treat you like every other player. Stream Detect tells other mods one thing: OBS Studio or Streamlabs is open. What they do with that is up to them. For example, they can:
Dungeon Train uses it to show a Share stream! tab on its Videos button, so streamers can add their channel to the in-game community videos page.
obs64.exe, obs32.exe, obs (macOS / Linux), Streamlabs OBS.exe, Streamlabs Desktop.exe.Nothing to configure. Install it alongside a mod that uses it. Client-side only; servers don't need it.
Tailor your mod for streamers with one call:
games.brennan.streamdetect.api.StreamDetect.detectNow() returns the matched program name, or null. Call it off the render thread; the result is cached after the first call.hasResult() and isRunningNow() are cheap reads for render code.Declare Stream Detect as an optional dependency and guard calls with your loader's "is mod loaded" check. Launch with -Dstreamdetect.test=obs64.exe to test your streamer UI without OBS running.
Fabric, Forge and NeoForge for Minecraft 1.21.1. No mixins, items, blocks, commands or config.