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

  • CSS3
    css3中一些新特性的做了相关的解释和说明,并且在其中有些难于理解的点使用图示进行说明。(Some of the new features in css3 are explained and explained, and some of the more difficult points are illustrated with illustrations.)
    2018-01-15 10:02:51下载
    积分:1
  • kdxs
    【 使用说明 】 ·将本程序包解压后上传到空间上,支持在任意目录下使用; ·后台管理路径:http://你的路径/kdcms 初始管理帐号:admin 密码:admin ·为了网站安全,建议及时更改后台默认管理路径; ·如果是linux的空间(WIN的不需要设置)请注意要把以下几个的权限设置成777: 1、cache目录 2、adjs目录和目录内的文件 3、inc目录和目录内的文件 4、admin目录下的data.php和coffee.php 注:linux空间可能存在问题,建议大家用WIN空间。。。 【 程序特点 】 ·占用空间小,建站成本低,无需等待; ·免更新免维护,管理方便,操作简单,全自动采集; ·实现前台与后台完全分离,可自定义后台管理路径!; ·自定义广告位,可在后台管理; ([Instructions] * This package will be uploaded to the space after decompression, support for use in any directory · Manage the path: http:// your path/kdcms initial management Username: admin Password: admin · For site security, management of the proposed time change the background default path If space is linux (WIN s no need to set) Please note the following permissions should be set to 777: 1, cache directory 2, adjs directories and files within the directory 3, inc directories and files within the directory 4, admin directory data.php and coffee.php Note: linux space may be a problem, it is recommended that you use WIN space. . . [Program features] · Small footprint, establishment of low cost, no need to wait · Maintenance free updates, easy management, simple operation, automatic acquisition · To achieve complete separation of foreground and background, the background can be customized management path! · Custom adver)
    2011-11-06 16:13:48下载
    积分:1
  • Date
    date Time control template
    2020-06-20 13:40:01下载
    积分:1
  • dbchina
    更换了自己写的一个小型的、二级分类的论坛,还没有后台程序,在1.1的基础上,增加一个音乐播放器,完善了后台管理系统(包括论坛后台),更改了评论表,修改了会员可以成为管理员的bug,在1.2的基础上增加了一个自助友情连接系统">
    2016-05-11 21:19:03下载
    积分:1
  • 9k9kgb2
    深呼吸留言本 v2.0 帐号、密码均为88vs(Take a deep breath Guestbook v2.0 Accounts, passwords are 88vs)
    2016-03-11 23:12:32下载
    积分:1
  • 烟草物流系统
    我是学软件的,该源码是我们专业自己在学习的过程中设计的,很实用,关于烟草物流系统的一个网站开发,页面简洁清新,功能很齐全,适合于学生参考和学习,我们花了大概一个月的时间才完成,每一个界面都是我们自己美工设计的,后台代码风格很好,值得拥有哦!
    2022-06-12 16:21:23下载
    积分:1
  • 聊天系统
    聊天系统的示例项目: 一个完整的示例的客户端服务器的聊天系统。 然而,出于演示目的,我将使用静态数组。我知道,你不能在您的 web 服务器场中使用它。把这篇文章作为概念,不作为一种解决方案。这个简单的 web 的聊天程序打算工作在任何浏览器支持 。 此外,您可以选择多个聊天室。为什么不延长从那里和多通道通道。
    2022-06-12 15:16:16下载
    积分:1
  • patch
    说明:  RFID里面的,用的是Web开发,需要连接到数据库。我不能保证大家都能运行,每台电脑的Web环境可能不同。可能会出现其他的问题。我把源程序上传,有需要的可自行下载(RFID, which is used for Web development, needs to be connected to the database. I can't guarantee that everyone can run. The Web environment for each computer may be different. There may be other problems. I upload the source program, there is a need to download it by itself)
    2017-12-24 15:27:20下载
    积分:1
  • jm
    说明:  抽奖的系统(非常好用的源码)有心的朋友来看看吧。。。。。。。。。。(Lottery system (very easy to use source code))
    2012-12-31 14:36:22下载
    积分:1
  • IKPHP
      1、小站模块(目前支持 相册 日记 公告模块) 后期新建其他模块;   2、阅读模块 (强大的采集功能,您可以随意 采集新闻 博客文章等)   3、小组功能模块 (您可以讨论您想说的内容话题 发布话题)   4、同城活动(您可以发布同城内的活动 电影 旅游 等活动信息)   5、个人空间模块   6、其他插件模块   7、友邻广播 模块   8、站内短信及时消息   9、阅读">
    2020-11-08 15:50:13下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载