Fix StreamInfo.ToUrl: restore plain key=value for StreamOptions

The previous (wrong) change encoded options as streamOptions[key]=value.
ParseStreamOptions reads IQueryCollection verbatim, so the key would be
stored as "streamOptions[crtShader]" instead of "crtShader", breaking
TryGetValue("crtShader"). Restore the original plain format so the
server-side lookup works correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mani
2026-02-25 23:05:57 +01:00
parent 464c02885e
commit dd73b1d309

View File

@@ -1122,7 +1122,9 @@ public class StreamInfo
foreach (var pair in StreamOptions)
{
// Strip spaces to avoid having to encode h264 profile names
// Strip spaces to avoid having to encode h264 profile names.
// Use plain key=value (no streamOptions[] wrapper) so ParseStreamOptions
// on the streaming endpoint picks them up correctly.
sb.Append('&');
sb.Append(pair.Key);
sb.Append('=');