CN110996029A - Dark visit video recording method and device, terminal and storage medium - Google Patents
Dark visit video recording method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN110996029A CN110996029A CN201911320661.1A CN201911320661A CN110996029A CN 110996029 A CN110996029 A CN 110996029A CN 201911320661 A CN201911320661 A CN 201911320661A CN 110996029 A CN110996029 A CN 110996029A
- Authority
- CN
- China
- Prior art keywords
- video
- video recording
- dark
- recording
- black background
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a method, a device, a terminal and a storage medium for dark visit video recording, which relate to the technical field of dark visit video recording, and the dark visit video recording method comprises the following steps: receiving a dark visit video recording request; starting a camera to record videos; in the video recording process, covering a video recording interface by using a black background, wherein the black background displays the prompting information of the dark visit video recording. The method, the device, the terminal and the storage medium for the dark visit video recording realize the dark visit video recording.
Description
Technical Field
The invention relates to the technical field of dark visit video recording, in particular to a dark visit video recording method, a dark visit video recording device, a dark visit video recording terminal and a storage medium.
Background
Currently, dark recording may be required in some special scenes, such as that a reporter is limited to different interview scenes in the process of collecting materials, and sometimes needs to hide survey means to acquire news facts.
Along with the popularization of intelligent terminals, the interview mode of a reporter is more flexible, and the reporter can collect materials in time through a portable intelligent terminal such as a smart phone. However, the bright screen video shooting using the intelligent terminal in the dark visit process sometimes attracts the attention of the interviewee, once the interviewee finds that the interviewee may require to delete the shooting materials, which may cause the damage of the dark visit process and even threaten the personal safety of the reporter.
Disclosure of Invention
The invention provides a method, a device, a terminal and a storage medium for dark visit video recording, which realize dark visit video recording.
In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for dark visit video recording, including the following steps:
receiving a dark visit video recording request;
starting a camera to record videos;
in the video recording process, covering a video recording interface by using a black background, wherein the black background displays the prompting information of the dark visit video recording.
Preferably, the starting of the camera to record the video specifically includes: and calling the video recording application program interface to record the video.
Preferably, after the step of starting the camera to record the video, the method further comprises the steps of: and setting an output format, an audio and video coding format and a video file storage path of the video file.
Preferably, the setting of the output format, the audio/video encoding format, and the file saving path of the video includes: and calling setOutputFormat () to set the output format of the video file, calling setVideoSource () to set the video coding format, calling setAudioSource () to set the audio coding format, and calling setOutputFile () to set the storage path of the video file.
Preferably, in the video recording process, the video recording interface is covered with a black background, specifically: and calling setpreviewdisplay (surface) to set a preview interface of the video, and compiling in an xml format to realize covering the video interface with a black background.
Preferably, the displaying of the dark visit video recording prompt information on the black background specifically includes: and setting a light background pixel block at a fixed position of the black background for prompting a user that shooting is performed.
Preferably, the method further comprises the steps of: and after receiving the double-click screen command, exiting the dark visit video recording mode.
In a second aspect, an embodiment of the present invention provides a hidden visit video recording apparatus, including:
the receiving module is used for receiving the dark visit video recording request;
the starting module is used for starting the camera to record the video;
and the interface covering module is used for covering the video recording interface with a black background in the video recording process, wherein the black background displays the prompting information of the dark visit video recording.
In a third aspect, an embodiment of the present invention provides a terminal, including:
a memory and a processor;
wherein the memory has stored thereon a computer program executable by the processor;
when the computer program is read and executed by the processor, it causes the processor to perform the method according to any of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including at least one piece of code, the at least one piece of code being executable by a processor and implementing the method according to any one of the first aspect.
By adopting the technical scheme, the camera is started to record the video after the request of the dark visit video is received, and the black background covers the video interface in the video recording process, so that the screen locking effect can be achieved, the video recording is not easy to be perceived, and the success rate of the dark visit video recording is improved. In addition, because the dark visit video recording prompt information is displayed on the black background, the dark visitor can conveniently determine whether the video recording is carried out according to the prompt information, the condition that the video recording failure is not yet noticed is avoided, and the user experience is improved.
Drawings
FIG. 1 is a flowchart of a method for recording a dark visit according to an embodiment of the present invention;
fig. 2 is a block diagram of a dark visit recording apparatus according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
In a first aspect, an embodiment of the present invention provides a method for dark visit video recording, as shown in fig. 1, including the following steps:
step S101, receiving a dark visit video recording request;
specifically, a trigger button can be arranged on the application program APP, when a user needs to perform dark visit video recording, the user can start the dark visit video recording by triggering the button, when the user triggers the button, a dark visit video recording request is sent, and the terminal can receive the dark visit video recording request, so that subsequent dark visit video recording operation is started.
In addition, a key may be set on the terminal as a darkish recording start key, when the key is triggered by the user, the darkish recording request is sent, and the terminal can start the follow-up operation of the darkish recording after receiving the darkish recording request.
Step S102, starting a camera to record videos;
the method specifically comprises the following steps: and starting a camera on the terminal to record the video.
And step S103, in the video recording process, covering a video recording interface with a black background, wherein the dark visit video recording prompt information is displayed on the black background.
In the video recording process, a video recording interface is not displayed, and a black background is set and generated on the video recording interface to cover the video recording interface, so that a black screen is displayed on the whole display screen, and the effect of screen locking and screen blacking is simulated.
In addition, in order to allow the user to know whether or not the user is performing the dark recording, a dark recording prompt message is displayed on a black background.
By adopting the technical scheme, the camera is started to record the video after the request of the dark visit video is received, and the black background covers the video interface in the video recording process, so that the screen locking effect can be achieved, the video recording is not easy to be perceived, and the success rate of the dark visit video recording is improved. In addition, because the dark visit video recording prompt information is displayed on the black background, the dark visitor can conveniently determine whether the video recording is carried out according to the prompt information, the condition that the video recording failure is not yet noticed is avoided, and the user experience is improved.
Preferably, in step S102: the starting of the camera for video recording specifically comprises the following steps: and calling the video recording application program interface to record the video.
Specifically, the API of MediaRecorder is called to complete recording audio and video, and the newMediaRecorder () constructor is called to get an instance of MediaRecorder.
Preferably, in step S102: after the step of starting the camera to record the video, the method further comprises the following steps: and setting an output format, an audio and video coding format and a video file storage path of the video file.
Preferably, the method comprises the following steps of setting an output format, an audio and video coding format and a file storage path of the video, specifically: and calling setOutputFormat () to set the output format of the video file, calling setVideoSource () to set the video coding format, calling setAudioSource () to set the audio coding format, and calling setOutputFile () to set the storage path of the video file.
Preferably, in step S103: in the video recording process, covering a video recording interface by using a black background specifically comprises the following steps: and calling setpreviewdisplay (surface) to set a preview interface of the video, and compiling in an xml format to realize covering the video interface with a black background.
Preferably, in step S103, the dark visit video recording prompt information is displayed on a black background, specifically: a light background pixel block is arranged at a fixed position of a black background to prompt a user that shooting is performed.
This light background pixel block can be set smaller to prevent being too large to be easily found. The light background pixel block may be arranged in a position where the upper right corner of the black background is not easily perceived.
It should be noted that: the present application is not limited to this fixed position, and may be disposed in other positions, which is not specifically limited in the present application.
Preferably, the method further comprises the steps of: and after receiving the double-click screen command, exiting the dark visit video recording mode.
Specifically, the camera shooting can be quitted by double-clicking the screen after the dark visit video recording is ended, and the function is mainly realized based on a gesture monitoring type GesturreDetector provided in an Android system. Monitoring a touch screen event to obtain a MotionEvent object through an onTouch () function, forwarding the MotionEvent object to an OnGestutureListener by a GestutureDetector, and making feedback of exiting a hidden visit video recording mode according to the packaging content of the object.
In a second aspect, an embodiment of the present invention provides a dark visit recording apparatus, as shown in fig. 2, including:
a receiving module 21, configured to receive a request for a dark visit video;
the starting module 22 is used for starting the camera to record videos;
and the interface covering module 23 is configured to cover the video recording interface with a black background in the video recording process, wherein the dark visit video recording prompt information is displayed on the black background.
The above-described hidden visit video apparatus of this embodiment may be configured to execute the technical solutions in the above-described respective corresponding method embodiments, and the implementation principles and technical effects thereof are similar, where the functions of the respective modules may refer to the corresponding descriptions in the method embodiments, and are not described herein again.
In a third aspect, an embodiment of the present invention provides a terminal, including:
a memory and a processor;
wherein the memory has stored thereon a computer program executable by the processor;
when the computer program is read and executed by the processor, it causes the processor to perform the method according to any of the first aspect.
The memory includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), which is used for storing instructions and data. The processor may be a Central Processing Unit (CPU).
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including at least one piece of code, the at least one piece of code being executable by a processor and implementing the method according to any one of the first aspect.
In the above embodiments, the implementation may be wholly or partly realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.
Claims (10)
1. A dark visit video recording method is characterized by comprising the following steps:
receiving a dark visit video recording request;
starting a camera to record videos;
in the video recording process, covering a video recording interface by using a black background, wherein the black background displays the prompting information of the dark visit video recording.
2. The method for dark visit video recording according to claim 1, wherein the starting of the camera to record the video specifically comprises: and calling the video recording application program interface to record the video.
3. The method of claim 2, wherein after the step of starting the camera to record the video, the method further comprises the steps of: and setting an output format, an audio and video coding format and a video file storage path of the video file.
4. The method for the dark visit video recording according to claim 3, wherein the setting of the output format, the audio and video encoding format and the file storage path of the video specifically comprises: and calling setOutputFormat () to set the output format of the video file, calling setVideoSource () to set the video coding format, calling setAudioSource () to set the audio coding format, and calling setOutputFile () to set the storage path of the video file.
5. The method of claim 1, wherein during the recording process, the recording interface is covered with a black background, specifically: and calling setpreviewdisplay (surface) to set a preview interface of the video, and compiling in an xml format to realize covering the video interface with a black background.
6. The method according to claim 1, wherein the displaying of the dark recording prompt information on the black background specifically comprises: and setting a light background pixel block at a fixed position of the black background for prompting a user that shooting is performed.
7. A dark picture recording method according to any one of claims 1 to 6, further comprising the steps of: and after receiving the double-click screen command, exiting the dark visit video recording mode.
8. A scout recording apparatus, comprising:
the receiving module is used for receiving the dark visit video recording request;
the starting module is used for starting the camera to record the video;
and the interface covering module is used for covering the video recording interface with a black background in the video recording process, wherein the black background displays the prompting information of the dark visit video recording.
9. A terminal, comprising:
a memory and a processor; wherein the memory has stored thereon a computer program executable by the processor;
the computer program, when read and executed by the processor, causes the processor to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising at least one piece of code executable by a processor for implementing the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911320661.1A CN110996029A (en) | 2019-12-19 | 2019-12-19 | Dark visit video recording method and device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911320661.1A CN110996029A (en) | 2019-12-19 | 2019-12-19 | Dark visit video recording method and device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110996029A true CN110996029A (en) | 2020-04-10 |
Family
ID=70065648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911320661.1A Pending CN110996029A (en) | 2019-12-19 | 2019-12-19 | Dark visit video recording method and device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110996029A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552423A (en) * | 2020-04-23 | 2020-08-18 | 惠州Tcl移动通信有限公司 | Video recording method, storage medium and terminal equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291580A (en) * | 2011-07-28 | 2011-12-21 | 南京联慧通信技术有限公司 | Video transmission method based on Android system |
CN103442170A (en) * | 2013-08-07 | 2013-12-11 | 广东欧珀移动通信有限公司 | Shooting method and mobile terminal |
CN103793506A (en) * | 2014-01-26 | 2014-05-14 | 深圳市华宝电子科技有限公司 | Video file management method and device |
CN104735426A (en) * | 2015-04-07 | 2015-06-24 | 中国工商银行股份有限公司 | Multi-input and multi-output video processing device and method |
CN105049920A (en) * | 2015-07-27 | 2015-11-11 | 青岛海信移动通信技术股份有限公司 | Method and device for recording multimedia files |
CN105187725A (en) * | 2015-08-12 | 2015-12-23 | 小米科技有限责任公司 | Shooting method and apparatus |
CN105429958A (en) * | 2015-10-30 | 2016-03-23 | 武汉华茂工业自动化有限公司 | Enterprise application platform system based on Android development |
CN106161972A (en) * | 2016-09-30 | 2016-11-23 | 深圳天珑无线科技有限公司 | A kind of method and device of shooting |
CN106899817A (en) * | 2017-01-04 | 2017-06-27 | 深圳市广和通无线股份有限公司 | Media data method for recording and device |
-
2019
- 2019-12-19 CN CN201911320661.1A patent/CN110996029A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291580A (en) * | 2011-07-28 | 2011-12-21 | 南京联慧通信技术有限公司 | Video transmission method based on Android system |
CN103442170A (en) * | 2013-08-07 | 2013-12-11 | 广东欧珀移动通信有限公司 | Shooting method and mobile terminal |
CN103793506A (en) * | 2014-01-26 | 2014-05-14 | 深圳市华宝电子科技有限公司 | Video file management method and device |
CN104735426A (en) * | 2015-04-07 | 2015-06-24 | 中国工商银行股份有限公司 | Multi-input and multi-output video processing device and method |
CN105049920A (en) * | 2015-07-27 | 2015-11-11 | 青岛海信移动通信技术股份有限公司 | Method and device for recording multimedia files |
CN105187725A (en) * | 2015-08-12 | 2015-12-23 | 小米科技有限责任公司 | Shooting method and apparatus |
CN105429958A (en) * | 2015-10-30 | 2016-03-23 | 武汉华茂工业自动化有限公司 | Enterprise application platform system based on Android development |
CN106161972A (en) * | 2016-09-30 | 2016-11-23 | 深圳天珑无线科技有限公司 | A kind of method and device of shooting |
CN106899817A (en) * | 2017-01-04 | 2017-06-27 | 深圳市广和通无线股份有限公司 | Media data method for recording and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552423A (en) * | 2020-04-23 | 2020-08-18 | 惠州Tcl移动通信有限公司 | Video recording method, storage medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110012217B (en) | Method and device for determining acquisition resolution and electronic equipment | |
KR20190116479A (en) | Application program processing methods, devices, and storage media | |
US20200210064A1 (en) | Key Display Method, Terminal, and Non-Transitory Computer-Readable Medium | |
CN111400633A (en) | Page resource loading method and device | |
CN112506553A (en) | Method and device for upgrading data plane container of service grid and electronic equipment | |
EP3416070A1 (en) | Page display method and device and storage medium | |
CN110996029A (en) | Dark visit video recording method and device, terminal and storage medium | |
CN113076288A (en) | File processing method and device, electronic equipment and storage medium | |
CN112632184A (en) | Data processing method and device, electronic equipment and storage medium | |
CN109756539B (en) | Screen capture control method and related equipment | |
CN114666643B (en) | Information display method and device, electronic equipment and storage medium | |
CN113467854B (en) | Application program starting method and device, electronic equipment and storage medium | |
CN110475135A (en) | Video broadcasting method, device, equipment, medium, system and smart television | |
CN115967692A (en) | Session information processing method and related equipment | |
JP7331132B2 (en) | Application program installation method, operation method, electronic device, computer readable medium | |
CN111752661B (en) | Interface display method and device, electronic equipment and storage medium | |
CN111290882B (en) | Data file backup method, data file backup device and electronic equipment | |
CN107329893A (en) | Traversal method, device and the storage medium of application interface | |
CN107463414B (en) | Application installation method and device | |
CN113778687A (en) | Memory allocation information processing method and device, electronic equipment and storage medium | |
CN112819061A (en) | Password information identification method, device, equipment and storage medium | |
CN112291602A (en) | Video playing method, electronic equipment and storage medium | |
CN113946346B (en) | Data processing method and device, electronic equipment and storage medium | |
KR101300052B1 (en) | Method for searching image and recording-medium recorded program thereof | |
CN114125530B (en) | Information display method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200410 |