Autoplay video in KB article in the Portal

Russell Abbott
Kilo Sage

Is it possible to have a video embedded in the body of a Knowledge Article, auto play on page load? I did a quick test but had no luck here

 

 

<video controls autoplay src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" type="video/mp4" width="300" height="150">
<source src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" /></video></span></span></p>

 

 

1 ACCEPTED SOLUTION

Russell Abbott
Kilo Sage

NVM, i fixed it. Leaving solution here for others. This autoplayed in Chrome, Edge and Brave with sound. In Firefox however I had to add the 'muted' attribute. I'm assuming then that Firefox doesn't allow autoplay of this type with volume, I'm sure there's a setting within Firefox somewhere to turn this off but I did not dig any further.

 

<video src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" preload="auto" autoplay="true" controls="controls" width="300" height="150" playsinline>
<source src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" /></video>

 

 

View solution in original post

2 REPLIES 2

Russell Abbott
Kilo Sage

NVM, i fixed it. Leaving solution here for others. This autoplayed in Chrome, Edge and Brave with sound. In Firefox however I had to add the 'muted' attribute. I'm assuming then that Firefox doesn't allow autoplay of this type with volume, I'm sure there's a setting within Firefox somewhere to turn this off but I did not dig any further.

 

<video src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" preload="auto" autoplay="true" controls="controls" width="300" height="150" playsinline>
<source src="/sys_attachment.do?sys_id=594a6960db2e215024716c39139619cb" /></video>

 

 

BenS24570419223
Tera Contributor

Hi Russell,
Well, you can definitely attach locally stored video files or embed HTML references to video sources outside of ServiceNow, you might want to consider the security of the videos that you're embedding. We have a solution that you might be interested in to create, manage, store and deliver securely embedded video into the ServiceNow platform, not only through the EC portal, but into any HTML field that you might want to such as description for a catalogue item or a topic page. Take a look at this video and if you're interested, message me directly or reach out through the website..
https://vbrick.com/videos/embed-secure-vbrick-hosted-video-in-servicenow/

Ben Sheehy