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

  • FirstStruts
    销售网站销售网站销售网站销售网站销售网站(program for sell)
    2013-12-19 14:53:58下载
    积分:1
  • phpb2b-english
    Alibaba Template in English for B2B Market
    2012-01-08 18:43:59下载
    积分:1
  • 1
    CSS3鼠标经过图片遮罩层代码基于Bootstrap3.3.5制作,自适应分辨率,兼容PC端和移动端,CSS3鼠标悬停动画效果遮罩层。(CSS3 mouse passes through the image mask layer code based on Bootstrap 3.3.5, adaptive resolution, compatible with PC and mobile, CSS3 mouse hover animation effect mask layer.)
    2019-01-19 00:45:47下载
    积分:1
  • Java Web简单的登录程序
    刚开始学习JAVA WEB时编写的小程序,其中经历了一些困难,希望给正在学习JAVA WEB的朋友一点帮助。本程序包含数据库连接、js页面验证等功能
    2022-06-12 23:45:16下载
    积分:1
  • 订餐2
    一个绿色的动态的个人网上订餐网页,也可适用于web开发的前台(A dynamic Web page for ordering meals on the Internet)
    2018-10-31 14:37:55下载
    积分:1
  • 分页控件
    分页控件,做到逻辑与数据分离。在页面代码中绑定最大记录数即可。   。。。   。。。。   ------------------------------------    DataTable employees = EmployeeBBL.GetAll(PageControl1.PageSize * (PageControl1.PageIndex - 1),                         PageControl1.PageSize);      
    2022-12-19 07:50:03下载
    积分:1
  • FileConvert
    将BAL网站的BA算法的输入数据转换为sba算法可用的相机和点分开的数据文件(The BAL website BA algorithm input data into sba algorithm available camera and point separate data files)
    2017-04-26 09:53:03下载
    积分:1
  • Attacking with HTML5
    Attacking with HTML5 , pdf type document
    2019-04-02 05:57:36下载
    积分:1
  • Struts2.1_Sptring_Hibernate
    Struts2.1+Sptring+Hibernate的完整的注册系统源码。里面包含“识别码”生成代码。(Struts2.1+ Sptring+ Hibernate complete registration system source code. Which contains the " identification code" generate code.)
    2009-11-28 17:46:26下载
    积分:1
  • TQEditor.2.3.6
    TQEditor.2.3.6最经典的在线编辑word文档源代码,实现公文收发管理合同签约在线编辑word文档,如果有需要可以直接代替网页版的word文档实现你的网页快速开发,希望有需要的朋友可以下载使用,是一款经典的集成word的文档控件……
    2022-04-23 19:36:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载