时间:2021-07-01 10:21:17 帮助过:36人阅读
问题背景:
遇到一个需求,要对播放的视频进行截图,视频使用video标签来播放,然后点击视频播放区域时截取实时的帧图片。
代码很简单如下:
- <div style="display:none">
- <div class="login-box" id="login-dialog">
- <div class="login-top"><a class="current" rel="nofollow" id="login1" onclick="setTab('login',1,2);">登录</a></div>
- <div class="login-form" id="nav-signin">
- <!-- <div class="login-ico"><a rel="nofollow" class="qq" id="qqlogin" target="_blank" href="/user-center-qqlogin.html"> QQ </a></div> -->
- <div class="login-box-form" id="con_login_1">
- <form id="loginform" action="/user-center-login.html" method="post" onsubmit="return false;">
- <p class="int-text">
- <input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};"></p>
- <p class="int-text">
- <input class="password1" type="password" id="password" name="password" value="******" onblur="if(this.value=='') this.value='******';" onfocus="if(this.value=='******') this.value='';">
- </p>
- <p class="int-info">
- <label class="ui-label"> </label>
- <label for="agreement" class="ui-label-checkbox">
- <input type="checkbox" value="" name="cookietime" id="cookietime" checked="checked">
- <input type="hidden" name="notforward" id="notforward" value="1">
- <input type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label>
- <a rel="nofollow" class="aright" href="/user-center-forgetpwd.html" target="_blank"> 忘记密码? </a></p>
- <p class="int-btn"><a rel="nofollow" id="loginbt" class="loginbtn"><span>登录</span></a></p>
- </form>
- </div>
- <form id="regform" action="/user-center-reg.html" method="post">
- <div class="login-reg" style="display: none;" id="con_login_2">
- <input type="hidden" name="t" id="t">
- <p class="int-text">
- <input id="email" name="email" type="text" value="Email" onfocus="if(this.value=='Email'){this.value='';}" onblur="if(this.value==''){this.value='Email';};"></p>
- <p class="int-text">
- <input id="uname" name="username" type="text" value="用户名或昵称" onfocus="if(this.value=='用户名或昵称'){this.value='';}" onblur="if(this.value==''){this.value='用户名或昵称';};"></p>
- <p class="int-text">
- <input type="password" id="pwd" name="password" value="******" onblur="if(this.value=='') this.value='******';" onfocus="if(this.value=='******') this.value='';"> </p>
- <p class="int-text1"><span class="inputbox">
- <input id="validate" name="validate" type="text" value="验证码" onfocus="if(this.value=='验证码'){this.value='';}" onblur="if(this.value==''){this.value='验证码';};">
- </span><span class="yzm-img"><img src="/user-checkcode-index" alt="看不清楚换一张" id="indexlogin"></span></p>
- <p class="int-info">
- <label>
- <input value="" name="agreement" id="agreement" checked="checked" type="checkbox">
- 我已阅读<a rel="nofollow" href="/user-center-agreement.html">用户协议</a>及<a rel="nofollow" href="/user-center-agreement.html">版权声明</a></label>
- </p>
- <p class="int-btn"><input type="hidden" name="dosubmit">
- <a rel="nofollow" class="loginbtn" id="register"><span>注册</span></a></p>
- </div>
- </form>
- </div>
- </div>
- </div>