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

  • 高中选课系统
    本选课系统可以添加校本课程,添加课程时可以限定选课人数。后台可以更改所有内容包括学生信息,课程信息,教师信息。数据库用MD5加密算法,管理员admin密码12345
    2022-01-25 18:17:14下载
    积分:1
  • xitongdown1.0
    系统之家通用下载系统是由岁月工作室基于aspCMS二次研发而成。我们致力于中小企业网站的搭建。根据现有企业的需求。开发适合企业的模块, 让企业可以轻松搭建适合自己企业的网站,后台功能强大,管理便捷。(System house general download system is made by the years of secondary development studio based aspCMS. We are committed to build the SME website. According to the needs of existing enterprises. Module development for enterprises, so that enterprises can easily build their own corporate Web site, powerful back-office functions, ease of administration.)
    2016-05-21 09:58:58下载
    积分:1
  • HTML5quick-reference
    HTML5 速查手册,适合初学者学习和高级的人在想不起来的时候查询(HTML5 quick reference for advanced beginners to learn and remember the time in the query)
    2011-11-28 20:47:11下载
    积分:1
  • UDS1.51办公自动化OA系统
    资源描述老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。老版本的OA系统,就是开发环境比较旧,总体来说还是非常不错的。大家可以下载用一用。
    2022-01-22 12:02:17下载
    积分:1
  • htsoundbook1.1
    软件介绍 实现大家期望已久的在线人员列表显示功能,相当语音聊天,功能强大!快快下载! Tags: 衡天语音留言本 v1.1 (Software introduction Achieve a long time to achieve the online staff list display function, a considerable voice chat, powerful! Download quickly! Tags: Heng day voice message of the v1.1)
    2016-03-14 20:44:32下载
    积分:1
  • ecshop仿韩都衣舍模板
    安装说明:1.上传所有文件到空间根目录下2.运行“http://你的域名/diguo”    用户名:admin   密码:123456 进入   先进行“参数设置”  再进行"恢复数据"即可3.最后一步,要记得重新设置你新空间的网站数据库链接,data/config.php这个文件数据库恢复后,网站的后台地址是http://你的域名地址/admin   用户名admin  密码admin888
    2022-11-02 20:55:16下载
    积分:1
  • ASPDreamweaver
    asp动态网页实例,ASPDreamweaver数据库网站开发与实例(ASPDreamweaver website development and database instance)
    2011-12-06 21:19:43下载
    积分:1
  • TopsiteMentor1.0
    资源描述 详细介绍: topsite排行程序,使用SQL或者ACCESS数据库。功能很多,包括:无限用户、站长管理、添加、修改、删除分类..... 
    2023-07-31 14:30:03下载
    积分:1
  • phpext_bof2
    服务端脚本语言php实现,phpext是一个基于ext的php的扩展程序,主要是用来做php的前端的渲染部分的实现,参考的例子程序供学习参看(Server-side scripting language php achieve , phpext ext, php extension is based , mainly to do php part of the realization of the front- end rendering , with reference to the example program for learning to see)
    2012-11-26 00:56:44下载
    积分:1
  • phpPossystem
    基于php的pos会员积分管理系统,今年我的毕业设计,大家可以研究一下啊(based on php pos member scores management system)
    2011-05-23 15:54:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载