(###simpletouseMaindocuments:.<scriptsrc="poster.js"></script>.Callonthevideopreviewinterface:.Poster($('video')[0],function(E){)//console.log(E);If(e.bool){//outputfileobjectVarblob=e.data;//returnisblobConsole.log(BLOB);P.src=window.URL.createObjectURL(e.data);//createatemporarypreviewpath}});.Theuseofextendvideo.js###Thedifferencebetween`extendvideo.js`and`poster.js`isthattheformeraddsa`getPoster()methodtoeach`video`taginthepagethatisintroducedtoit..Usage:.Varblob=$('video')[0].getPoster(BLOB);//returnpictureobject.##principleThisvideocapturetoolusesacanvasdrawingfunctiontointerceptvideopictures,generateBase64codedpictureinformation,andthentransferblob.##compatibilityYourbrowserneedstosupport`HTML5`)-IMDN开发者社群-imdn.cn"> (###simpletouseMaindocuments:.<scriptsrc="poster.js"></script>.Callonthevideopreviewinterface:.Poster($('video')[0],function(E){)//console.log(E);If(e.bool){//outputfileobjectVarblob=e.data;//returnisblobConsole.log(BLOB);P.src=window.URL.createObjectURL(e.data);//createatemporarypreviewpath}});.Theuseofextendvideo.js###Thedifferencebetween`extendvideo.js`and`poster.js`isthattheformeraddsa`getPoster()methodtoeach`video`taginthepagethatisintroducedtoit..Usage:.Varblob=$('video')[0].getPoster(BLOB);//returnpictureobject.##principleThisvideocapturetoolusesacanvasdrawingfunctiontointerceptvideopictures,generateBase64codedpictureinformation,andthentransferblob.##compatibilityYourbrowserneedstosupport`HTML5`) - IMDN开发者社群-imdn.cn">
登录
首页 » JavaScript » FrCapture-master

FrCapture-master

于 2018-01-16 发布
0 211
下载积分: 1 下载次数: 0

代码说明:

说明:  ## 视频截图工具 可以在预览视频的时候选择一个适合的界面把它截取下来,并存成图片。 ## 使用 ### 简单使用 主要文件: ``` ``` 在视频预览界面调用: ``` poster($('video')[0],function(e){ //console.log(e); if(e.bool){ //输出文件对象 var blob=e.data;//返回的是blob对象 console.log(blob); p.src=window.URL.createObjectURL(e.data);//创建一个临时预览路径 } }); ``` ### 使用extendvideo.js `extendvideo.js`与`poster.js`不同的是前者会在引入它的页面里每个`video`标签里增加一个`getPoster()`方法 。 用法: ``` var blob=$('video')[0].getPoster();//返回图片blob对象 ``` ## 原理 此视频截图工具,采用了canvas绘图函数实现video图片截取,产生base64编码图片信息,再通过转blob。 你的浏览器需要支持`HTML5`(### simple to use Main documents: . . Call on the video preview interface: . Poster ($('video') [0], function (E) {) //console.log (E); If (e.bool) { / / output file object Var blob=e.data; / / return is blob Console.log (BLOB); P.src=window.URL.createObjectURL (e.data); / / create a temporary preview path } }); . The use of extendvideo.js ### The difference between `extendvideo.js` and `poster.js` is that the former adds a `getPoster () method to each `video` tag in the page that is introduced to it. . Usage: . Var blob=$('video') [0].getPoster (BLOB); / / return picture object . ## principle This video capture tool uses a canvas drawing function to intercept video pictures, generate Base64 coded picture information, and then transfer blob. ## compatibility Your browser needs to support `HTML5`)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • lv2012
    zencart的LV整站,本人测试无错,带数据(zencart the LV of the entire station, I test the error-free, with data)
    2012-08-21 01:36:07下载
    积分:1
  • ModLogAn日志分析系统源代码
    资源描述服务器日志分析系统     > 通过外接插件技术实现输入/输出功能      > 支持web section,extened logfile format,common logfile format,       squid logs,wu-ftp/proftp logfiles,logfiles from msiis 5.0等输入格式     > 支持html,webalizer,text等输出格式 
    2022-05-08 13:18:19下载
    积分:1
  • 报销管理系统
    一个非常不错的报销管理系统,可以作为学生提交的作业。1、 报销信息的登录,包括人员姓名(人员姓名可以填写个人编号、可以输入姓名)、部门名称(可以填写部门编号、部门名称,部门下面可以有具体某职务在这里就不用填写。这里用下拉列表框)、工程项目(同上。用下拉列表框)、报销项目(同上。用下拉列表格框)、报销时间、报销金额、备注、是否列到项目成本。
    2022-04-08 07:05:46下载
    积分:1
  • skin
    机顶盒UI下载小例子,可以实现UI机顶盒上的广告,界面更新等。(skin download)
    2013-06-05 12:40:25下载
    积分:1
  • xjglxt
    将用户加入组 学生管理系统 查看老师 学生(Add users to groups Browse the students)
    2018-07-05 12:33:37下载
    积分:1
  • JavaScript鼠标悬停
    应用背景onmouseover事件发生时,将鼠标指针移动到一个元素,或在一个孩子的。提示:此事件通常与onmouseout事件一起使用,当用户移动鼠标指针从一个元素。关键技术当鼠标指针悬停在该元素的mouseover事件发生。的mouseover()方法触发mouseover事件,或将要运行的函数当mouseover事件发生。注:不像MouseEnter事件,mouseover事件触发如果鼠标指针进入任何子元素以及元素。的MouseEnter事件只是触发时,鼠标指针进入选定的元素。看到的例子在页面的最后一个示范。提示:此事件通常与mouseout事件一起使用。
    2022-02-02 19:59:46下载
    积分:1
  • Ecshop仿京东商城+手机触屏版+超强微信接口+手机WAP支付+个人免签支付宝
    应用背景需要ecshop的朋友可以下载,手机商城,微信商城,经过调试可以执行,建议使用php5.3的环境,php+mysql平台。有点程序基础调试起来非常好用,尤其是ectouch这块。关键技术Ecshop仿京东商城+手机触屏版+超强微信接口+手机WAP支付+个人免签支付宝
    2022-06-16 07:53:20下载
    积分:1
  • xyxcms_1.3
    小游戏CMS(XyxCms),将是您轻松建站的首选利器。小游戏CMS系统对站点管理和创造编辑都有好处,无论是CMS系统的易用性和功能的完善性,都处于领先优势!网站的编辑、发布、管理人员可轻松便捷的通过小游戏CMS系统来提交修改、审批、发布内容。 默认管理员账号/密码: admin / admin(Game CMS ( XyxCms ), will be easy for you to build your first choice for weapon. Game CMS system on site management and creation are good, regardless of whether the CMS system is easy to use and functions, are in a leading edge! The editor of the website, publishing, management can be easy and convenient through the game CMS system to submit the modifications, approval, publication. The default administrator account/password: admin/Admin)
    2013-01-12 01:25:53下载
    积分:1
  • abcbook
    HP单文件简约版 无需安装 体积小巧 简单实用 管理密码:admin(HP single-file simple version without having to install a compact simple and practical management password: admin)
    2013-03-19 12:11:29下载
    积分:1
  • 毕设
    说明:  毕业设计,项目参考,电子商城,文档和源码(Graduation project, project reference, e-mall, documentation and source code)
    2020-11-09 14:59:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载