when I try to show a video by Vimeo using Embed code the video is not autoplaying
here my code -
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/ID?autoplay=1&loop=1&color=fff&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
please help me out if you can.
Add Mute
attribute (Anyway your video url is not valid).
<iframe id="vimeo_player"
src="https://player.vimeo.com/video/257992348?muted=1&autoplay=1">
Example:
?muted=1&autoplay=1
thank you for the kind reply and it’s working now.
but the video is not autoplaying on mobile devices. do you have any suggestions?
thanks in advance.
webdev
(Jeff Selser)
4
I suggest using the search function here in the forums. This has been asked and answered countless times.
Try to add playsinline
- on iphone
somethimes the video not autoplay without this attribute.
Also clear cache
.
system
(system)
Closed
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.