Enable Play/Pause when background is true in Vimeo

2019-07-15 04:53发布

问题:

With the help of following parameters we can hide title, line, logo but not like and add to watch later.

title=0&byline=0&portrait=0

With the help of following parameters we can hide title, line, logo , like , add to watch later, play/pause and all other options but the video will be auto play and we can't pause the video.

background=1

回答1:

Unfortunately that is not currently possible using our player.js API.

If you use the background parameter it is meant to be a typical background video running endlessly like you see on websites- autoplay, muted, no controls, looping.

So as a clear answer - At this point there is no way to hide those other icons programmatically. However, we have received the feedback and are looking into instituting the feature. If you are the video's owner though and have a paid account (basic users cannot edit embed settings), you have the ability to hide all of these things in the video settings. If you visit https://vimeo.com/manage/[YOUR-CLIP-ID]/v2/embed you will have the ability to change what appears in the embed such as: playbar, volume icon, Speed controls, Fullscreen icon, and all the Actions (Like, Watch Later, Share). There you can also choose to hide the title/byline/portrait completely as well.