- Category:
- Web develop
- Tags:
-
- File Size:
- 2kb
- Update:
- 2018-01-16
- Downloads:
- 0 Times
- Uploaded by:
- 飞轲
Description: ### 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`
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
FrCapture-master | 0 | 2017-12-22
|
FrCapture-master\FrCapture.js | 2657 | 2017-12-22
|
FrCapture-master\README.md | 1719 | 2017-12-22 |