Skip to content

fix(discord): show 'Watching <title>' instead of 'Playing Nuvio' - #628

Open
maximedeprince wants to merge 1 commit into
NuvioMedia:Devfrom
maximedeprince:pr/discord-watching
Open

fix(discord): show 'Watching <title>' instead of 'Playing Nuvio'#628
maximedeprince wants to merge 1 commit into
NuvioMedia:Devfrom
maximedeprince:pr/discord-watching

Conversation

@maximedeprince

Copy link
Copy Markdown

Summary

Fixes the desktop Discord Rich Presence showing "Playing Nuvio" with a game icon while watching. It now shows the media title with the Watching activity type, plus a progress bar.

PR type

  • Behavior bug/regression fix

Why

The Discord presence never set an activity type, so Discord fell back to type 0 (Playing) and displayed "Playing Nuvio" with a game icon during playback, instead of what the user is watching. Reported in #591.

Desktop scope

Windows/macOS/Linux desktop. The change is in the desktop-only discordrpc code; one shared field (durationMs) was added to the desktop player presence snapshot in commonMain to feed the progress bar, and is only consumed by the desktop Discord presence.

Issue or approval

Fixes #591

UI / behavior impact

  • No UI change
  • Behavior changed only to fix a documented bug/regression

Policy check

  • I have read and understood CONTRIBUTING.md.
  • This PR is small, focused, and limited to one problem.
  • This PR is scoped to the desktop app, desktop packaging, desktop documentation, or shared code required for desktop behavior.
  • This PR is not cosmetic-only.
  • Any UI change fixes a linked glitch/bug and includes visual proof, or this PR has no UI change.
  • Any behavior change fixes a linked bug/regression or has explicit approval, or this PR has no behavior change.
  • This PR does not bundle unrelated refactors, cleanups, formatting, or drive-by changes.
  • This PR does not add dependencies, architecture changes, migrations, or product-direction changes without explicit approval.
  • I listed the testing performed below.

Scope boundaries

Only the Discord Rich Presence payload is changed (activity type, name, details/state, and an end timestamp). No player, UI, or app behavior is touched beyond the presence shown to Discord. No new dependencies.

Testing

Built the Windows desktop app from this branch and watched a show and a movie with Rich Presence enabled:

  • Discord now shows "Watching <title>" (the title on the line under the username, e.g. "Breaking Bad") instead of "Playing Nuvio", with no game icon.
  • Details show the title; series show the episode as "S1, E2: …"; movies omit the episode.
  • A progress bar with time remaining is shown while playing, and disappears when paused (state then shows "Paused").
  • Poster still shown as the large image.

Note on client behavior: recent Discord clients render the custom name on the top line; older clients ignore it and fall back to the app name, in which case the title is still visible via details.

Screenshots / Video

Not a UI change (the app UI is unchanged; only the external Discord presence card changes).
image
image

Breaking changes

None.

Linked issues

Fixes #591

The desktop Discord Rich Presence never set an activity type, so Discord
fell back to type 0 (Playing) and displayed 'Playing Nuvio' with a game
icon while watching a movie or show.

- Set the Watching activity type (3) during playback.
- Put the media title in the activity name (the line shown under the
  username) as well as in details, so Discord shows what is being watched.
  Recent clients render the title on the top line; older ones fall back to
  the app name and still show the title in details.
- Add an end timestamp (start + duration) so Discord draws a progress bar
  with the time remaining. This required exposing the stream duration in
  the player presence snapshot.

Fixes NuvioMedia#591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Discord RPC shows that I am playing Nuvio in discord servers instead of showing watching "movie/show title"

1 participant