CN106101367B - Recording processing method and system - Google Patents
Recording processing method and system Download PDFInfo
- Publication number
- CN106101367B CN106101367B CN201610363985.3A CN201610363985A CN106101367B CN 106101367 B CN106101367 B CN 106101367B CN 201610363985 A CN201610363985 A CN 201610363985A CN 106101367 B CN106101367 B CN 106101367B
- Authority
- CN
- China
- Prior art keywords
- recording
- recording device
- information
- instruction
- recorded
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/64—Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
- H04M1/65—Recording arrangements for recording a message from the calling party
- H04M1/6505—Recording arrangements for recording a message from the calling party storing speech in digital form
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/64—Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
- H04M1/65—Recording arrangements for recording a message from the calling party
- H04M1/656—Recording arrangements for recording a message from the calling party for recording conversations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Television Signal Processing For Recording (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a recording processing method and a recording processing system, wherein the method comprises the following steps: when detecting that a recording application program to be recorded on the terminal equipment sends a recording instruction to the recording device, reading first information of the current recording device recorded on a pre-established recording file; judging whether the current recording device is in an occupied state or not according to the first information; when the current recording device is judged to be in an occupied state, sending a recording stopping instruction to the recording device, wherein the recording stopping instruction comprises an identity of an application program occupying the recording device at present, and the identity of the application program occupying the recording device at present is obtained according to first information; and sending a recording starting instruction to the recording device, wherein the recording starting instruction comprises the identity of the application program to be recorded. The method and the device ensure that a user can normally use the recording function by using any APP with the recording related function, and avoid the problem of recording failure caused by the fact that the current recording equipment is occupied by other APPs.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of recording processing method and system.
Background technique
With the development of society, various terminal equipment occupies increasingly consequence in people's lives, greatly
It is convenient for people's lives, have become the essential a part of people's life.
It takes the mobile phone as an example, the function of mobile phone is stronger and stronger, has many mobile phones and has sound-recording function, if user wants
Recording, can easily be recorded using the sound-recording function of mobile phone.But record type in the prior art exists centainly
Defect, such as mobile phone sound-recording function is opened when user is in call, after ten minutes, terminate call, discovery should be 10 minutes
Recording file, in fact only several byte (byte) are so big, and 1 second sound is not all arrived without recording, and finally find out original
Because being to be occupied due to mobile phone sound pick-up outfit at that time by other APP (Application, third party application), cause not at
Function records to user's communication.
Summary of the invention
Based on the above situation, the invention proposes a kind of recording processing method and system, it is any a to guarantee that user uses
With recording correlation function APP can normal use sound-recording function, avoid current recording equipment by other APP occupy occur
Recording failure problem.
To achieve the goals above, the embodiment of technical solution of the present invention are as follows:
A kind of recording processing method, comprising the following steps:
When detecting on terminal device that a hospitality recording application program sends record command to the record on the terminal device
When mixer, the first information for the recording device recorded on the record file being pre-created is read;
Judge whether the recording device is occupied state according to the first information;
When determining the recording device for occupied state, sends and stop record command to the recording device, it is described to stop
Only record command includes the identity for currently occupying the application program of the recording device, described currently to occupy the recording dress
The identity for the application program set is obtained according to the first information;
It sends and starts record command to the recording device, the beginning record command includes described to recording application program
Identity.
A kind of recording processing system, comprising:
First information read module detects that a hospitality recording application program sends record command on terminal device for working as
When to recording device on the terminal device, the first of the recording device recorded on the record file being pre-created is read
Information;
Occupied state judgment module, for judging whether the recording device is occupied state according to the first information;
Stop record command sending module, for sending and stopping recording when determining the recording device for occupied state
It instructs to the recording device, it is described to stop the identity mark that record command includes the application program for currently occupying the recording device
Know, the identity of the application program for currently occupying the recording device is obtained according to the first information;
Start record command sending module, it is described to start to record for transmission beginning record command to the recording device
Instruction includes the identity to recording application program.
Compared with prior art, the processing method and system the invention has the benefit that present invention records, when detecting end
When a hospitality recording application program sends record command to recording device on the terminal device in end equipment, wound in advance is read
The first information for the current recording device recorded on the record file built, judge according to the first information current recording device whether be
Occupied state sends when for occupied state and stops record command to recording device, stopping record command includes currently occupying institute
State the identity of the application program of recording device;Then it sends and starts record command to the recording device, start recording and refer to
Order includes the identity to recording application program, guarantees that user can using any a APP with recording correlation function
Normal use sound-recording function avoids current recording equipment from being occupied the recording failure problem occurred by other APP.
Detailed description of the invention
Fig. 1 is processing method flow chart of recording in one embodiment;
Fig. 2 is based on processing method flow chart of recording in method one shown in Fig. 1 specific example;
Fig. 3 is processing system structural schematic diagram of recording in one embodiment.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, with reference to the accompanying drawings and embodiments, to this
Invention is described in further detail.It should be appreciated that the specific embodiments described herein are only used to explain the present invention,
And the scope of protection of the present invention is not limited.
It records in one embodiment processing method, as shown in Figure 1, comprising the following steps:
Step S101: when detecting on terminal device that a hospitality recording application program sends record command and set to the terminal
When standby upper recording device, the first information for the recording device recorded on the record file being pre-created is read;
Step S102: judge whether the recording device is occupied state according to the first information;
Step S103: it when determining the recording device for occupied state, sends and stops record command and filled to the recording
It sets, the stopping record command includes the identity for currently occupying the application program of the recording device, the current occupancy
The identity of the application program of the recording device is obtained according to the first information;
Step S104: it sends and starts record command to the recording device, the beginning record command includes described wait record
The identity of sound application program.
The processing method it is evidenced from the above discussion that present invention records avoids user from using any a with related function of recording
When the APP recording of energy, there is the problem of current recording equipment occupies recording failure by other APP.
In addition, in a specific example, when the recording priority to recording application program is currently accounted for higher than described
When with the recording priority of the application program of the recording device, the stopping record command being sent to the recording device, institute
State the identity for currently occupying the application program of the recording device according to the application program for currently occupying the recording device
Mark determines.
When recording of the recording priority to recording application program higher than the application program for currently occupying the recording device
When priority, halt instruction is just sent to recording device, recording device is made to stop the application to the recording device is currently occupied
Program recording.Such as the recording priority of calling record APP is higher than the recording priority of camera video recording APP, if current occupy
When the application program of the recording device is that camera video recording APP, calling record APP will use recording device to record, due to call
The recording priority of recording APP is higher than the recording priority of camera video recording APP, sends halt instruction to recording device, makes to record
Device stops to camera video recording APP recording;If the application program for currently occupying the recording device is calling record APP, phase
When machine video recording APP will use recording device to record, since the recording priority of camera video recording APP is lower than the record of calling record APP
Sound priority does not send halt instruction to recording device, and recording device continues to record to calling record APP, is suitble to practical application.
In addition, in a specific example, it is described to read the recording device recorded on the record file being pre-created
The mode of the first information include:
It sends recording and occupies request to remaining each application in addition to the program to recording application on the terminal device
Program;
After preset time, the first information for the recording device recorded on the record file is read.
In order to guarantee safety that user uses, it can send recording when starting recording and occupy request, inform that other are answered
With this current application will occupy recording device, after preset time, such as after 3 seconds, record on reading record file
The first information of the recording device.
In addition, the transmission starts record command to the mode of the recording device and includes: in a specific example
Read second letter of the recording device recorded on the record file after receiving the stopping record command
Breath;
Judge whether the recording device is to occupy shape after receiving the stopping record command according to second information
State;
When determining the recording device for release conditions, the beginning record command is sent to the recording device.
When determining recording device current state is release conditions, just sends and start record command to recording device, guarantee
Recording device can successfully record to described to recording application program.
In addition, the record file is hidden file in a specific example.It can be the letter of corresponding operation interface
It is clean, while file being avoided accidentally to be deleted, meet practical application needs.
The above method in order to better understand, the application example of present invention recording processing method detailed below.
This application example is by taking the mobile phone of android system as an example.
As shown in Fig. 2, may comprise steps of:
Step S201: a corresponding usage record file is created to MediaRecorder in file system, for example is ordered
Entitled " MediaRecorder_Use_Record.txt ", this file is hidden file, for recording current android system
The service condition of MediaRecorder is used on mobile phone;
This file two data of preservation, an occupancy and release conditions for current MediaRecorder, if with 0 table
Show that current MediaRecorder is occupied state, 1 indicates that current MediaRecorder is release conditions;One occupies to be current
The process ID number of MediaRecorder if being 3356, and separated with a special symbol, for example is " | " symbol.Such as
The current MediaRecorder of fruit is occupied state, then the data of MediaRecorder_Use_Record.txt record are just
"0|3356";If current MediaRecorder is release conditions, MediaRecorder_Use_Record.txt record
Data be just " 1 ";
Step S202: when opening any a APP for using recording to service, such as: calling record APP sends recording
Occupy request on the mobile phone of the android system in addition to calling record APP remaining each APP;
Step S203: after preset time, that records on reading MediaRecorder_Use_Record.txt file works as
The first information of preceding MediaRecorder;
Step S204: judge whether current MediaRecorder is occupied state according to the first information;
Step S205: when the first information recorded on MediaRecorder_Use_Record.txt file be " 0 |
3356 ", when judging current MediaRecorder for occupied state, according to the current application program for occupying MediaRecorder
Process ID number 3356 determines that the current application program for occupying MediaRecorder is camera video recording APP;
Step S206: the recording priority of calling record APP is compared with the recording priority of camera video recording APP;
When step S207: calling record APP recording priority is higher than the recording priority of camera video recording APP, transmission stops
Only record command is described to stop the ID number that record command includes camera video recording APP to MediaRecorder;
Step S208: it reads the MediaRecorder recorded on MediaRecorder_Use_Record.txt file and exists
The second information after receiving the stopping record command;
Step S209: judge that MediaRecorder is after receiving the stopping record command according to second information
No is occupied state;
Step S210: when the second information recorded on MediaRecorder_Use_Record.txt file is " 1 ", judgement
When MediaRecorder is release conditions, sends and start record command to MediaRecorder, the beginning record command packet
Include the ID number of calling record APP.
It is evidenced from the above discussion that the present embodiment is when calling record APP transmission recording on the mobile phone for detecting android system
When instructing to MediaRecorder, recorded on reading MediaRecorder_Use_Record.txt file current
The first information of MediaRecorder judges whether MediaRecorder is occupied state according to the first information, when for occupy
When state, sends and stop record command to MediaRecorder, stopping record command includes currently occupying the recording device
The ID number of the identity of application program, i.e. camera video recording APP;Then it sends and starts record command to MediaRecorder, open
Beginning record command includes the ID number of calling record APP, guarantees that user can using any a APP with recording correlation function
Normal use sound-recording function avoids current recording equipment from being occupied the recording failure problem occurred by other APP
It records in one embodiment processing system, as shown in Figure 3, comprising:
First information read module 301 detects that a hospitality recording application program sends recording on terminal device for working as
When instructing to recording device on the terminal device, the recording device recorded on the record file being pre-created is read
The first information;
Occupied state judgment module 302, for judging whether the recording device is to occupy shape according to the first information
State;
Stop record command sending module 303, for sending and stopping record when determining the recording device for occupied state
Sound is instructed to the recording device, and the stopping record command includes the identity for currently occupying the application program of the recording device
Mark, the identity of the application program for currently occupying the recording device are obtained according to the first information;
Start record command sending module 304, it is described to start to record for transmission beginning record command to the recording device
Sound instruction includes the identity to recording application program.
As shown in figure 3, in a specific example, when the recording priority to recording application program is higher than described work as
When the recording priority of the preceding application program for occupying the recording device, the stopping record command sending module 303 sends institute
It states and stops record command to the recording device, the application program for currently occupying the recording device is currently accounted for according to described
It is determined with the identity of the application program of the recording device.
When recording of the recording priority to recording application program higher than the application program for currently occupying the recording device
When priority, halt instruction is just sent to recording device, recording device is made to stop the application to the recording device is currently occupied
Program recording.Such as the recording priority of calling record APP is higher than the recording priority of camera video recording APP, if current occupy
When the application program of the recording device is that camera video recording APP, calling record APP will use recording device to record, due to call
The recording priority of recording APP is higher than the recording priority of camera video recording APP, sends halt instruction to recording device, makes to record
Device stops to camera video recording APP recording;If the application program for currently occupying the recording device is calling record APP, phase
When machine video recording APP will use recording device to record, since the recording priority of camera video recording APP is lower than the record of calling record APP
Sound priority does not send halt instruction to recording device, and recording device continues to record to calling record APP, is suitble to practical application.
As shown in figure 3, in a specific example, the first information read module 301 includes:
Recording occupies request transmitting unit 3011, for send recording occupy request on the terminal device except it is described to
Remaining each application program outside recording application program;
First information reading unit 3012, for after preset time, reading the record recorded on the record file
The first information of mixer.
In order to guarantee safety that user uses, it can send recording when starting recording and occupy request, inform that other are answered
With this current application will occupy recording device, after preset time, such as after 3 seconds, record on reading record file
The first information of the recording device.
As shown in figure 3, in a specific example, the beginning record command sending module 304 includes:
Second Information reading unit 3041 is receiving institute for reading the recording device recorded on the record file
State the second information after stopping record command;
Occupied state judging unit 3042, for according to second information judge the recording device in reception described in stop
It only whether is occupied state after record command;
Start record command transmission unit 3043, for when determining the recording device for release conditions, described in transmission
Start record command to the recording device.
When determining recording device current state is release conditions, just sends and start record command to recording device, guarantee
Recording device can successfully record to described to recording application program.
In addition, the record file is hidden file in a specific example.It can be the letter of corresponding operation interface
It is clean, while file being avoided accidentally to be deleted, meet practical application needs.
The processing system it is evidenced from the above discussion that present invention records avoids user from using any a with related function of recording
When the APP recording of energy, there is the problem of current recording equipment occupies recording failure by other APP.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610363985.3A CN106101367B (en) | 2016-05-26 | 2016-05-26 | Recording processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610363985.3A CN106101367B (en) | 2016-05-26 | 2016-05-26 | Recording processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106101367A CN106101367A (en) | 2016-11-09 |
CN106101367B true CN106101367B (en) | 2019-03-22 |
Family
ID=57229650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610363985.3A Expired - Fee Related CN106101367B (en) | 2016-05-26 | 2016-05-26 | Recording processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106101367B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106911831B (en) * | 2017-02-09 | 2019-09-20 | 青岛海信移动通信技术股份有限公司 | Data processing method for microphone of terminal and terminal with microphone |
CN113039517B (en) * | 2018-11-26 | 2022-12-13 | 深圳市欢太科技有限公司 | Method, device and electronic equipment for invoking audio resources |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070044730A (en) * | 2005-10-25 | 2007-04-30 | 엘지전자 주식회사 | Apparatus and method for resource management of mobile communication terminal |
CN101192203A (en) * | 2006-11-30 | 2008-06-04 | 中兴通讯股份有限公司 | Mobile phones audio frequency playing method |
CN103841245A (en) * | 2014-03-04 | 2014-06-04 | 海能达通信股份有限公司 | Traffic network recording method and relevant device |
CN104394269A (en) * | 2014-11-17 | 2015-03-04 | 贵阳朗玛信息技术股份有限公司 | Communication control method and mobile terminal |
CN104778041A (en) * | 2015-03-24 | 2015-07-15 | 四川长虹电器股份有限公司 | Management method and management system for multi-program shared speech equipment |
-
2016
- 2016-05-26 CN CN201610363985.3A patent/CN106101367B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070044730A (en) * | 2005-10-25 | 2007-04-30 | 엘지전자 주식회사 | Apparatus and method for resource management of mobile communication terminal |
CN101192203A (en) * | 2006-11-30 | 2008-06-04 | 中兴通讯股份有限公司 | Mobile phones audio frequency playing method |
CN103841245A (en) * | 2014-03-04 | 2014-06-04 | 海能达通信股份有限公司 | Traffic network recording method and relevant device |
CN104394269A (en) * | 2014-11-17 | 2015-03-04 | 贵阳朗玛信息技术股份有限公司 | Communication control method and mobile terminal |
CN104778041A (en) * | 2015-03-24 | 2015-07-15 | 四川长虹电器股份有限公司 | Management method and management system for multi-program shared speech equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106101367A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108496385B (en) | Information reporting method and device and bandwidth part-based operation method and device | |
US9332410B2 (en) | Method, apparatus, and terminal for answering call | |
EP2503765B1 (en) | Method and terminal for leaving video messages | |
JP5899324B2 (en) | Method and terminal device for detecting eavesdropping activity | |
JP6707124B2 (en) | Method, system and apparatus for handling a system call during a voice call | |
WO2015081697A1 (en) | Terminal and audio recording method of the terminal | |
CN104821995A (en) | Data transmission management method and device thereof | |
CN107040906B (en) | Emergency call processing method, device, terminal and storage medium | |
CN106101367B (en) | Recording processing method and system | |
US9681494B2 (en) | Split-type mobile terminal and interaction processing method for communications event | |
WO2012155689A1 (en) | Method and device for controlling call ring tone state of communication terminal | |
CN101610378B (en) | Method for automatically answering and recording video telephone and video telephone | |
US9363711B2 (en) | User experiences during call handovers on a hybrid telecommunications network | |
KR20160096646A (en) | Method and device for managing blacklist | |
CN103634766A (en) | Incoming call forwarding method, device, system and relative equipment | |
CN101022656A (en) | Help seeking method utilizing mobile terminal | |
CN106031294A (en) | Method for processing call collision of terminal apparatus and terminal apparatus | |
CN109426575A (en) | Talk business processing method and processing device | |
CN103974215B (en) | Control method of electronic device and electronic equipment | |
CN106535147A (en) | Communication signal processing method and apparatus | |
CN113170014B (en) | A method, device and electronic device for playing an alarm clock | |
CN112995114B (en) | Method and device for processing VoLTE call service | |
CN103874028A (en) | Information control method and electronic device | |
WO2018076379A1 (en) | Call processing method, terminal, and system | |
CN109714750B (en) | Communication method, device, electronic terminal and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190322 |
|
CF01 | Termination of patent right due to non-payment of annual fee |