APK supports HTML video control
<! DOCTYPE html> "Text-align:center;"> <button onclick="Playpause ()"> Play/Pause </button> <button onclick="Makebig ()"> Big </button> <button onclick="Makenormal ()"> </button> <button onclick="Makesmall ()"> Small </button> <br/> <video id="Video1"Width="420"style="margin-top:15px; Display:none"> <source src="Http://www.w3school.com.cn/i/movie.mp4"Type="Video/mp4"/> <source src="Http://www.w3school.com.cn/i/movie.ogg"Type="Video/ogg"/>Your Browser does not support HTML5 video. </video></div> <script type="Text/javascript">varMyvideo=document.getelementbyid ("Video1"); function Playpause () {if(myvideo.paused) {Myvideo.play ();}Else{myvideo.pause ();}} </script> </body> The key code is paused if it is in the playback state, and if it is paused, play
function Playpause () { if (myvideo.paused) { myvideo.play ();} Else {
APK supports HTML video control, which is paused when the playback state is paused, playing