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

  • 流上传插件
    资源描述主要特征支持HTML5、闪光两种方式(跨域)上传多文件一起上传HTML5支持断点续传,拖拽等新特性兼容性好IE7 +,ff3.6 +铬*,safari4 +,遨游等主流浏览器进度条、速度、剩余时间等附属信息选择文件的按钮可以自定义简单的参数配置实现灵活多变的功能支持文件夹上传(chrome21 +,opera15 +)支持自定义UI(v1.4 +)
    2022-07-10 09:56:05下载
    积分:1
  • offset_reflector_example
    反射面天线设计软件GRASP程序——偏置反射面天线建模分析,可以通过GRASP软件分析电特性(Reflector antenna design software GRASP program- offset reflector antenna modeling analysis, you can analyze the electrical characteristics of software GRASP)
    2020-07-02 04:20:01下载
    积分:1
  • rockoa基于中小型企业管理OA系统
    应用背景非常适合二次开发的oa系统。原生态没有任何php框架。并且前台有extjs的影子。关键技术 ROCKOA使用的后台框架是作者学的,没有使用任何第三方框架结果。 有一个目录webrock 为系统的全部代码,其他目录都是框架基本的 系统采用单一地址访问方式如:rock.php?a=方法名&d=对应文件夹名&m=模块。 如地址:rock.php?a=data&d=system&m=group,访问的是webrock/system/group/groupAction.php 中的 方法dataAction 如参数加了ajaxbool=true,那就是访问dataAjax方法
    2023-01-09 04:05:04下载
    积分:1
  • 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
  • 146958
    源码之疯狂的鼠标源码例程程序结合易语言超文本浏览框支持库,写出运行HTML网页文件和鼠标FLASH文件,并调用API函数设置窗口的透明。(Crazy Mouse s combination of Open Source code samples hypertext browsing easy language support library box , write files and run HTML pages mouse FLASH file and call API function to set the transparent window.)
    2015-11-03 13:17:59下载
    积分:1
  • muonline
    奇迹一个简单的网页程序,很不错的!画面也很漂亮,无加密!(The miracle of a simple web applications, is very good! The picture is very pretty, no encryption!)
    2012-06-14 12:58:13下载
    积分:1
  • lantiewushuxinl
    说明:  蓝蝶无刷新聊天室asp原码,初学者学习用 (Blue Butterfly asp chat room without refresh the original code, for beginners to learn)
    2008-09-24 16:56:47下载
    积分:1
  • 动感教育网—人才市场
    资源描述代码名称:  动感教育网—人才市场   添加日期:  2001-3-5 所属分类: ASP代码>其他代码   总下载次数: 232 文件大小: 205KB   适用环境: WINNT 评定级别:     上传者: roland  下载地址: 按此下载   代码效果演示: 暂无   详细介绍: 管理登录页为:[admin/login.asp] 用户名为:[小张],密码为:[1234] 
    2022-05-29 11:49:47下载
    积分:1
  • SpringMVC+shiro+hibernate权限管理整合
    什么是权限?权限是管理web应用用户的一种手段,比如,一个电商平台,用户具有user的角色,他可以在这个商场里面进行交易。商家拥有的是user的角色同时也拥有manager的角色,因此,他可以进行买卖的同时进行对自己商品的管理。shiro就是一个基于RBAC权限设计模型的权限管理框架。什么是Shiro ?Apache Shiro是一个强大易用的Java安全框架,提供了认证、授权、加密和会话管理等功能: 认证 - 用户身份识别,常被称为用户“登录”;授权 - 访问控制;密码加密 - 保护或隐藏数据防止被偷窥;会话管理 - 每用户相关的时间敏感的状态。以下是对使用SpringMVC+shiro+hibernate框架对用户管理的一个例子:附上项目:https://git.oschina.net/jeremie_astray/SpringMVC_Shiro/tree/master/Annotion版本:https://git.oschina.net/jeremie_astray/SpringMVC_Shiro/tree/shiro_annotation一、实体对应关系:用户与角色为一对多关系角色与权限为多对多关系权限过滤与角色和权限为一对一关系t_user(,用户表,密码为md5加密,可以自己修改)t_role(角色表)t_permission(权限表)
    2022-01-25 22:39:03下载
    积分:1
  • 粉色wsp苹果cmsv10手机模板
    苹果cms模板引入既可以使用非常好快去下载吧(Apple CMS template introduction can be used very quickly to download it)
    2020-06-16 10:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载