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

  • tiantian2015
    仿上海天天家教网源码新版,仿上海天天家教网源码新版(tiantia,ntiant,iant ianti antian tiantianti an tiantiantia ntia ntiantian.)
    2015-10-12 23:18:11下载
    积分:1
  • jiaoben181478
    ASP地图下载ASP地图下载 dffe ffeddf(asp ditu xiacaiasp ditu xiacai fdfefd fff)
    2015-02-11 16:08:20下载
    积分:1
  • java在线记账系统
    这是一个基于java的在线记账系统,运用SSH框架 和jsp 主要功能包括  登陆模块,记账模块,查询模块,报表模块 和修改信息模块,课程设计比较实用,数据库由于重装系统已经丢失, 下载的用户可以根据数据库映射表 代码中的XML 文件 或javabean 自己去创建。 
    2022-08-08 04:10:51下载
    积分:1
  • 6094
    使用host方法屏蔽优酷广告源码,程序将host屏蔽代码写到系统目录中。即给要屏蔽的网站设置一个对应的IP地址,使之不能打开真正的网站。(The method of using the host shielded Youku advertising source , the program writes the code will host the shield system directory. )
    2016-10-21 23:54:25下载
    积分:1
  • 在线考试系统
    在线考试系统基于jsp 开发的。可用于中学或者是大学,源代码很全,运行即可。
    2023-02-23 11:45:09下载
    积分:1
  • JSP+JAVABEAN+SEVLET实现一个注册登录的博客网站
    JSP+JAVABEAN+SEVLET实现一个注册登录的博客网站  基于MVC开发。 用的是MYSQL代码如下create database manaSystem;use manaSystem;create table member_info(member_id int auto_increment primary key,member_account varchar(100),member_pwd varchar(50),member_email varchar(100));insert into member_info(member_account,member_pwd,member_email) values("独自等待的鸭子","yangxiaonawzy","yangxiaonawzy@163.com");insert into member_info(member_account,member_pwd,member_email) values("倒霉熊","yangxiaonawzy","daomeixiong@126.com");create database shopping;use shopping;create table user_info(user_id int auto_increment primary key,user_account varchar(100),user_pwd varchar(50));create table message_info(message_id int auto_increment primary key,user_id int,message_content varchar(250),message_time datetime);alter table u
    2022-07-14 11:28:52下载
    积分:1
  • wxy
    Wxy小组内部asp-webshel超强版(Wxy asp-webshel super version)
    2015-09-07 15:32:53下载
    积分:1
  • 派出所应用系统
    一个功能强大的派出所管理,包含派处所的各方面工作(a powerful station management, the premises were included in all aspects)
    2005-05-02 08:04:20下载
    积分:1
  • taobao-to-ecshop-20150930
    ecshop可用,淘宝天猫产品一键采集插件。 可以将淘宝上的商品一键复制上传到ecshop. 2015年9月30日更新版本,修复了图片本地化功能(ECSHOP available, Taobao lynx product a key acquisition plug-in. You can copy the goods on Taobao uploaded to ecshop. September 30, 2015 updated version, fixes the image localization function)
    2015-09-30 15:22:31下载
    积分:1
  • Facebook-corporate-cover
    this is a facebook cover nice and easy to use
    2017-10-23 01:05:13下载
    积分:1
  • 696518资源总数
  • 105554会员总数
  • 2今日下载