How can I make a video in a service portal widget loop?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 08:01 AM
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>
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 08:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2022 06:43 AM
We added 15 seconds of a static image to the end of the video and it started to loop in Edge and Chrome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 08:23 AM
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.