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

  • B2C
    商务面向客户销售的网上系统,比较简单的构架,可以参考学习下(Business web-based system for customer sales, relatively simple architecture, you can refer to learn the next)
    2013-11-21 11:02:54下载
    积分:1
  • dingpiao
    网上订票系统实现的订票的基本功能 适用与要求较低的人群(Online booking system booking realize the basic functions of the application and requiring a lower level of the crowd)
    2008-05-07 21:34:30下载
    积分:1
  • Pligg
    Pligg,最灵活的类似Digg的Web2.0 CMS系统!网页设计师可以使用Pligg做他(她)想做的任何事情。稍微懂一些PHP和Mysql的知识即可安装Pligg。如果需要修改和管理Pligg,可能有点难度。对于精通Web开发语言的朋友,Pligg是一个定制化非常强的CMS系统。 默认用户名:god 默认密码: 12345(Pligg, the most flexible like Digg Web2.0 CMS system! Web designers can use the Pligg to do what he (she) want to do anything. A little to understand some PHP and Mysql knowledge can be installed Pligg. If you need to modify and manage Pligg, may be a little difficult. For a friend who is proficient in Web development language, Pligg is a customized CMS system. Default user name: God default password: 12345)
    2016-04-20 09:33:10下载
    积分:1
  • HTML5
    html5 参考手册,包含Html5 的标签说明(html5 reference book which contains all the description the label hatml5 has)
    2014-01-12 22:48:12下载
    积分:1
  • ThinkPHP.chm
    php 方面的书籍及代码,有案例比较容易学,有产品方面的代码。(php-related books and code, Case relatively easy to learn, there are products code.)
    2013-09-05 10:33:51下载
    积分:1
  • JSP在线教学质量评价系统的设计与实现.zip
     JSP在线教学质量评价系统的设计与实现.zip 
    2022-11-07 15:55:04下载
    积分:1
  • PHP_MySQL_Pub2011
    If you can build websites with CSS and JavaScript, this book takes you to the next level—creating dynamic, database-driven websites with PHP and MySQL. Learn how to build a database, manage your content, and interact with users through queries and web forms. With step-by-step tutorials, real-world examples, and jargon-free explanations, you’ll soon discover the power of server-side programming. The important stuff you need to know: Get a running start. Write PHP scripts and create a web form right away. Learn the language. Get up to speed on PHP and SQL syntax quickly. Build a database. Use MySQL to store user information and other data. Make it dynamic. Create pages that change with each new viewing. Be ready for mistakes. Plan error messages to help direct users. Manage your content. Use the file system to access user data, including images and other binary files. Control operations. Create an administrative interface to oversee your site.
    2012-04-27 17:51:49下载
    积分:1
  • ASP.NET-3.5
    HTML控件,服务器控件,C#程序设计基础(HTML controls, server controls, C# programming foundation)
    2013-09-15 21:43:54下载
    积分:1
  • Elastislide横向图片浏览代码
    elastislide是一个响应式的carousel(即横向图片浏览)插件,具有很优秀的效果和易用性。前端开发时自己编写一个类似的特效是十分费事的,而elastislide可以省去我们不少的时间,同时达到极好的效果。这个plug-in也是应用了jquery的强大功能,所以对于大家来说,使用应该不成问题。Enjoy it.
    2022-04-29 20:55:09下载
    积分:1
  • phpyyxt_v1.0
    超级简单实用的PHP+MYSQL医院预约管理系统 本程序比简单 预约数据的录入与修改 查询 自动图表生成展示.比较实适合单医院使用. 实用方法:将yuyue.sql导入买mysql数据库.修改config/config.php 文件中的数据库链接参数即可 初始账号密码均为 admin 本程序代码完全开源,如果您有兴趣完善修改欢迎分享(Super simple and practical PHP+ MYSQL hospital appointment management system of the program automatically generates a chart showing reservation than simple data entry and modification queries. Compare Real suitable for single hospitals. Practical Methods: yuyue.sql import buy mysql . Modify config/config.php file link parameters to the initial account password are admin of the program code is completely open, if you are interested in improving modify welcome to share)
    2015-05-22 09:16:44下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载