From 6cac34e96885d19a95d3e82dbe52c477b6cf7ecb Mon Sep 17 00:00:00 2001 From: Bergasha Date: Wed, 19 Aug 2026 13:33:14 +1000 Subject: [PATCH] Changed resolution to show the actual streaming resolution (transcode target) instead of the source file's, formatted as e.g. 1080p instead of 1920x1080 --- packages/widgets/src/media-server/component.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/widgets/src/media-server/component.tsx b/packages/widgets/src/media-server/component.tsx index d76c83d58..6a9553a85 100644 --- a/packages/widgets/src/media-server/component.tsx +++ b/packages/widgets/src/media-server/component.tsx @@ -300,8 +300,12 @@ export default function MediaServerWidget({ const status = getPlaybackStatus(currentlyPlaying?.metadata?.transcoding); const location = showLocation ? currentlyPlaying?.location : null; const bitrateLabel = showBitrate ? formatBitrate(currentlyPlaying?.metadata?.bitrateKbps) : null; - const resolution = currentlyPlaying?.metadata?.video.resolution; - const resolutionLabel = resolution ? `${resolution.width}x${resolution.height}` : null; + // The transcoding resolution reflects what's actually being streamed - fall back to the + // source's own resolution when it isn't set (direct play, or a transcode that only + // touches audio/container and leaves the video resolution untouched). + const resolution = + currentlyPlaying?.metadata?.transcoding.resolution ?? currentlyPlaying?.metadata?.video.resolution; + const resolutionLabel = resolution ? `${resolution.height}p` : null; const toggleDetails = () => setSelectedRowId((current) => (current === rowId ? null : rowId)); return (