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

  • alipay-sdk-JAVA-3.3.1 (1)
    支付宝APP支付demo及源码,仅供参考(Alipay APP pays demo)
    2018-10-08 15:19:37下载
    积分:1
  • iHaier
    说明:  Ihaier开发包,ihaier是一款办公聊天工具,这个包是开发代码(Ihaier development kit, ihaier is an office chat tool, this package is the development code)
    2020-06-25 19:40:02下载
    积分:1
  • 最新微信红包通用接口php版源码
    资源描述 微信红包通用接口php版源码, 明白的朋友,一看就明白了   只需要导入类,调用一个方法就OK了 @require_once "oauth2.php"; $wxapi = new Wxapi(); echo $wxapi->pay($openid="o68l7uJdtGJdDRZOJm5-meE4210k",$price=100);    驱动器 D 中的卷没有标签。  卷的序列号是 C03A-ED90
    2022-07-13 00:00:50下载
    积分:1
  • php-smtp-email-validation_skrhuoao
    1.修复了路径问题2.增加了保存容错处理,直接跳出错误提示,增加友好度功能简介:1.上传并预览,用户可以任意选择区域,支持头像旋转 2.无论图片过大还是过小,参考62的例子程序供学习参看">
    2015-03-27 19:47:44下载
    积分:1
  • mvnforum-1.0.2-ga-jakarta-tomcat-5.0.28
    一个比较好的论坛供大家分享,大家可以下载(A better forum for everyone to share, you can download)
    2009-01-20 13:10:07下载
    积分:1
  • 57594
    论坛登录源码程序,结合易语言模块彗星HTTP应用模块.ec,实现易语言论坛的登录。(Login source program, combined with easy language module comet HTTP application modules .ec, achieve easy language forum login .)
    2015-03-31 09:16:14下载
    积分:1
  • DelphiWebMVC B/S框架
      近几年一直使用java,php开发,java下mvc框架非常丰富,在bs开发下有很多可选性,php框架也是多如牛毛,其中比较喜欢使用的一个是java下的jfinal框架,一个是php下的thinkphp框架,高效简洁。 使用delphi从2008年开始,现在一些cs系统也还是使用,但delphi下bs开发一直没有什么发展,实际上delphi下开发bs系统也是可以的,只是比较繁琐,也没有好的框架。 最近借助java与php下mvc框架,在delphi下实现了一套类似的框架,暂且叫做 delphimvc。服务使用http.sys ,mORMot框架,请自行下载。 https://my.oschina.net/delphimvc 介绍
    2023-03-03 11:50:04下载
    积分:1
  • phpmobilizer_srumq5
    二进制传到根目录运行h,初学者不错的参考例子程序">
    2013-09-17 22:27:33下载
    积分:1
  • lvyou
    旅游网站模板是一个纯CSS的深绿色的html网站模板,DIV+CSS架构,网站在布局和颜色的搭配上都做的非常不错,独具个性和创新。该模板经过W3C验证,符合web2.0标准。(Travel website template is a pure CSS dark green html website templates, DIV+ CSS architecture, site layout and color matching are doing very well, unique personality and innovation. The template is W3C validated in line with web2.0 standards. )
    2016-06-04 07:19:17下载
    积分:1
  • Cloudreve
    一款支持对接多家云存储的多功能网盘系统:Cloudreve 基于ThinkPHP构建的网盘系统,能够助您以较低成本快速搭建起公私兼备的网盘(A multi-functional SkyDrive system that supports multiple cloud storage: Cloudreve The SkyDrive system based on ThinkPHP can help you quickly build a SkyDrive with a low cost of both public and private)
    2018-03-09 16:44:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载