Views:
Applies to Product - Dynamics 365 Commerce

What’s happening?
The video created in blob storage and mapped in the hardware profile of the register is not playing continuously as expected. The video stops after it ends instead of looping.
 
Reason:
This is related to the customization made to support dual display and play video, where the auto loop play functionality is not functioning as intended.
 
Resolution:
1. Ensure that the video tag is correctly implemented in the code. The following code snippet can be used:
      <video id="webView"><source src="{video url}"></video>

2. If the video is not looping, consider using a JavaScript function to manually reset the video playback. The following TypeScript code can be implemented:
    <br>typescript const videoElement = document.getElementById('myVideo') as HTMLVideoElement; setInterval(() => { if (videoElement.ended) { videoElement.currentTime = 0; videoElement.play(); } }, 1000); // Check every second
3. If using an iframe, ensure that the iframe is set up correctly to allow autoplay and looping:
   <iframe class="standardGrid" data-bind="attr: {src : webURL}" sandbox=""></iframe>