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:
@@ -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('=');
|
||||
|
||||
Reference in New Issue
Block a user