英文:
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 -->
<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>
<!-- end snippet -->
Did according to the instructions found.
答案1
得分: 1
你应该在HTML5中使用视频标签。
它将正常工作。
英文:
You should be using the video tag in HTML5.
<video width="400" controls>
<source src="video/video.mp4" type="video/mp4">
</video>
I will work fine
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论