Rails video_tag с
<%= video_tag ['your_video1.mp4', 'your_video2.mp4'], controls: false, type: 'video/mp4', autoplay: :autoplay, loop: :loop, muted: :muted, width: '1000' %>
Lioruby