Skip to main content
Question

Disable video autoplay in Freshservice

  • September 23, 2024
  • 3 replies
  • 20 views

jjmancini
Community Debut
Forum|alt.badge.img

How do I stop the video that I have embedded from autoplaying in the KB?

It seems when I pasted embed code, it edits it out.

Starts like this:
<iframe src="sampleurl" width="560" height="315" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

After saving, looks like this:
<iframe src="sampleurl" width="560" height="315" allowfullscreen=""></iframe>

Did this topic help you find an answer to your question?

mikecolady1
Community Debut
Forum|alt.badge.img+1

Hey, anyone knows about best video chat option nowadays? I know there’re many alternatives to Omegle and I was recently checking https://omegle.fan but would love to know more from you guys. 


VaibhavS
Contributor
Forum|alt.badge.img+1
  • Contributor
  • April 10, 2025

Hello,
 

It looks like the Freshservice Knowledge Base editor is automatically sanitizing the embedded HTML for security reasons, which can result in attributes like autoplay or even parts of the allow list being stripped out after saving.

To prevent the video from autoplaying, make sure that the autoplay parameter is not present in the video URL (or explicitly set to autoplay=0 if supported by the platform, like YouTube). For example, if you're embedding a YouTube video, modify the URL like this:

https://www.youtube.com/embed/VIDEO_ID?autoplay=0

Also, since the editor is stripping attributes like allow="autoplay", removing autoplay from both the URL and the allow attribute helps ensure that autoplay won't be triggered.

Unfortunately, due to how the Freshservice KB editor handles HTML sanitization, fine-grained control over iframe attributes may be limited.


Forum|alt.badge.img+7
  • Skilled Expert
  • April 10, 2025

Freshservice sanitizes HTML, so you can’t fully control iframe behavior like autoplay. Best workaround: use a clean embed link with no autoplay query parameter, and let the platform strip the rest.


Reply