【问题标题】:Autoplay HTML youtube link自动播放 HTML youtube 链接
【发布时间】:2015-08-10 15:34:35
【问题描述】:

我正在尝试在 HTML 脚本中自动播放的代码,但不幸的是,我拥有的所有东西都不起作用,应该将其更改为自动播放。更重要的是,我有一个论坛网站,我在下面嵌入的 youtube 链接将在可播放的 Flash 中,并希望添加一些代码来自动播放。 Youtube 自动播放 = 1 不起作用。

<html><head>
<meta property='og:image' content='http://www.scorphq.com/YouTube/MyPage/L93HiYzYN9c.jpg'>
<meta property='og:title' content='Ultimate Funny Headshots Video'>
<meta http-equiv='refresh' content='0;url=https://www.youtube.com/watch?v=L93HiYzYN9c' />
<meta property='al:android:url' content='http://www.youtube.com/watch?v=L93HiYzYN9c&amp;feature=applinks'>
<meta property='al:android:app_name' content='YouTube'>
<meta property='al:android:package' content='com.google.android.youtube'>
<meta property='al:web:url' content='http://www.youtube.com/watch?v=L93HiYzYN9c&amp;feature=applinks'>
<meta property='og:type' content='video'>
<meta property='og:video' content='http://www.youtube.com/v/L93HiYzYN9c?autohide=1&amp;version=3&autoplay=1'>
<meta property='og:video:secure_url' content='https://www.youtube.com/v/L93HiYzYN9c?autohide=1&amp;version=3&autoplay=1'>
<meta property='og:video:type' content='application/x-shockwave-flash'>
<meta property='og:video:width' content='960'><meta property='og:video:height' content='720'>
<meta property='og:site_name' content='YouTube'><meta property='og:description' content='' name='description'/>
</head></html>

【问题讨论】:

    标签: html video youtube autoplay


    【解决方案1】:

    它自 2018 年 4 月起就无法使用,因为 chrome 的自动播放政策发生了变化。您现在需要将 &mute=1 添加到 URL。 policies

    【讨论】:

      【解决方案2】:

      好的,那就用这个

      <iframe width="900" height="300" src="YOUR YOUTUBE__LINK?rel=0&amp;autoplay=1&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
      

      【讨论】:

      • 如果不起作用,您也可以编辑和使用“ autoplay=1&cc_load_policy=1 ”。
      【解决方案3】:

      取出“youtube autoplay=1”。其次,这不是 HTML5 视频嵌入的正确格式。

      改用这个: -->

      【讨论】:

      • 看看我发布的第二个答案
      猜你喜欢
      • 2011-10-14
      • 1970-01-01
      • 2015-01-07
      • 1970-01-01
      • 2021-09-23
      • 2014-05-09
      • 2011-04-29
      • 2019-07-20
      • 1970-01-01
      相关资源
      最近更新 更多