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

  • lfstat
    凌风多用户PHP统计系统 v1.01,php编程学习源码,web网页制作参考资料。(Ling Feng multi-user PHP statistics system v1.01, PHP learning programming source code, web Webpage production of reference materials.)
    2013-12-23 10:24:55下载
    积分:1
  • webscin
    web漏洞扫描 web安全检测 网站检测(web vulnerability scanning web security testing)
    2014-02-21 11:44:29下载
    积分:1
  • Demo1
    数据库、服务器、页面实现增删改查(批量删除)(Database, server, page to achieve additions and deletions to check (bulk delete))
    2020-07-14 12:48:52下载
    积分:1
  • vue-devtools-dev
    说明:  一个Vue的调试工具,支持在谷歌浏览器上调试Vue(A Vue debugging tool that supports debugging Vue on Google Browser)
    2020-06-20 03:20:02下载
    积分:1
  • XPAGER
    分页标记。网页开发中经常遇到查询,当记录多时需要分页显示,通过上一页、下一页浏览全部记录。通常的处理方法比较烦,特别是需要在页面中传递查询参数的表单,比较繁烦。这个标记就是用来封装这些复杂操作的。它能够自动从表单中获得全部查询参数,并在浏览时自动传递这些参数,无需人工干预,开发人员只需专心于取得这些参数进行查询处理即可。(Page tags. Often encountered in web development inquiries, when records show a long time the need for paging through the Previous, Next, browse all records. The approach usually trouble, especially the need to pass query parameters page of the form, compare annoying fan. This tag is used to package these complex operations. It can automatically get from the form all the query parameters, and in the browser automatically transfer these parameters without human intervention, developers just concentrate on these parameters can query processing.)
    2008-01-15 09:07:05下载
    积分:1
  • C# 获得系统所有用户和当前登录用户(当前进程的)
    using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security.Principal; using System.Text; namespace SystemUsers {     class Program     {         [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]         public struct USER_INFO_0         {             public string UserName;         }         [DllImport("Netapi32.dll")]         extern static int NetUserEnum(              [MarshalAs(UnmanagedType.LPWStr)]       
    2022-02-21 16:29:09下载
    积分:1
  • 酒店网站
    这是一个在线预订 web 页。在线酒店预订是预定酒店房间流行方法。 旅行者可以预订的房间在一台计算机上通过使用在线安全来保护自己的隐私和财务信息 和通过使用几个在线旅行社来比较价格和在不同的酒店设施。前互联网, 旅行可以写,直接打电话到酒店或使用旅行代理商进行预订。如今在线 旅行代理商对当地度假村酒店和房间、 价格和交易、 信息和甚至信息的图片。 很多也允许旅客须记录与在线旅行社的点评。在线酒店预订也是 有助于使最后一分钟的旅行安排。酒店可能会下降一个房间的价格,如果有一些房间仍然可用。 有几个网站,专注于搜索的在房间上的交易。
    2022-02-20 12:12:03下载
    积分:1
  • Upload_Attack_Framework.pdf
    An upload_attack_framework
    2017-12-02 14:32:00下载
    积分:1
  • v0358
    管理员在register.dbf改自己的等 级后在聊天室里会有自己的/封锁/升 降/删除/更改的管理按 钮,及高级管理区 聊天室高级管理区 聊友管理 在线聊友 在线聊友信息 聊友信息 查看聊友的详细信息 踢人纪录 查看被踢的详细记录 封锁纪录 恢复被封锁的纪录 删除纪录 恢复被删除的纪录 重要纪录 (failed to translate)
    2013-05-08 22:04:00下载
    积分:1
  • wangyetiaozhuan
    用于网站改版或者备案的时候做网页跳转,使客户能正常访问网站!(Or filing for the new website when doing web jump, so that customers can visit the Web site!)
    2013-09-20 17:46:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载