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

  • asp_programming_designed_implemented_code_business
    asp编程设计实现商业搜索功能的代码asp programming designed and implemented the code business search(asp programming designed and implemented the code business search)
    2010-08-16 07:09:37下载
    积分:1
  • huahui
    花卉苗圃类网页模板,该模板经过W3C验证,符合web2.0标准。(Flowers, nursery stock category page template, the template is W3C validated in line with web2.0 standards.)
    2016-05-24 21:50:34下载
    积分:1
  • 学生请销假管理系统
    本作品为培训机构环境下的学生请销假系统,分为后台管理员、教师、学生以及游客4种身份。(This work is a student leave system under the environment of training institutions. It is divided into four identities: backstage administrator, teacher, student and tourist.)
    2021-01-13 14:48:48下载
    积分:1
  • 员工绩效考核系统
    员工绩效考核系统   (2 folders, 39 files, 120.28 KB, 2.34 MB in total.) AssemblyInfo.cs 2.07 KB 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-01-22 07:44:27下载
    积分:1
  • ZhiSel_v7.4.0
    /admin/admin_login.asp 帐号:admin 管理密码:123456 认证码:zhirui 配置文件/include/config.asp 数据文件/include/conn.asp 首页新闻调用:33指分类的ID号,12指调用显示条数 首页扩展调用: 4指扩展的ID号 首页FLASH横幅:Images/bcastr.xml 修改即可(/admin/admin_login.asp Account: admin admin password: 123456 Authentication Code: zhirui Profiles /include/config.asp Data files /include/conn.asp Home News calls: 33 ID number refers to the classification, 12 refers to the number of calls is displayed Home extension calls: 4 refers to the expansion of the ID number Home FLASH Banners: Images/bcastr.xml modification)
    2014-08-27 12:34:08下载
    积分:1
  • html
    Html的简明教程,主要涉及文字及链接操作,适合初学者。(A simple course to study HTML, which is fit fo beginner.)
    2012-03-05 16:01:02下载
    积分:1
  • Cmysql
    C# and mysql connect and update
    2020-06-25 16:00:01下载
    积分: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
  • 网络版光伏监控系统
    这是一个光伏监控系统的程序,使用C#和VB两种语言相结合,在VS2010中编写界面程序,可以发布网页。
    2022-02-20 02:46:39下载
    积分:1
  • web.py 高效的web框架
    webpy  由warts大牛开发的python web框架 支持 fcgi scgi wsgi 等http server 接口 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    2022-12-09 05:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载