-
FrCapture-master
说明: ## 视频截图工具
可以在预览视频的时候选择一个适合的界面把它截取下来,并存成图片。
## 使用
### 简单使用
主要文件:
```
<script src="poster.js"></script>
```
在视频预览界面调用:
```
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:
.
<script src= "poster.js" ></script>
.
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`)
- 2018-01-16 10:49:42下载
- 积分:1
-
JavaScript的表单的增删改查
运用了javascript语言,写出了后台管理系统中表单的增删改查功能,可以完全在页面实现增删改查而不用连接数据库,在页面完成数据的增删改查后可以直接提交到后台,并存入数据库。
- 2023-02-09 01:50:04下载
- 积分:1
-
Add_to_cart
jQuery商品添加到购物车飞入动画效果基于jquery-2.1.1.min.js制作,商品飞入购入车动画特效。(jQuery items to add to cart flying into animation based on jquery-2.1.1.min.js production, merchandise purchased car flying into animation effects.
)
- 2016-06-24 20:03:50下载
- 积分:1
-
飞机战
微信最热门游戏 “飞机大战”.用网页模拟该程序,用的是JAVASCRIPT语言。比较简单的一个小程序。谢谢。
- 2022-05-20 05:20:56下载
- 积分:1
-
mars3d-supermap-master
说明: 火星科技vue+cesium工程源码,cesium加载超图js文件(load cesium s3m layer)
- 2020-03-27 15:02:46下载
- 积分:1
-
JavaScript
很好用的超找工具书,物有所值,几分就可得到很好看很好玩的javascript编码(Good use of ultra-find books, value for money, you can get a good look at it a bit of fun javascript coding)
- 2013-07-31 19:30:14下载
- 积分:1
-
Ajax-hook-master
说明: Ajax-hook是一个精巧的用于拦截XMLHttpRequest全局对象的库,它可以在XMLHttpRequest对象发起请求之前和收到响应内容之后获得处理权。通过它你可以在底层对请求进行统一的操作。(Ajax-hook is a sophisticated library for intercepting XMLHttpRequest global objects, which can be processed before and after the request is made by the XMLHttpRequest object. It allows you to unify requests at the bottom.)
- 2020-06-22 01:00:01下载
- 积分:1
-
a small game written in java, but it is very interesting, like, please share the
java编写的一款小型游戏,但是很有趣,喜欢的请分享-a small game written in java, but it is very interesting, like, please share the
- 2022-02-25 20:01:14下载
- 积分:1
-
JAVASCRIPT realize the use of the database query in accordance with the dynamic...
采用JAVASCRIPT实现的根据数据库查询的动态树-JAVASCRIPT realize the use of the database query in accordance with the dynamic tree
- 2022-01-22 13:51:20下载
- 积分:1
-
ECE
ultimate papers usefully all time projects for engineering students..
- 2013-03-02 18:28:59下载
- 积分:1