WIth Vimeo Plus account, how to hide/remove the “play” button in the middle of an embedded video?

一世执手 提交于 2019-11-26 20:24:01

问题


In searching, I came across this that says Vimeo doesn't support it yet. But I was wondering if anyone has found clever ways around it still?

https://vimeo.com/forums/topic:37769

Here's an image:


回答1:


You can now remove all controls

just wanted to update anyone new looking at this. It now appears to be possible to have an embeded video without any of the controls, by using an experimental feature: background=1

Things to note

  1. All player toggles and elements will be turned off (including the play/pause button!)
  2. The video will automatically loop.
  3. The video will be set to autoplay.
  4. The video will be muted.

you can then use the js-api to control the video (pause, play, etc).

Example Embed Code

<iframe src="https://player.vimeo.com/video/76979871?background=1" 
   width="500" height="281" frameborder="0" webkitallowfullscreen 
   mozallowfullscreen allowfullscreen>
</iframe>

See the forum post here: https://vimeo.com/forums/help/topic:278001




回答2:


In your Vimeo account go to the video you wish to embed, then go to Settings > Embed. Once there enable the "Show Play Bar" option. This will eliminate the Play button in the middle of your video image, but will display the Play Bar at the bottom of your image. From what I can tell it's either/or. I would love to be able to hide both so you just see the clean poster frame of the video and click on it ti initiate playback. If anyone knows how please let me know.




回答3:


I hope this isn't against the Vimeo rules, but it is possible to hide those buttons.

<!-- Video original height is 280px -->
<style type="text/css" media="screen">
    #wrapper {
        overflow: hidden;
        position: relative;
        width: 500px;
        height: 560px;   /* height x 2 */
    }
    #wrapper iframe {
        position: absolute;
        left: 0px;
        top: -140px;  /* video height / 2 */
    }
</sytle>


<div id="wrapper">
    <iframe id="player1" 
        src="http://player.vimeo.com/video/83762493?loop=1&autoplay=1" 
        width="500" height="560" <!-- vide height x 2 -->
        frameborder="0">
    </iframe>
</div>


来源:https://stackoverflow.com/questions/12432087/with-vimeo-plus-account-how-to-hide-remove-the-play-button-in-the-middle-of-a

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!