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

  • HTML和CSS项目
    这是一个HTML和CSS的基于网络编码。我希望做一个有价值的网络编码开发,谁不想使网页在HTML。请帮助我更多的学习和发展。This is a HTML & CSS based web codeing. I want  to make a valuable web coding for developers, who want to make a web page in html. please help me more for leanings & development. 
    2022-02-21 16:35:19下载
    积分:1
  • web
    一个用c++编写的网页程序,可以作为大家的学习(Using a web page written in c++ program can be used as our learning)
    2009-12-15 16:40:39下载
    积分:1
  • 598475
    圣诞节祝福许愿树无错版,php编程学习聊天留言板源码。(Christmas Wishing Tree is error free version, PHP programming learning chat message board source.)
    2013-12-18 12:40:09下载
    积分:1
  • http request的C++实现
    该源码模拟浏览器登陆网站的全过程,能够针对反爬虫技术,通过多种不同的获取手段,获取网站发回的cookies,然后将cookies发送回网站获取网页数据 该源码设计非常全面,非常好用,强烈推荐 使用时仅需将头文件包含,进行调用即可
    2022-11-22 22:55:03下载
    积分:1
  • ec
    说明:  安卓手机电子商务网站,含服务端和客服端。(Android mobile e-commerce sites, including client service and customer side.)
    2014-01-10 17:02:09下载
    积分:1
  • 聊天室php
    基于php的网页聊天源码,可以供你们学习借鉴,有的地方不完善,你们可以自行修改。
    2022-08-20 09:08:41下载
    积分:1
  • 华源主页联盟
    资源描述简介:  华源主页联盟ASP版华源主页联盟ASP版 华源主页联盟ASP版华源主页联盟ASP版华源主页联盟ASP版华源主页联盟ASP版华源主页联盟ASP版
    2022-09-19 12:15:03下载
    积分:1
  • kurento-rtsp2webrtc-master
    说明:  RTSP流转webrtc示例,实现无插件播放网页播放视频流(RTSP streaming webrtc example to realize plug-in-free play of video streams on Web pages)
    2019-02-14 11:12:22下载
    积分:1
  • js table排序,不用重新查询数据库,对当前table排序
    js table排序,不用重新查询数据库,对当前table排序
    2023-05-11 13:45:03下载
    积分:1
  • miniphpchat
    单个文件的php 聊天程序,不使用数据库(php chat)
    2013-11-23 13:57:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载