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

  • jsp实战项目
    jsp实现一个完整的项目实例,可以实现对超市的详细管理,大大减少了人力资源的消耗,可以很方便的实现对超市现有资源的有效管理。
    2022-02-20 11:51:41下载
    积分:1
  • SSH
    登录和注册页面要配置验证文件,保证用户名和密码为非空。 添加学生信息页面要保证学号非空,为6位数字。 添加完学生信息后,以表格的方式显示数据库中所有学生信息 (Login and Registration page to verify the configuration file to ensure that the user name and password for non-empty. Add student information page to ensure student number is not empty, as six figures. After adding the student information in tabular display database information for all students)
    2013-11-27 11:17:15下载
    积分:1
  • http request的C++实现
    该源码模拟浏览器登陆网站的全过程,能够针对反爬虫技术,通过多种不同的获取手段,获取网站发回的cookies,然后将cookies发送回网站获取网页数据 该源码设计非常全面,非常好用,强烈推荐 使用时仅需将头文件包含,进行调用即可
    2022-11-22 22:55:03下载
    积分:1
  • PHP_Programming_for_Windows
    PHP Programming for Windows the authoritative guide to developing web applications with PHP on the Microsoft Windows platform. It is the first book of its kind to offer a Windows centric stance on PHP with the intermediate to advanced audience in mind. This book covers PHP from the ground up and benefits both those new to PHP to PHP experts. The book covers new ground like using PHP with Windows databases such as Access and SQL Server plus other topics such as the Microsoft SOAP SDK and using PHP with the Active Directory.
    2009-11-08 06:40:38下载
    积分:1
  • diywap_v2.0
    免费PHP手机网站程序,人人都可以拥有一个属于自己的WAP手机网站,DIYWAP手机网站内容管理系统支持自由灵活的模板制作,在SEO优化方面做了一些独特的工作,后台自由设置手机网站二级域名功能,只要在空间绑定两个域名然后在域名解析你绑定的域名就可以在后台设置,提供的模板都是支持手机屏幕和电脑屏幕的。功能模块:   一、邮件提醒功能   二、多主题自由切换   三、后台模板编辑功能   四、Sitemap生成功能   五、灵活的模板设置   此外还有系统设置、邮件设置、URL模式设置、分类管理、信息管理、单页管理、友情链接管理等功能。   后台登陆账号密码:admin(Free mobile site PHP program, everyone can have one of their own WAP mobile site, DIYWAP Mobile web content management system to support the freedom and flexibility of templates, SEO optimization done in some unique work, the freedom to set back two mobile site domain name, simply type in the domain name space binding two then you bind the domain name resolution can be set in the background, templates are provided to support the phone screen and computer screen. Functional modules: A, e-mail alerts Second, and more freedom to switch topics Third, the background template editing Four, Sitemap generation Fifth, flexible template settings There are also system settings, mail settings, URL mode settings, category management, information management, one-page management, links management. Manage account password: admin)
    2020-11-14 15:19:41下载
    积分:1
  • 意见反馈表单
    资源描述意见反馈表单,使用asp写的,是个方法设计,大家可以学习下,也可以整合到自己的程序中。
    2022-03-02 06:09:29下载
    积分:1
  • PHP微信框架
    应用背景1关键字回复分图文回复和文本回复。2。云度特有的置顶和置底回复分局部和全局。3。云度特有的关键字匹配方式,一次为完全匹配,包含匹配和智能匹配。4专为服务号定制的菜单管理。5高速缓存让微信回复更快内建了缓存管理。。。6。无限制的插件管理机制,插件更新第一知道。7。专门为云度查询定制的检查更新机制官方更新早知道。8。图文回复的模板可自定义选择可二次开发。关键技术新增微主页功能可以选择不同模板,分类可以独立选择模板信息页面也可以。3套默认模板新增
    2022-11-12 01:25:05下载
    积分:1
  • ASP源程序关于基于格-梯型结构aspsource
    ASP源程序关于基于格-梯型结构/横向结构的LMS算法源程序以及试用用奇阶互补法设计两带/四带滤波器组(ASP source code based on the grid- the ladder structure/horizontal structure of the LMS algorithm source, and trial use of odd order complementary method to design two belts/quad-band filter group)
    2020-07-19 23:28:47下载
    积分:1
  • huahui
    花卉苗圃类网页模板,该模板经过W3C验证,符合web2.0标准。(Flowers, nursery stock category page template, the template is W3C validated in line with web2.0 standards.)
    2016-05-24 21:50:34下载
    积分:1
  • HtmlTextBoxControl
    在线编辑器控件 HtmlTextBox 功能:实现网页编辑功能 特点:超级灵活的配置,内置有三中模式:默认,最小化,最大化(显示所有功能按钮),或利用自定义模式 (Online Editor HtmlTextBox control function: the realization of web page editing features: super-flexible configuration, built-in three modes: default, minimize, maximize (show all the features of the button), or use the custom mode)
    2008-12-18 08:47:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载