Don't autoplay the embedded threat-demo voiceover on page load
CI / build (push) Has been cancelled

ThreatDemosSlider always passed autoPlay to ThreatCinematic, so the
Mobile SDK page's embedded demo — including its speech-synthesis
narration — started 450ms after the page loaded rather than waiting
for a visitor to tap the phone. Autoplay is now standalone-only
(/threat-demos); the embedded instance stays idle until tapped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-13 14:03:41 +05:00
co-authored by Claude Sonnet 5
parent f02461b456
commit 51c05ccc3a
+1 -1
View File
@@ -56,7 +56,7 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
exit={{ x: dir > 0 ? '-100%' : '100%' }}
transition={{ type: 'spring', stiffness: 260, damping: 30 }}
style={{ position: 'absolute', inset: 0 }}>
<ThreatCinematic scenario={scenario} autoPlay chrome={false} />
<ThreatCinematic scenario={scenario} autoPlay={!embedded} chrome={false} />
</motion.div>
</AnimatePresence>