The CreatorCon Call for Content is officially open! Get started here.

How can I make a video in a service portal widget loop?

Rachel55
Mega Guru

  It will loop in Firefox, but not in Chrome or Edge.  Here is the code.

<video autoplay loop muted>   <source src="/sys_attachment.do?sys_id=e9a289c5dbedd550e463543ed39619b7" type="video/mp4"/>  </video>

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

Hello Rachel,

try this once 

HTML

<video autoplay loop muted id="vid"> 
  <source src="/sys_attachment.do?sys_id=e9a289c5dbedd550e463543ed39619b7" type="video/mp4"/>  
</video>
<script>
    document.getElementById('vid').play();
</script>

Hope this helps 

PLEASE MARK MY ANSWER CORRECT IF IT HELPS YOU

 

We added 15 seconds of a static image to the end of the video and it started to loop in Edge and Chrome.

Rachel55
Mega Guru

Thanks for answering.  That code gives these errors.

find_real_file.png

Rachel55
Mega Guru

I apologize.  I still had a script in the server script field that I thought I had erased.  That was the script that was causing those errors.  However, the video still does not loop with this code.