Vimeo video not working with HTML5 tag

前端 未结 2 1500
我寻月下人不归
我寻月下人不归 2020-12-16 03:19

I want to add a slider to Vimeo videos. I checked this slider, but it uses the HTML5 video tag. When I use the same tag with a Vimeo video URL then it\'s not working. Here i

相关标签:
2条回答
  • 2020-12-16 03:38

    You'll need to use our embed code for it to work. http://player.vimeo.com/video/68866759 is not a video file, it's an HTML page, so putting it in a video tag won't do anything.

    If you replace the video tag with this it should work:

    <iframe src="//player.vimeo.com/video/68866759" width="960" height="540" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

    0 讨论(0)
  • 2020-12-16 03:47

    Go to your Video Settings and Video File, at the bottom there is a section called Use Your Own Player, you'll find there direct urls to your video. Example:

    <video src="http://player.vimeo.com/external/85569724.sd.mp4?s=43df5df0d733011263687d20a47557e4"></video>
    

    Note: This requires a PRO Vimeo account.

    0 讨论(0)
提交回复
热议问题