Insert video into HTML 将视频插入到HTML中

huangapple go评论69阅读模式
英文:

Insert video into HTML

问题

I wanted to embed a video in HTML. I tried to do it with player script. I registered the paths and scripts, but the video is not visible on the page, although it can be found, and clicking the video will open in an additional window. What's wrong?

<main>
  <div class="wrapper">
    <section class="intro">
      <div class="intro-wrap text-intro-wrap">
        <h1 class="title">ПОБЕждай с нами</h1>
        <p class="under-title-text">Присоединяйся к команде ПОБЕДителей.</p>
        <a href="https://xn--80aaadiigoj9aqmm.xn--p1ai/%D0%B2%D0%B0%D0%BA%D0%B0%D0%BD%D1%81%D0%B8%D0%B8/?occupation=%D0%9E%D1%84%D0%B8%D1%81" class="standard-button red-button">Хочу в команду ПОБЕДителей!</a>
      </div>
      <div class="intro-wrap">
        <a href="video/video.mp4" style="display: block; width: 300px; height: 200px;" id="player"></a>
        <script type="text/javascript">
          flowplayer("player", "flowplay/flowplayer.swf");
        </script>
      </div>
    </section>
  </div>
</main>

Did according to the instructions found.

英文:

I wanted to embed a video in HTML. I tried to do it with player script. I registered the paths and scripts, but the video is not visible on the page, although it can be found and clicking the video will open in an additional window. What's wrong?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

&lt;main&gt;
  &lt;div class=&quot;wrapper&quot;&gt;
    &lt;section class=&quot;intro&quot;&gt;
      &lt;div class=&quot;intro-wrap text-intro-wrap&quot;&gt;
        &lt;h1 class=&quot;title&quot;&gt;ПОБЕждай с нами&lt;/h1&gt;
        &lt;p class=&quot;under-title-text&quot;&gt;Присоединяйся к команде ПОБЕДителей.&lt;/p&gt;
        &lt;a href=&quot;https://xn--80aaadiigoj9aqmm.xn--p1ai/%D0%B2%D0%B0%D0%BA%D0%B0%D0%BD%D1%81%D0%B8%D0%B8/?occupation=%D0%9E%D1%84%D0%B8%D1%81&quot; class=&quot;standard-button red-button&quot;&gt;Хочу в команду ПОБЕДителей!&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class=&quot;intro-wrap&quot;&gt;
        &lt;a href=&quot;video/video.mp4&quot; style=&quot;display: block; width: 300px; height: 200px;&quot; id=&quot;player&quot;&gt;&lt;/a&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;
          flowplayer(&quot;player&quot;, &quot;flowplay/flowplayer.swf&quot;);
        &lt;/script&gt;
      &lt;/div&gt;
    &lt;/section&gt;
  &lt;/div&gt;

<!-- end snippet -->

Insert video into HTML
将视频插入到HTML中

Insert video into HTML
将视频插入到HTML中

Did according to the instructions found.

答案1

得分: 1

你应该在HTML5中使用视频标签。

它将正常工作。

英文:

You should be using the video tag in HTML5.

&lt;video width=&quot;400&quot; controls&gt;
  &lt;source src=&quot;video/video.mp4&quot; type=&quot;video/mp4&quot;&gt;
&lt;/video&gt;

I will work fine

huangapple
  • 本文由 发表于 2023年5月24日 20:56:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323793.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定