YouTube embed showinfo has been deprecated

后端 未结 8 2146
抹茶落季
抹茶落季 2020-12-10 12:06

We are using a YouTube video on our website as a hero banner.

However few days ago it started showing it\'s title, watch later button and a share button. We were abl

8条回答
  •  情歌与酒
    2020-12-10 12:16

    The solution I found aesthetically most pleasing is to lay a high res thumbnail over the video and hide it at hover. This also deals with the problem that the youtube preview is low res and looks cheap in my opinion.

    Check it out here: http://jsfiddle.net/d9D9E/1/

    Had to write code in order to show the js fiddle :/

    .video-thumbnail{
        z-index:300;
        position:absolute;
        top:0;
        left:0;
        width:100%;
    }
    
    .video-thumbnail:hover{
        display:none;
    }
    

提交回复
热议问题