[go: up one dir, main page]

WO2020042060A1 - 一种实现网页版的视频录像与储存的方法 - Google Patents

一种实现网页版的视频录像与储存的方法 Download PDF

Info

Publication number
WO2020042060A1
WO2020042060A1 PCT/CN2018/103169 CN2018103169W WO2020042060A1 WO 2020042060 A1 WO2020042060 A1 WO 2020042060A1 CN 2018103169 W CN2018103169 W CN 2018103169W WO 2020042060 A1 WO2020042060 A1 WO 2020042060A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
video recording
storage
recording
recordrtc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/103169
Other languages
English (en)
French (fr)
Inventor
张来卿
庞严冬
文新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Original Assignee
Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd filed Critical Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Priority to CN201880001206.2A priority Critical patent/CN112640441A/zh
Priority to PCT/CN2018/103169 priority patent/WO2020042060A1/zh
Publication of WO2020042060A1 publication Critical patent/WO2020042060A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Definitions

  • the invention relates to the technical field of webpage video recording and storage, in particular to a method for implementing webpage version video recording and storage.
  • Computer cameras also called computer cameras, computer eyes, electronic eyes, etc.
  • Computer cameras are video input devices that are widely used in video conferencing, telemedicine, and real-time monitoring.
  • the present invention implements a convenient, fast, and low-cost method for video recording and saving, and solves the problem of traditional software that requires software, plug-ins, etc. to implement video recording and saving for video recording on a computer.
  • the technical solution of the present invention to solve the above technical problems is:
  • the described method includes the following steps:
  • Step 1 Define the tags required on the video recording page
  • Step 2 Reference RecordRTC.js
  • Step 3 Call the computer camera
  • Step 4 Use RecordRTC for video recording
  • Step 5 Set the format and name of the saved video
  • Step 6 Store the recorded video locally.
  • a method for implementing video recording and storage of a webpage version is provided. This method realizes a convenient, fast, and low-cost method for video recording and storage, and solves the traditional video recording on a computer Need to install software, plug-ins and other issues to achieve video recording and saving.
  • FIG. 1 is a flowchart of a method of the present invention.
  • the present invention adopts the following steps to implement a method for implementing video recording and storage of a webpage version.
  • Step 1 Define the tags required on the video recording page. Define the video tag for calling the video and the button tag for playing the video in the html page of the video recording
  • Step 2 Reference RecordRTC.js. RecordRTCjs is referenced in the html video recording page, because it is the main force that we use to call the camera to record in the webpage.
  • Step 3 Call the computer camera. navigator.mediaDevices.getUserMedia prompts the user for permission to use media input. Media input generates a
  • Step 4 Use RecordRTC for video recording.
  • the called camera is passed to the video element in the page in the form of a stream, and the startRecording method of RecordRTC is called for video recording, and the video is displayed in the video element of the recording page in real time.
  • Step 5 Set the format and name of the saved video.
  • Var fileName timestamp + num + ‘. Webm’
  • Step 6. Store the recorded video locally.
  • the invokeSaveAsDialog method saves the recorded video to disk.
  • var file new F ile ([recordRT C. getBlob ()], fileName, ⁇ type: 'video / webm'

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明涉及网页视频录像与存储的技术领域,特别涉及一种实现网页版的视频录像与储存的方法。本发明方法步骤是:1、定义视频录像页面需要的标签;2、引用RecordRTC.js;3、调用电脑摄像头;4、利用RecordRTC进行视频录像;5、设置保存视频的格式、名称;6、将录制好视频存储到本地;本发明实现了一种方便快捷、成本低的视频录制与保存的方法,解决了传统的在电脑进行视频录制需要安装软件、插件等实现视频录制与保存的功能。

Description

一种实现网页版的视频录像与储存的方法
技术领域
本发明涉及网页视频录像与存储技术领域, 特别涉及一种实现 网页版的视频录像与储存的方法。
背景技术
视频录像与保存的功能在人们的生活中无处不在, 随着人们的 生活水平的提高, 越来越多的人选择录制视频并保存, 记录生活的 点点滴滴。
电脑的摄像头又称为电脑相机、 电脑眼、 电子眼等, 是一种视 频输入设备, 被广泛的运用于视频会议, 远程医疗及实时监控等方 面。
但是, 目前面临的主要问题有:
现有的许多能在电脑提供视频录像与保存功能的都是基于某种 插件或软件进行视频录制与保存的, 这插件与软件的繁琐安装步骤 无疑会让人们感觉烦躁, 特别在安装出错或失败时, 找不着原因以 至于不能进行视频录像等问题。
发明内容
本发明实现了一种方便快捷、 成本低的视频录制与保存的方 法, 解决了传统的在电脑进行视频录制需要安装软件、 插件等实现 视频录制与保存的问题。 本发明解决上述技术问题的技术方案是:
所述的方法包含以下几个步骤:
步骤一、 定义视频录像页面需要的标签;
步骤二、 引用 RecordRTC.js;
步骤三、 调用电脑摄像头;
步骤四、 利用 RecordRTC进行视频录像;
步骤五、 设置保存视频的格式、 名称;
步骤六、 将录制好视频存储到本地。
本发明的有益效果: 提供了一种实现网页版的视频录像与储存 的方法, 这种方法实现了一种方便快捷、 成本低的视频录制与保存 的方法, 解决了传统的在电脑进行视频录制需要安装软件、 插件等 实现视频录制与保存的问题。
附图说明
下面结合附图对本发明进一步说明:
图 1为本发明的方法流程图。
具体实施方式
如图 1所示, 本发明采用如下步骤可以实现一种实现网页版的视 频录像与储存的方法。
步骤一、 定义视频录像页面需要的标签。 在视频录制的 html页面 中定义调用视频的 video标签、 播放视频的按钮标签 button
(start Video 停止并保存视频的标签 button(saveVideo), 页面加载 时若浏览器版本过低, 提示更新。 ávideo width=M800M height=MM id='’video">您的浏览器版本过 低, 请更新 !</video>
ábutton id=" start V ideo” >开始 á/button ñ
ábutton id=" save Video” ñ停止与保存 á/button ñ
步骤二、 引用 RecordRTC.js是。 在 html视频录制页面中引用 RecordRTCjs, 因为它是我们实现调用摄像头在网页中进行录像的 主力。
áscript src="RecordRTC.is"></script>
步骤三、 调用电脑摄像头。 navigator.mediaDevices.getUserMedia 提示用户给予使用媒体输入的许可, 媒体输入产生一个
MediaStream, 里面包含了请求的媒体类型的轨道, 当无法正常获取 媒体设备时将会友好的发出错误提示。
navigator.mediaDevices.getUserMedia({
audio: true,
video: true
}).then(function(camera) {
callback(camera);
}).catch(function(error) {
alert ('无法捕抓您的摄像头, 请查看控制台曰 console log(error);
}) 步骤四、 利用 RecordRTC进行视频录像。 调用的摄像头以流的形 式传递给页面中的 video元素, 并调用 RecordRTC的 startRecor ding方 法进行视频录制, 并实时的将视频显示在录制页面的 video元素中。
var video = document.getElementById(“video’’);
captureCamera(function(camera) {
setSrcObject(camera, video);
video .playQ;
recordRTC = RecordRTC(camera, {
type: 'video'
});
recordRTC. startRecor ding();
});
recordRTC. stopRecording(function(audioVideoWebMURL) { video src = audioVideoWebMURL;
});
步骤五、 设置保存视频的格式、 名称。
var timestamp = Date.parse(new Date());
var num = parseInt(Math.random() * 10000);
Var fileName = timestamp + num +‘.webm’;
步骤六、 将录制好视频存储到本地。 调用 recordRTC的
invokeSaveAsDialog方法将已记录的视频保存到磁盘中。
var file = new F ile( [recordRT C . getBlob()] , fileName, { type: 'video/webm'
});
invokeSaveAsDialog(file, file.name)。

Claims

权 利 要 求 书
1、 一种实现网页版的视频录像与储存的方法, 其特征在于: 所 述的方法包含以下几个步骤:
步骤一、 定义视频录像页面需要的标签;
步骤二、 引用 RecordRTC.js;
步骤三、 调用电脑摄像头;
步骤四、 利用 RecordRTC进行视频录像;
步骤五、 设置保存视频的格式、 名称;
步骤六、 将录制好视频存储到本地。
2、 根据权利要求 1所述的一种实现网页版的视频录像与储存的 方法, 其特征在于: 所述的步骤一中, 需要在视频录制的 html页面 中定义调用视频的 video标签、 播放视频的按钮标签 button
( start Video)、 停止并保存视频的标签 button(save Video)。
3、 根据权利要求 1所述的一种实现网页版的视频录像与储存的 方法, 其特征在于: 所述的步骤二中, 需要引用 RecordRTC. js, RecordRTC是一个基于 JavaScript的媒体录音库, 用于现代网络浏览 器 (支持 WebRTC getUserMedia API); 它针对不同的设备和浏览器进 行了优化, 将所有客户端 (无插件) 录制解决方案集中在一个地 方。
4、 根据权利要求 1所述的一种实现网页版的视频录像与储存的 方法, 其特征在于: 所述的步骤三中, 利用
替换页(细则第 26条) navigator.mediaDevices.getUserMedia()方法调用电脑摄像头, 当无法 调用摄像头时, 及时提示用户调用摄像头失败。
5、 根据权利要求 1所述的一种实现网页版的视频录像与储存的 方法, 其特征在于: 所述的步骤四中, 将调用的摄像头以流的形式 传递给页面中的 video元素, 并调用 RecordRTC的 startRecording方法 进行视频录制。
6、 根据权利要求 1所述的一种实现网页版的视频录像与储存的 方法, 其特征在于: 所述的步骤五中和步骤六中, 当停止与保存视 频的按钮被点击时停止录像, 选取要保存视频的格式, 填写名称, 将已经录好的视频保存到本地。
替换页 (细则第 26条)
PCT/CN2018/103169 2018-08-30 2018-08-30 一种实现网页版的视频录像与储存的方法 Ceased WO2020042060A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880001206.2A CN112640441A (zh) 2018-08-30 2018-08-30 一种实现网页版的视频录像与储存的方法
PCT/CN2018/103169 WO2020042060A1 (zh) 2018-08-30 2018-08-30 一种实现网页版的视频录像与储存的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103169 WO2020042060A1 (zh) 2018-08-30 2018-08-30 一种实现网页版的视频录像与储存的方法

Publications (1)

Publication Number Publication Date
WO2020042060A1 true WO2020042060A1 (zh) 2020-03-05

Family

ID=69642614

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103169 Ceased WO2020042060A1 (zh) 2018-08-30 2018-08-30 一种实现网页版的视频录像与储存的方法

Country Status (2)

Country Link
CN (1) CN112640441A (zh)
WO (1) WO2020042060A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307289A (zh) * 2010-09-17 2012-01-04 苏州阔地网络科技有限公司 一种实现视频录制的方法
CN102316298A (zh) * 2010-09-17 2012-01-11 苏州阔地网络科技有限公司 一种实现音视频录制的方法
CN104982002A (zh) * 2013-01-30 2015-10-14 柯布朗·德杰 视频签名系统及方法
CN108616709A (zh) * 2018-05-05 2018-10-02 珠海横琴盛达兆业科技投资有限公司 一种实现网页版的视频录像与储存的方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9563712B2 (en) * 2011-07-14 2017-02-07 Salesforce.Com, Inc. Computer implemented methods and apparatus for providing internal custom feed items

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307289A (zh) * 2010-09-17 2012-01-04 苏州阔地网络科技有限公司 一种实现视频录制的方法
CN102316298A (zh) * 2010-09-17 2012-01-11 苏州阔地网络科技有限公司 一种实现音视频录制的方法
CN104982002A (zh) * 2013-01-30 2015-10-14 柯布朗·德杰 视频签名系统及方法
CN108616709A (zh) * 2018-05-05 2018-10-02 珠海横琴盛达兆业科技投资有限公司 一种实现网页版的视频录像与储存的方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ENIGMA: "RecordRTC opens the device to record and compress files", CSDN BLOG, 9 October 2017 (2017-10-09), XP055696892, Retrieved from the Internet <URL:https://blog.csdn.net/qq_34527715/article/details/78181305> *
LUCIA_HUANG: "RecordRTC: Use WebRTC to record video on the web", JIANSHU.COM, 13 July 2018 (2018-07-13), XP055696890, Retrieved from the Internet <URL:https://www.jianshu.com/p/6971dbdfbcc2> *

Also Published As

Publication number Publication date
CN112640441A (zh) 2021-04-09

Similar Documents

Publication Publication Date Title
US9658747B2 (en) Virtual tabs supporting web content suspension
CN101213608B (zh) 交互式多媒体演示的基于状态的定时
US10410673B2 (en) Embeddable video capturing, processing and conversion application
US8744238B2 (en) Method and apparatus for automated content marking
US10007656B2 (en) DOM snapshot capture
CN104636435A (zh) 云终端录屏方法
CN111930703A (zh) 日志文件自动抓取方法、装置和计算机设备
US20130067288A1 (en) Cooperative Client and Server Logging
CN102253900A (zh) 一种Windows CE操作系统下的内存优化方法
CN113591000B (zh) 一种浏览器引擎的切换方法和装置及设备
CN103826164A (zh) 视频观看记录的方法及装置
US11622164B2 (en) System and method for streaming video/s
CN111475423A (zh) 数据录入方法、装置、电子设备及可读存储介质
WO2020042060A1 (zh) 一种实现网页版的视频录像与储存的方法
CN107656999A (zh) 呼叫历史追溯方法、装置、电子设备、存储介质
CN108616709A (zh) 一种实现网页版的视频录像与储存的方法
WO2020151241A1 (zh) 一种信息无痕曝光采集方法及装置
US20110025698A1 (en) Process management system
WO2023020332A1 (zh) 一种视频处理方法、装置、设备及存储介质
CN114546775A (zh) 基于客户端应用的web监控方法、装置、设备和介质
JP2007279991A (ja) ログ管理プログラム及び記録媒体
CN111737625A (zh) 媒体资源信息处理方法、处理装置、处理系统及电子设备
CN117915124A (zh) 直播录制方法、装置、存储介质、电子设备及程序产品
CN117319739A (zh) 一种屏幕共享方法、系统、设备及存储介质
CN116320586A (zh) 操作视频生成方法及装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE