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

  • Free_AliYun_OSS_v1.3
    PHP版本文件上传并返回下载链接源代码, 阿里云OSS上传下载源码。(OSSPHP version download link file upload and return to the source code, OSS uploading and downloading source)
    2013-11-03 16:10:13下载
    积分:1
  • ThreeJs_STL
    用H5+javascript,THREEJS库编写的三维动画,读取多个STL对象并生成动画,鼠标左,中,右键可操控.(Using H5+javascript, THREEJS library to write 3D animation, read multiple STL objects and generate animation, the mouse left, middle, right keys can be manipulated.)
    2021-03-06 10:09:30下载
    积分:1
  • mvmmall多用户商城开源系统
     MvMmall多用户商城系统功能强大、管理方便、扩展灵活、执行效率高,企业展示型商铺与产品销售型商铺共存、与UCenter无缝整合、支持商城与Discuz!X论坛积分互换、与新浪、腾讯、网易三大微博深度整合、支持同步推送、支持按地区展示商铺及商品、支持商家标注Google详细地图及链接相关视频材料、支持商家自定义资讯模块……特别适合社区运营商、垂直行业协会、行业门户网站、连锁企业、实体专业商品市场打造区域性及垂直行业性综合电子商务平台。本系统为MvMmall多用户标准版3.0开源码,仅供打算进行模板修改及二次开发爱好者使用,不可运行安装。
    2022-01-22 08:00:47下载
    积分:1
  • wordpresszt_gzlzt_v3.9
    易秀购主题网发现很多网友比较喜欢格子类型的主题,其实格子类型的主题适合做摄影、图片分享、或者各种设计展示类型的网站,今天我们分享的也是一款wordpress格子主题,这款主题风格是由国内wordpress爱好者原创设计的,借鉴了苹果官方的设计元素,简洁大方而不失现代感,该主题摒弃使用现代大多数WP主题追求和倡导的HTML5等流行元素,后台采用独立的主题设置和SEO设置让使用者更加方便操作,我们不复杂,我们追求简单!更多详情请看主题演示。(Easy to show that many users find purchase THEMANET prefer lattice type of theme, in fact, the theme of the lattice type suitable for photography, photo-sharing, or various types of website design showcase, and today we share is a grid wordpress theme, this theme style lovers by domestic wordpress original design, drawing official Apple design elements, simple and elegant and yet modern, abandon the use of the most modern theme WP theme and advocacy to pursue other popular elements of HTML5, background using a separate theme SEO settings allow users to set up and easier to operate, we are not complicated, we seek simple! For more details see the topic presentation.)
    2015-04-11 20:36:37下载
    积分:1
  • mypetshop
    简单的宠物商店管理系统,可以对商品的浏览,增删改查,加入购物车。后台对用户和商品的管理。(Simple pet stores management system, you can browse the merchandise, CRUD, cart. Manage users and goods.)
    2020-12-16 16:29:12下载
    积分:1
  • Hacker_Disassemble_Uncovered
    Kris Kaspersky对他的书做过一个总结,以下是关于这本书《黑客反汇编揭秘》的: Солон是一家不大的出版社,里面氛围很是温馨,团队关系密切、融洽,只是能力尚有不够。我可不会满足于此。我打开了美国市场, 与出版社A-LIST进行了合作。在“讲述基本原理”的指导思想下以紧凑的篇幅编写并翻译了这本后来成为best-seller的书《HACKER DISASSEMBLING UNCOVERED》,这是我到目前为止卖得最好的书。我还客串了一把翻译技术顾问,但是我还没试过自己用英语进行写作。(Kris Kaspersky his book made a summing up, the following about this book are a " hacker disassembly Secret" in: Солон is a small publishing house, which was a warm atmosphere, the team close and harmonious, but the capacity still not enough. I can not meet this. I opened the American market, with the publishing house A-LIST cooperation. At " about the basic principles of" the guiding ideology of the space under the compact prepared and translated it later became the best-seller book of the " HACKER DISASSEMBLING UNCOVERED" , This is my best-selling book so far. I also had a guest Translate technical adviser, but I have not tried to carry out their own writing in English.)
    2009-03-23 20:58:53下载
    积分:1
  • cont
    php 正则表达式,记录用户来源ip和城市(php code)
    2013-12-16 17:00:27下载
    积分:1
  • qijilieting6.83
    奇迹雷霆系列网站6.83系列,一键启动版本。( Miracle thunder Series website 6.83)
    2016-05-24 14:03:31下载
    积分:1
  • VB-serial-multi-channel
    采集力控多路数据V2 采集力控多路数据V2(VB serial multi-channel)
    2014-04-01 11:32:30下载
    积分:1
  • humenfz_v1.0
    1、虎门服装批发B2B网站下载,演示网站:www.taipin5.com 2、包括供求信息发布、会员注册企业网站; 3、会员可以更新管理独立企业网站; 4、会员可以将产品页面链接指向淘宝网或淘宝客出售; 5、网站首页可以出租广告位(1, Humen clothing wholesale B2B website download, demo site: www.taipin5.com 2, including the supply and demand information release, member registration enterprise website 3, members can update the management of independent enterprise website 4, members can link to the product page Taobao or Taobao net sales 5, the site can rent a home page advertising)
    2016-03-16 21:40:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载