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

  • XYewcms
    星原企业网站内容管理系统. 暂只提供后台...相关演示请看:http://www.jxmlwl.com(original Star Enterprise web content management system. Suspense only to provide background ... See related demo : http :// www.jxmlwl.com)
    2007-04-02 16:15:10下载
    积分:1
  • jqueryEasyUi+spring4+Mybatis 源码
    jqueryEasyUi+spring4+Mybatis 源码后台权限管理系统
    2022-05-27 08:09:05下载
    积分:1
  • 基于JSP实现的美食餐饮管理系统(源码+数据库脚本+文档)
    数据库脚本在word文档中摘  要 越来越多的人接受了电子商务这种便捷、快速的交易形式,网上订餐的推出也很快受到了大家的欢迎。首先,简要地介绍了国内网络技术和信息产业的发展情况以及研究课题的现状,阐述了网上订餐系统解决方案以及实施的重要意义。然后是建设网上订餐系统,具体分析如何实现系统功能,规划系统流程,设计系统数据库的逻辑结构,介绍在开发系统过程中所使用的重要开发语言、开发工具、配套插件以及开发平台。最后设计和实现了一个B/S结构的网上订餐系统,着重论述了系统的功能与实现、数据流程及存储。包括用户管理、彩票信息介绍、网上订餐以及后台数据库管理等,使用图文并茂(功能代码及截图)的方式,对整个网上订餐系统功能模块的实现方法进行阐述和分析。
    2020-11-28下载
    积分:1
  • botss
     安装注意事项:   如果本程序运行在非windows平台下,请将data文件夹权限设置为:777   安装完成后进入后台,请点击:生成缓存   请在安装完成后立即删除install文件夹   数据库采取UTF-8编码   建立MYSQL数据库时,请选择utf8_general_ci编码   程序安装路径:http://你的网站地址/install   后台路径:http://你的网站地址/AdminLogin.php(Installation notes: If the program runs in the windows platform, please data folder permissions settings: 777 After the completion of the installation into the background, please click: cache Please delete the install folder immediately after the installation is complete A using UTF-8 encoding The establishment of MYSQL , the utf8_general_ci encoding Program installation path: http:// your website address /install Background path: http:// your website address /AdminLogin.php)
    2020-11-12 16:29:44下载
    积分:1
  • HTML API 适合网络API
    清晰可读,适合new learner,包括一些网络API的网页程序和javascript程序。如果有兴趣,可从HTML3与CSS权威指南这本书合用,此外可从此书官网下载更多源程序
    2022-08-18 10:27:21下载
    积分:1
  • toutiao-backend
    说明:  基于python语言,利用flask框架开发的类似新闻头条web(Similar news headlines web based on Python and flash framework)
    2020-03-24 00:42:34下载
    积分:1
  • gsqyen
    自助建站,电子商务,采购招标自助建站,电子商务,采购招标(Station at self-service, e-commerce, procurement tenders Station at self-service, e-commerce, procurement tenders)
    2007-03-09 09:50:53下载
    积分:1
  • http request的C++实现
    该源码模拟浏览器登陆网站的全过程,能够针对反爬虫技术,通过多种不同的获取手段,获取网站发回的cookies,然后将cookies发送回网站获取网页数据 该源码设计非常全面,非常好用,强烈推荐 使用时仅需将头文件包含,进行调用即可
    2022-11-22 22:55:03下载
    积分:1
  • lvshi-moban
    律师事务所整站模板,栏目包括关于我们、法律服务、法律文书、律师手记、经典案例、在线服务等。,web网页制作参考资料。(Law firm web templates, column includes about us, legal services, legal documents, counsel notes, the classic case, online service. Web Webpage, production of reference materials.)
    2013-12-28 13:38:38下载
    积分:1
  • Metro 3.2 discuz模板
    资源描述 Metro 3.2 discuz模板    
    2022-08-17 01:30:50下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载