• <small id='Fl1sn'></small><noframes id='Fl1sn'>

        <legend id='Fl1sn'><style id='Fl1sn'><dir id='Fl1sn'><q id='Fl1sn'></q></dir></style></legend>
          <bdo id='Fl1sn'></bdo><ul id='Fl1sn'></ul>

      1. <tfoot id='Fl1sn'></tfoot>
      2. <i id='Fl1sn'><tr id='Fl1sn'><dt id='Fl1sn'><q id='Fl1sn'><span id='Fl1sn'><b id='Fl1sn'><form id='Fl1sn'><ins id='Fl1sn'></ins><ul id='Fl1sn'></ul><sub id='Fl1sn'></sub></form><legend id='Fl1sn'></legend><bdo id='Fl1sn'><pre id='Fl1sn'><center id='Fl1sn'></center></pre></bdo></b><th id='Fl1sn'></th></span></q></dt></tr></i><div id='Fl1sn'><tfoot id='Fl1sn'></tfoot><dl id='Fl1sn'><fieldset id='Fl1sn'></fieldset></dl></div>

        是否可以使用参数隐藏 youtube 的红色大播放按钮?

        时间:2023-09-06
          <tbody id='j30CR'></tbody>
          • <tfoot id='j30CR'></tfoot>
            • <bdo id='j30CR'></bdo><ul id='j30CR'></ul>

                1. <legend id='j30CR'><style id='j30CR'><dir id='j30CR'><q id='j30CR'></q></dir></style></legend>

                  <i id='j30CR'><tr id='j30CR'><dt id='j30CR'><q id='j30CR'><span id='j30CR'><b id='j30CR'><form id='j30CR'><ins id='j30CR'></ins><ul id='j30CR'></ul><sub id='j30CR'></sub></form><legend id='j30CR'></legend><bdo id='j30CR'><pre id='j30CR'><center id='j30CR'></center></pre></bdo></b><th id='j30CR'></th></span></q></dt></tr></i><div id='j30CR'><tfoot id='j30CR'></tfoot><dl id='j30CR'><fieldset id='j30CR'></fieldset></dl></div>
                2. <small id='j30CR'></small><noframes id='j30CR'>

                  本文介绍了是否可以使用参数隐藏 youtube 的红色大播放按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前用于创建 YouTube iframe 的代码的快速示例:

                  Quick example of the code I'm using at the moment to create my YouTube iframe:

                  player = new YT.Player('[PLAYER ID]', {
                    height: '300',
                    width: '480',
                    videoId: '[VIDEO ID]',
                    playerVars: { 'controls': 0, 'showinfo': 0 },
                  });
                  

                  到目前为止一切都很好,它可以在没有控件或信息条的情况下正常加载视频,我正在使用 javascript手动"播放视频.

                  It's all working great so far, it's loading the video fine without controls or the info strip and I'm 'manually' playing the video using javascript.

                  问题是现在不需要在视频开始时立即显示的红色大播放"按钮.

                  The problem is that there's now no need for the big red 'play' button that is momentarily displayed as the video's starting.

                  有什么办法可以解决这个问题吗?我浏览了文档,找不到合适的参数来隐藏它.

                  Is there any way I can get rid of this? I've looked through the documentation and can't find a suitable parameter that would allow me to hide it.

                  推荐答案

                  我发现不可能.因此,隐藏播放按钮的唯一方法是将视频图像放在可以从 youtube 获取的视频上方,如下所示.每个 YouTube 视频都有 4 个生成的图像.可以预见,它们的格式如下:

                  I found it not possible. So the only way to hide Play button is to place video image above the video which can be fetched from youtube as follow. Each YouTube video has 4 generated images. They are predictably formatted as follows:

                  http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
                  http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
                  http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
                  http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
                  

                  但是一旦你添加了叠加层,点击屏幕而不是控件将不会播放视频,为此添加以下播放视频的 jQuery

                  But once you add the overlay, clicking on the screen instead of control will not play the video, To do this add the following jQuery which plays the video

                  jQuery('#overlay').click(function(){
                    jQuery(this).hide();
                    jQuery('#youtube_id').get(0).playVideo();
                  });
                  

                  这篇关于是否可以使用参数隐藏 youtube 的红色大播放按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Youtube Data Api - 未捕获的类型错误:无法读取未定义的属性“setApiKey" 下一篇:YouTube iframe API 和 WordPress

                  相关文章

                      <bdo id='Z2PHd'></bdo><ul id='Z2PHd'></ul>

                    <small id='Z2PHd'></small><noframes id='Z2PHd'>

                    <legend id='Z2PHd'><style id='Z2PHd'><dir id='Z2PHd'><q id='Z2PHd'></q></dir></style></legend>
                    1. <tfoot id='Z2PHd'></tfoot>

                      <i id='Z2PHd'><tr id='Z2PHd'><dt id='Z2PHd'><q id='Z2PHd'><span id='Z2PHd'><b id='Z2PHd'><form id='Z2PHd'><ins id='Z2PHd'></ins><ul id='Z2PHd'></ul><sub id='Z2PHd'></sub></form><legend id='Z2PHd'></legend><bdo id='Z2PHd'><pre id='Z2PHd'><center id='Z2PHd'></center></pre></bdo></b><th id='Z2PHd'></th></span></q></dt></tr></i><div id='Z2PHd'><tfoot id='Z2PHd'></tfoot><dl id='Z2PHd'><fieldset id='Z2PHd'></fieldset></dl></div>