diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index d954bdcd52..f7c6114bb4 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -204,7 +204,12 @@ http { limit_except GET { deny all; } - proxy_pass http://go2rtc/api/ws; + # Request H.264 from go2rtc for browser MSE compatibility. + # H.265 cameras with non-standard PPS parameter sets cause Chrome's + # MSE decoder to receive the init segment but stall on media fragments, + # triggering a 6-second timeout and fallback to low-bandwidth JPEG mode. + set $args "${args}&video=h264&audio=aac"; + proxy_pass http://go2rtc/api/ws?$args; include proxy.conf; }