MSE is only supported on iOS 17.1+. You'll need to update if available
or use jsmpeg / webRTC streams. See the docs for more info.
);
}
} else if (liveMode == "jsmpeg") {
player = (
{(showStillWithoutActivity == false || activeMotion || activeTracking) &&
player}
{showStillWithoutActivity && !liveReady && (
2 ||
cameraConfig.detect.width / cameraConfig.detect.height < 1
? undefined
: 16 / 9
}
/>
)}
{liveChips && (
Motion
{cameraConfig.audio.enabled_in_config && (
Sound
)}
Tracking
)}
{cameraConfig.name.replaceAll("_", " ")}
);
}
type DebugSettingsProps = {
handleSetOption: (id: string, value: boolean) => void;
options: Options;
};
function DebugSettings({ handleSetOption, options }: DebugSettingsProps) {
return (
{
handleSetOption("bbox", isChecked);
}}
/>
{
handleSetOption("timestamp", isChecked);
}}
/>
{
handleSetOption("zones", isChecked);
}}
/>
{
handleSetOption("mask", isChecked);
}}
/>
{
handleSetOption("motion", isChecked);
}}
/>
{
handleSetOption("regions", isChecked);
}}
/>
);
}