Add top-1000 checkbox to ONVIF page, classify JPEG streams as alternative

- Add checked-by-default checkbox to also test popular stream patterns
- Move JPEG-only streams (no H264/H265) to Alternative group in test results
This commit is contained in:
eduard256
2026-04-08 11:27:08 +00:00
parent 0fb7356a5e
commit e47c0f7ce6
2 changed files with 51 additions and 0 deletions
+2
View File
@@ -424,8 +424,10 @@
function classifyResult(r) {
var scheme = r.source.split('://')[0] || '';
var isRecommended = scheme === 'rtsp' || scheme === 'rtsps' || scheme === 'onvif';
var isJpegOnly = r.codecs && r.codecs.length > 0 && r.codecs.indexOf('H264') === -1 && r.codecs.indexOf('H265') === -1;
var isHD = r.width >= 1280;
if (isJpegOnly) return 'alt';
if (isRecommended && isHD) return 'rec-main';
if (isRecommended) return 'rec-sub';
return 'alt';