- Category:
- Web develop
- Tags:
-
- File Size:
- 3.13mb
- 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 |
---|
poster-master | 0 | 2016-06-28
|
poster-master\README.MD | 978 | 2016-06-28
|
poster-master\extendvideo.html | 1860 | 2016-06-28
|
poster-master\js | 0 | 2016-06-28
|
poster-master\js\extendvideo.js | 1484 | 2016-06-28
|
poster-master\js\poster.js | 1629 | 2016-06-28
|
poster-master\movie.webm | 3091780 | 2016-06-28
|
poster-master\poster.png | 214466 | 2016-06-28
|
poster-master\video.html | 1236 | 2016-06-28 |