Enable Play/Pause when background is true in Vimeo video embed options

大城市里の小女人 提交于 2019-12-12 19:24:36

问题


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.



来源:https://stackoverflow.com/questions/51613509/enable-play-pause-when-background-is-true-in-vimeo-video-embed-options

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