当在同一页面播放另一个视频时,如何在html页面中自动停止视频

时间:2018-04-20 09:56:36

标签: javascript html

我正在开展一个小型项目,需要在同一页面上播放许多视频。当在同一页面播放另一个视频时,我无法暂停视频。谁能帮我?它不包含任何花哨的JavaScript。只是普通的HTML。 这是我的一些例子

<!DOCTYPE html>
<html>
<head>
<title>Videos | MCloud | Your Music Place</title>



</head>
<body>

<HEADER>
<a href="/" title="MCloud"><img src="images/logo.jpg" height="70"></a> <div 
style="width:1500px;height:50px;border:1px solid #000 ; background-color: 
#F5D0A9"><h4 align="center"><a href="MCloud_home.html">Home</a> | <a 
href="#">Latest English Songs</a> | <a href="#">Latest Bollywood Songs</a> | 
<a href="#">Latest Bangla songs</a> | </h4> 
 </h4>
</div>


<h4>Like Music? And Like Videos?? Here Are some Reccomendations</h4>

<table>
<tr>
    <td><video controls height="160" width="300"><source src="videos/Post 
Malone - Psycho ft. Ty Dolla $ign.mp4" type="video/mp4"></video></td>
    <td><video controls height="160" width="300"><source src="videos/James 
Yammouni & Faydee - On My Way ft. Adam Saleh (Official Music Video).mp4" 
type="video/mp4"></video></td>
    <td><video controls height="160" width="300"><source 
src="videos/maroon5-wait.mp4" type="video/mp4"></video></td>
    <td><video controls height="160" width="300"><source 
src="videos/maroon5-payphone.mp4" type="video/mp4"></video></td>
    <td><video controls height="160" width="300"><source src="videos/The 
Chainsmokers & Coldplay - Something Just Like This (Lyric).mp4" 
type="video/mp4"></video></td>
</tr>

0 个答案:

没有答案