(###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 212
下载积分: 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 个回复

  • 安居客房源系统后台系统后台
    应用背景安居客房源系统后台管理模板基于bootstrap3.0.0制作,响应式设计,关键技术自适应屏幕分辨率,、兼容PC端和手机移动端。
    2022-05-19 12:18:14下载
    积分:1
  • web 页面设计
    网页是由 HTML 的使用而设计的。前面的设计将会在第一次,然后我们可以将此修改与我们非常有用的 need.its 为我们设计我们自己的 web 站点的页面。
    2022-09-07 06:15:02下载
    积分:1
  • contact-form-css-template
    Nice template for contact forms using pure CSS
    2020-06-20 16:20:02下载
    积分:1
  • 下载气泡代码
    下载气泡代码,适用浏览器:IE8、360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari浏览器。
    2022-01-26 01:41:41下载
    积分:1
  • td2008
    OA2008注册机、、测试通过,真实可用(The OA2008 Zhuceji, test by)
    2013-03-09 19:56:29下载
    积分:1
  • 11
    说明:  oemarry婚庆企业电子商务网站系统(又名:电子商务系统oemarry结婚O2O平台)是光电研发后OElove约会网站经过长期的产品展开深入研究的策划团队,根据客户的需要,婚庆行业提供一套符合企业实际应用(Oemarry wedding enterprise electronic commerce website system (also named: electronic commerce system oemarry marriage O2O platform) is the planning team of the OElove dating website after the long-term product development after the photoelectric research and development. According to the needs of the customer, the wedding industry provides a set of practical application to the enterprise.)
    2018-04-14 17:47:31下载
    积分:1
  • WebAdverts 1.60
    资源描述极酷的免费广告交换系统,现在的商业 1:X 免费广告交换系统大部分用的都是它! 
    2022-02-06 15:43:43下载
    积分:1
  • APS.NET 颜色创建器
    应用背景 在网页上,很多时候为了区别一些DIV,所以需要用颜色去区分。 为了达成这个目标,所以写了一个生成柔和的颜色方法。 关键技术 本功能点是asp.net写的。用的是VS2011,所以自己准备一下。 同时,因为是网页上很多东西都是动态加载,比如说页面。 本DEMO里面也有方法动态调用一个Html显示在另外的html上面。 颜色创建器创建的颜色比较柔和,而且颜色也比较多。值得推荐,。
    2022-02-14 15:43:33下载
    积分:1
  • 谷歌访问助手
    说明:  此为谷歌的一个插件,可以直接在谷歌进行搜索(This is a plug-in for Google and can be searched directly on Google)
    2020-05-16 14:28:25下载
    积分:1
  • html-jichu
    html基础手册,基础知识值得一看 快来看看吧(failed to translate failed to translate failed to translate failed to translate)
    2012-03-09 19:47:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载