CN106648921A - Method for achieving recording data share in Android system and electronic device - Google Patents
Method for achieving recording data share in Android system and electronic device Download PDFInfo
- Publication number
- CN106648921A CN106648921A CN201610875434.5A CN201610875434A CN106648921A CN 106648921 A CN106648921 A CN 106648921A CN 201610875434 A CN201610875434 A CN 201610875434A CN 106648921 A CN106648921 A CN 106648921A
- Authority
- CN
- China
- Prior art keywords
- recording
- data
- application
- request
- application program
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/545—Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
- G11B2020/10537—Audio or video recording
- G11B2020/10546—Audio or video recording specifically adapted for audio data
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a method for achieving recording data share in an Android system and an electronic device. The method comprises the steps that a middle layer application program responsible for recording processing is set; the middle layer application program receives recording requests of one or more application programs; based on recording parameters of one or more application programs, a control system acquires the recording data or acquires data quality of the recording data; the acquired recording data is processed respectively based on the recording parameters, and the processed recording data is sent to one or more application programs respectively. In the technical scheme, the middle layer application program is set to serve as a bridge between one or more application programs and the system, controls recording and distributes the processed recording data, the call failure caused by simultaneous system recording function call of the multiple application programs is avoided, the technical problem of the existing limitation of a recording mode of the Android system in the prior art is solved, and the advantage of optimizing the recording mode is achieved.
Description
Technical field
The present invention relates to multimedia technology field, more particularly to a kind of method for realizing sharing recording data in Android system
And electronic equipment.
Background technology
With the continuous development of science and technology, multimedia technology has also obtained development at full speed, the function of electronic product
More and more, people have also enjoyed the various facilities that development in science and technology brings.Now people can be by various types of movements
Terminal, enjoys the comfortable life brought with development in science and technology.For example, the equipment such as smart mobile phone, panel computer has become people
An important part in life, user can record video, voice using mobile terminals such as smart mobile phone, panel computers
Chat, live etc., to mitigate the pressure that modern fast pace life is brought.
Mobile terminal for carrying Android system, record video, voice-enabled chat, each application program such as live are both needed to
Call the recording access of Android system to use the sound-recording function of system, record type of the prior art is Android
System receives the recording access call request of application program, is gone forward side by side by setting up recording channel between recording access and application program
Row recording, for the recording access that this android system is provided the App for a request recording is confined to every time
(Application, application program) provides service, when the App of another request recording uses sound-recording function, it is necessary on first closing
The voice channel release recording access of one App, recording access could be called by another APP, otherwise can malloc failure malloc, can
See, the record type of Android system has limitation in prior art.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
State the method and electronic equipment of realizing shared recording data in Android system of problem.
A kind of one aspect of the present invention, there is provided method for realizing sharing recording data in Android system, including:
The mid-tier application for being responsible for processing recording is set;
The recording request of one or more application programs is received by the mid-tier application;
Based on each recording parameter of one or more of application programs, control system collection recording data and collection record
The quality of data of sound data;
The recording data for collecting is respectively processed based on each recording parameter, and the recording data after process is divided
Issue one or more of application programs.
Optionally, sample frequency of the recording parameter comprising recording and/or coded system.
Optionally, described each recording parameter based on one or more of application programs, control system collection recording
The quality of data of data and collection recording data, including:
Obtain the highest sample frequency in described each recording parameter, and the corresponding application program of the highest sample frequency
Target code mode;
According to the highest sample frequency and the target code mode, control system collection recording data and collection are recorded
The quality of data of data.
Optionally, it is described to be respectively processed the recording data for collecting based on each recording parameter, and after processing
Recording data be distributed to one or more of application programs, including:
Resampling, coding are carried out according to the sample frequency and coded system in described each recording parameter, will be adopted again
Recording data correspondence after sample, coding is distributed to each application program.
Optionally, the recording request that one or more application programs are received by the mid-tier application, including:
The registration recording readjustment request that one or more of application programs send to the mid-tier application is received,
The recording request is obtained from the registration recording readjustment request;Or
Hook Function is set at the recording access of system, and the reception Hook Function is intercepted from the recording access and obtained
The recording request that the one or more of programs for obtaining send.
Optionally, the mid-tier application is specially:
The application program being built in system, or, the application program of the arbitrary request recording in system, or
Person, the third party application belonged in addition to system and the application program of request recording in system.
A kind of another aspect of the present invention, there is provided electronic equipment of carrying Android system, is arranged in the electronic equipment
There is the mid-tier application for being responsible for processing recording, the electronic equipment includes:
Receiving unit, the recording for being received one or more application programs by the mid-tier application is asked;
Control unit, for each recording parameter based on one or more of application programs, control system collection record
The quality of data of sound data and collection recording data;
Dispatching Unit is processed, for the recording data for collecting to be respectively processed based on each recording parameter, and will
Recording data after process is distributed to one or more of application programs.
Optionally, sample frequency of the recording parameter comprising recording and/or coded system.
Optionally, described control unit, including:
Obtain subelement, for obtaining described each recording parameter in highest sample frequency, and highest sampling frequency
The target code mode of the corresponding application program of rate;
Control subelement, for according to the highest sample frequency and the target code mode, control system collection record
The quality of data of sound data and collection recording data.
Optionally, the process Dispatching Unit, specifically for:
Resampling, coding are carried out according to the sample frequency and coded system in described each recording parameter, will be adopted again
Recording data correspondence after sample, coding is distributed to each application program.
Optionally, the receiving unit, including:
First receiving subelement, sends for receiving one or more of application programs to the mid-tier application
Registration recording readjustment request, from it is described registration recording readjustment request in obtain it is described recording request;Or
Second receiving subelement, for receiving Hook Function obtain one or many is intercepted from the recording access
The recording request that individual program sends, the Hook Function is arranged at the recording access of system.
Optionally, the mid-tier application is specially:
The application program being built in system, or, the application program of the arbitrary request recording in system, or
Person, the third party application belonged in addition to system and the application program of request recording in system.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
By arranging the mid-tier application for being responsible for processing recording;Receiving one or more by mid-tier application should
Asked with the recording of program, based on each recording parameter of one or more application programs, control system collection recording data
And the quality of data of collection recording data, i.e., recording channel is set up by the recording access of mid-tier application calling system, keep away
Having exempted from each application program calls respectively recording access to cause malloc failure malloc;Also, mid-tier application will also be collected
Recording data is respectively processed based on each recording parameter, by the recording data after process be distributed to it is corresponding one or more
Application program, realizes and provides recording service for one or more application programs, solves Android system in prior art
There is circumscribed technical problem in record type, reached the beneficial effect of optimization record type.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows a kind of side for realizing sharing recording data in Android system provided according to one embodiment of the invention
The flow chart of method;
Fig. 2 shows a kind of recording flow chart of the mid-tier application provided according to one embodiment of the invention;
Fig. 3 shows the schematic diagram of a kind of electronic equipment provided according to one embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
A kind of method and electronic equipment for realizing sharing recording data in Android system is embodiments provided, to
There is circumscribed technical problem in the record type for solving Android system in prior art.
Fig. 1 is refer to, the embodiment of the present application provides a kind of method realized and recording data is shared in Android system, is applied to
One electronic equipment, the electronic equipment can be the equipment that mobile phone, pad etc. carry Android system, and the method includes:
S101:The mid-tier application for being responsible for processing recording is set;
S102:The recording request of one or more application programs is received by the mid-tier application;
S103:Based on each recording parameter of one or more of application programs, control system collection recording data and
The quality of data of collection recording data;
S104:The recording data for collecting is respectively processed based on each recording parameter, and by the recording after process
Data distribution gives one or more of application programs.
In specific implementation process, mid-tier application can be the application program being built in system, belong to operation
A part for system;The application program of the arbitrary request recording that can also be mounted in system is (for the ease of differentiation, Xia Shujian
Referred to as main recorded program), belong to nonsystematic application;Can also be belonging to except answering that system and request are recorded in system
With the third party application (record App) beyond program, nonsystematic application is fallen within.It can be seen that, S101 is arranged and is responsible for process
During the mid-tier application of recording, you can in be built in system, it is also possible in system.
Further, S102 is received the recording request of one or more application programs, Ke Yitong by mid-tier application
Cross following three kinds of modes to realize:
Mode one, when implementing, each calls the App (hereinafter referred to as calling App) for needing calling system recording access
Registration recording readjustment request can be sent to recording App when needing to be recorded, wherein, registration recording readjustment request is used for
Function related to recording in recording App is called, and requires that function related to recording in recording App is called in App
Function to return recording data, as shown in Figure 2.
Mode two, operating system provide recording access at arrange Hook Function, by Hook Function intercept one or
Multiple application programs to the recording that operating system sends is asked.The recording request that Hook Function is intercepted can be transmitted to recording
App, it is also possible to be transmitted to currently recorded call App (main recorded program), that is, plan as a whole and manage Recording Process
That what is recorded using the recording App that can be special setting, or calls App (main recorded program).
After receiving recording request, mid-tier application performs each record of S103 based on one or more application programs
Sound parameter, control system gathers the quality of recording data.Wherein, in recording parameter can include recording sample frequency and/or
Coded system, can gather the quality of recording data by controlling recording parameter come control system.
For the control of sample frequency, the highest sample frequency in the recording parameter of each application program can be first obtained,
And the target code mode of the corresponding application program of highest sample frequency;Further, control operation system is according to highest sampling frequency
Rate is recorded, to control recording quality.Because the highest sampling in using each application program for sending recording request
Frequency continues to record, so after the recording data of the system that obtains, resampling can also be carried out to recording data, obtains using frequency
The relatively low recording data of rate, has met the recording requirement of other application program.
For the control of coded system, can be compiled using the coded system in the recording parameter of arbitrary application program
Code, is subsequently recompiled further according to the coding requirement of each application program.Further, in order to reduce amount of calculation,
The embodiment of the present application obtains the target code mode of the corresponding application program of highest sample frequency when continuing to record, also, and controls
Operating system processed continues recording according to highest sample frequency and target code mode, and the recording data obtained for this then can be direct
The corresponding application program of highest sample frequency is returned to, without the need for carrying out resampling and coding, and then raising jcharge factor.
In specific implementation process, mid-tier application can successively receive the recording request of multiple application programs,
The recording request of multiple application programs can simultaneously be received.Receive at the same time multiple application programs recording ask when, then by
The recording access of mid-tier application calling system simultaneously sets up recording channel, each recording ginseng based on multiple application programs
Number, control system collection recording data.When the recording for receiving multiple application programs in priority is asked, then following steps are performed:
Step 1, the recording request for receiving first application program transmission, the recording of mid-tier application calling system connects
Mouth simultaneously sets up recording channel with it, and according to the recording parameter of first application program recording is opened, and obtains the record of system return
Sound result, then return to first application program according to the form that recording parameter is processed into setting by mid-tier application.
Step 2, the recording request for receiving second application program, judge the record that the operating system of the electronic equipment is provided
Whether sound function is occupied, i.e., whether preceding first application program has terminated recording.Specifically, can be by judging behaviour
Whether the recording access for making system offer is called to judge whether sound-recording function is occupied, judges if recording access is called
The sound-recording function for going out operating system is occupied, conversely, then unoccupied;It is of course also possible to pass through to judge whether operating system builds
It is vertical to have recording channel to judge whether sound-recording function is occupied, judge operating system if operating system is set up and has recording channel
Sound-recording function it is occupied, conversely, then unoccupied.
When the sound-recording function for judging that operating system is provided is unoccupied, then sound-recording function is opened, by operating system
AudioRecord recorded.
When the sound-recording function for judging that operating system is provided is occupied, acquisition currently takes the first of the sound-recording function
Individual application program, and each recording parameter control based on first application program and second application program is described
Operating system continues to record by existing recording channel.
When continuing to record, recorded using original recording channel, it is not necessary to rebuild recording channel, it is not required that weight
Recording access is newly called, so avoiding the problem of malloc failure malloc.Meanwhile, according to each recording parameter of all of application program
Carry out the quality that control system gathers recording data, to meet the recording demand of each application program.
After S103, continue have mid-tier application to perform S104:The recording data for collecting is recorded based on each
Sound parameter is respectively processed, and the recording data after process is distributed to into corresponding one or more application programs.Specifically,
Because the recording parameter of each application program is different, when returning recording data to each application program, recording is obtained into recording number
Resampling, coding are carried out according to according to the respective sample frequency of each application program and coded system, after resampling, coding
Recording data return to corresponding application program.Certainly, if the recording data and a certain application program of operating system acquisition
Recording parameter requires consistent, then the recording data that operating system is obtained can be directly returned to into corresponding application program, only
Inconsistent application program carries out resampling and coding to be required to recording parameter.
In specific implementation process, when mid-tier application be by receive call App registration recording readjustment request come
Obtain recording request, then mid-tier application passes through the recording for calling the function of App to its return setting form
Data.When mid-tier application is that the recording for intercepting and forwarding by receiving Hook Function is asked, then middle-tier application
The recording data for setting form can be returned to corresponding application program by program by Hook Function.
Wherein, if based on mid-tier application is concrete during recorded program (if the App for being recorded has multiple, that
Any of which App is selected as main recorded program, or by the main recorded program of mutual protocol validation, each application program
Main recorded program can be switched to), recording parameter control behaviour of the main recorded program based on each application program of request recording
Make the quality of system acquisition recording data, for this purpose, by main recorded program according to the respective sample frequency of each application program and volume
Code mode continues the recording data of recording acquisition to operating system carries out resampling, coding, by the record after resampling, coding
Sound data return to corresponding application program.If mid-tier application is the plug-in of operating system, by operating system
Respectively resampling and coding are carried out to recording data according to the recording parameter of each application program after recording parameter is obtained, so
The recording data after resampling and coding is returned to respectively afterwards corresponding calls App.Formula by this method, application program
Without the need for any modification, it is possible to shared recording data, more preferable experience is provide the user.
It should be noted that the above-mentioned all application programs for taking operating system sound-recording function of the embodiment of the present application
Quantity is not limited, and can be one, or multiple, can also be the recording that dynamic change, i.e. the embodiment of the present application are provided
Data sharing method calls the sound-recording function of App simultaneously sharing operation systems suitable for one or more, implement process with
Two Application sharing sound-recording functions are identical, it is only necessary to comprehensively all of when continuing to record to require using sound-recording function
The recording parameter of App is recorded, when recording data is returned, according to respective recording parameter feedback data.
Meanwhile, the embodiment of the present application also runs the App that calls for being recorded and exits recording at any time, and new calls App
Recording is added at any time, which further increases the utilization rate of system resource.Recording to call App1 He call App2 below
As a example by process, the specific implementation process of the embodiment of the present application is completely illustrated:
At the first moment, App2 is called to initiate registration recording readjustment request (wherein comprising recording request), record to recording App
Sound App responses call the AudioRecord of the request of App2, control operation system to open recording, receive operation and are being recorded
Recording result is returned to recording App after data, the App that records is processed the recording data for obtaining according to the recording parameter for calling App2
It is back to into the form for setting and calls App2.
Subsequently, at the second moment, App1 is called to initiate registration recording readjustment request to recording App, it is assumed that to call App1's
Recording parameter is identical with the recording parameter for calling App2, record App by original modes of AudioRecord that operating system is pressed after
Continuous recording simultaneously receives the recording result of its return, and the recording data obtained after the second moment is processed into respectively calls
App1 and the form for calling App2 to set, are back to respectively and call App1 and call App2.
Threeth moment of the App1 after one end time is recorded is called, to recording App recording readjustment is nullified, but due to calling
App2 does not nullify recording readjustment, so recording App continues through AudioRecord recording and obtains recording data, at the 3rd moment
Afterwards, only recording data is back to and calls App2, be no longer back to and call App1, until calling App2 also to nullify recording readjustment
When, recording App just closes recording.
Fig. 3 is refer to, for a kind of method for realizing sharing recording data in Android system that above-described embodiment is provided, this
Application embodiment is also corresponded to and provides a kind of electronic equipment for carrying Android system, is provided with the electronic equipment and is responsible for processing record
The mid-tier application of sound, the electronic equipment includes:
Receiving unit 31, the recording for receiving one or more application programs by the mid-tier application please
Ask;
Control unit 32, for each recording parameter based on one or more of application programs, control system collection
The quality of data of recording data and collection recording data;
Dispatching Unit 33 is processed, for the recording data for collecting to be respectively processed based on each recording parameter, and
Recording data after process is distributed to into one or more of application programs.
In specific implementation process, the recording parameter includes the sample frequency and/or coded system recorded.
Described control unit 32, including:Obtain subelement and control subelement.Subelement is obtained, it is described each for obtaining
Highest sample frequency in individual recording parameter, and the target code mode of the corresponding application program of the highest sample frequency;Control
Subunit, for according to the highest sample frequency and the target code mode, control system to gather recording data and adopts
The quality of data of collection recording data.
Accordingly, the process Dispatching Unit 33, specifically for:According to the sample frequency in described each recording parameter and
Coded system carries out resampling, coding, and the recording data correspondence after resampling, coding is distributed to into each application program.
In specific implementation process, the receiving unit 31, including:First receiving subelement or the second receiving subelement.
First receiving subelement, records for receiving one or more of application programs to the registration that the mid-tier application sends
Sound readjustment request, from the registration recording readjustment request recording request is obtained.Second receiving subelement, for receiving hook
Subfunction intercepts the recording request that the one or more of programs for obtaining send, the Hook Function from the recording access
It is arranged at the recording access of system.
Further, the mid-tier application is specially:The application program being built in system, or, it is arranged on
The application program of the arbitrary request recording in system, or, belonging to except the application of system and request recording in system
Third party application beyond program.
With regard to the electronic equipment in above-described embodiment, wherein unit performs the concrete mode for operating and is somebody's turn to do relevant
It has been described in detail in the embodiment of method, explanation will be not set forth in detail herein.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
By arranging the mid-tier application for being responsible for processing recording;Receiving one or more by mid-tier application should
Asked with the recording of program, based on each recording parameter of one or more application programs, control system collection recording data
And the quality of data of collection recording data, i.e., recording channel is set up by the recording access of mid-tier application calling system, keep away
Having exempted from each application program calls respectively recording access to cause malloc failure malloc;Also, mid-tier application will also be collected
Recording data is respectively processed based on each recording parameter, by the recording data after process be distributed to it is corresponding one or more
Application program, realizes and provides recording service for one or more application programs, solves Android system in prior art
There is circumscribed technical problem in record type, reached the beneficial effect of optimization record type.
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment.
Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this
Bright preferred forms.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments
Including some features rather than further feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment required for protection it is any it
One can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice
During microprocessor or digital signal processor (DSP) are to realize gateway according to embodiments of the present invention, proxy server, system
Some or all parts some or all functions.The present invention is also implemented as performing side as described herein
Some or all equipment of method or program of device (for example, computer program and computer program).It is such
Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other shape
Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.
Claims (12)
1. it is a kind of realize in Android system share recording data method, it is characterised in that include:
The mid-tier application for being responsible for processing recording is set;
The recording request of one or more application programs is received by the mid-tier application;
Based on each recording parameter of one or more of application programs, control system collection recording data and collection recording number
According to the quality of data;
The recording data for collecting is respectively processed based on each recording parameter, and the recording data after process is distributed to
One or more of application programs.
2. the method for claim 1, it is characterised in that sample frequency of the recording parameter comprising recording and/or volume
Code mode.
3. method as claimed in claim 1 or 2, it is characterised in that described based on each of one or more of application programs
The quality of data of individual recording parameter, control system collection recording data and collection recording data, including:
Obtain the highest sample frequency in described each recording parameter, and the mesh of the corresponding application program of the highest sample frequency
Mark coded system;
According to the highest sample frequency and the target code mode, control system gathers recording data and collection recording data
The quality of data.
4. the method as described in claims 1 to 3 is arbitrary, it is characterised in that described that the recording data for collecting is based on into each
Recording parameter is respectively processed, and the recording data after process is distributed to into one or more of application programs, including:
Resampling, coding are carried out according to the sample frequency and coded system in described each recording parameter, by resampling, is compiled
Recording data correspondence after code is distributed to each application program.
5. the method as described in Claims 1 to 4 is arbitrary, it is characterised in that described to receive by the mid-tier application
The recording request of individual or multiple application programs, including:
The registration recording readjustment request that one or more of application programs send to the mid-tier application is received, from institute
State in registration recording readjustment request and obtain the recording request;Or
Hook Function is set at the recording access of system, is received the Hook Function and is intercepted what is obtained from the recording access
The recording request that one or more of programs send.
6. the method as described in Claims 1 to 5 is arbitrary, it is characterised in that the mid-tier application is specially:
The application program being built in system, or, the application program of the arbitrary request recording in system, or, peace
The third party application belonged in addition to system and the application program of request recording being mounted in system.
7. it is a kind of carry Android system electronic equipment, it is characterised in that be provided with the electronic equipment be responsible for process recording
Mid-tier application, the electronic equipment includes:
Receiving unit, the recording for being received one or more application programs by the mid-tier application is asked;
Control unit, for each recording parameter based on one or more of application programs, control system collection recording number
According to and collection recording data the quality of data;
Dispatching Unit is processed, for the recording data for collecting to be respectively processed based on each recording parameter, and will be processed
Recording data afterwards is distributed to one or more of application programs.
8. electronic equipment as claimed in claim 7, it is characterised in that sample frequency of the recording parameter comprising recording and/
Or coded system.
9. electronic equipment as claimed in claim 7 or 8, it is characterised in that described control unit, including:
Obtain subelement, for obtaining described each recording parameter in highest sample frequency, and the highest sample frequency pair
The target code mode of the application program answered;
Control subelement, for according to the highest sample frequency and the target code mode, control system collection recording number
According to and collection recording data the quality of data.
10. the electronic equipment as described in claim 7~9 is arbitrary, it is characterised in that the process Dispatching Unit, specifically for:
Resampling, coding are carried out according to the sample frequency and coded system in described each recording parameter, by resampling, is compiled
Recording data correspondence after code is distributed to each application program.
11. electronic equipments as described in claim 7~10 is arbitrary, it is characterised in that the receiving unit, including:
First receiving subelement, for receiving the note that one or more of application programs send to the mid-tier application
Volume recording readjustment request, from the registration recording readjustment request recording request is obtained;Or
Second receiving subelement, for receiving Hook Function the one or more of journeys for obtaining are intercepted from the recording access
The recording request that sequence sends, the Hook Function is arranged at the recording access of system.
12. electronic equipments as described in claim 7~11 is arbitrary, it is characterised in that the mid-tier application is specially:
The application program being built in system, or, the application program of the arbitrary request recording in system, or, peace
The third party application belonged in addition to system and the application program of request recording being mounted in system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610875434.5A CN106648921A (en) | 2016-09-30 | 2016-09-30 | Method for achieving recording data share in Android system and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610875434.5A CN106648921A (en) | 2016-09-30 | 2016-09-30 | Method for achieving recording data share in Android system and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648921A true CN106648921A (en) | 2017-05-10 |
Family
ID=58855075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610875434.5A Pending CN106648921A (en) | 2016-09-30 | 2016-09-30 | Method for achieving recording data share in Android system and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648921A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526634A (en) * | 2017-08-31 | 2017-12-29 | 四川长虹电器股份有限公司 | The method for supporting multiple sound pick-up outfits simultaneously in Android device |
CN109471680A (en) * | 2018-11-29 | 2019-03-15 | 深圳市车联天下信息科技有限公司 | The multimode way of recording, device and vehicle-mounted ancillary equipment |
CN110097897A (en) * | 2019-04-02 | 2019-08-06 | 烽火通信科技股份有限公司 | A kind of Android device recording multiplexing method and system |
CN110704201A (en) * | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia data sharing method and terminal equipment |
CN110781014A (en) * | 2019-10-28 | 2020-02-11 | 苏州思必驰信息科技有限公司 | Recording data multi-process distribution method and system based on Android device |
CN111209121A (en) * | 2018-11-22 | 2020-05-29 | 深圳市优必选科技有限公司 | Recording method of application program, terminal device and medium |
CN112071338A (en) * | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Recording control method and device and display equipment |
CN109032559B (en) * | 2018-07-25 | 2021-06-01 | 南京创维信息技术研究院有限公司 | Configuration method and system for sharing same recording equipment by multiple applications |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150052432A1 (en) * | 2013-08-16 | 2015-02-19 | Acer Incorporated | Electronic device and control method |
CN105094808A (en) * | 2015-06-26 | 2015-11-25 | 努比亚技术有限公司 | Control device and method |
CN105550595A (en) * | 2015-12-22 | 2016-05-04 | 北京奇虎科技有限公司 | Private data access method and system for intelligent communication equipment |
-
2016
- 2016-09-30 CN CN201610875434.5A patent/CN106648921A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150052432A1 (en) * | 2013-08-16 | 2015-02-19 | Acer Incorporated | Electronic device and control method |
CN105094808A (en) * | 2015-06-26 | 2015-11-25 | 努比亚技术有限公司 | Control device and method |
CN105550595A (en) * | 2015-12-22 | 2016-05-04 | 北京奇虎科技有限公司 | Private data access method and system for intelligent communication equipment |
Non-Patent Citations (2)
Title |
---|
SIGRLAMI: "Use microphone in multiple app simultaneously in Android", 《HTTPS://STACKOVERFLOW.COM/QUESTIONS/25402434/USE-MICROPHONE-IN-MULTIPLE-APP-SIMULTANEOUSLY-IN-ANDROID》 * |
周小东: "《录音工程师手册》", 30 April 2015, 中国广播电视出版社 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526634A (en) * | 2017-08-31 | 2017-12-29 | 四川长虹电器股份有限公司 | The method for supporting multiple sound pick-up outfits simultaneously in Android device |
CN110704201A (en) * | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia data sharing method and terminal equipment |
CN109032559B (en) * | 2018-07-25 | 2021-06-01 | 南京创维信息技术研究院有限公司 | Configuration method and system for sharing same recording equipment by multiple applications |
CN111209121A (en) * | 2018-11-22 | 2020-05-29 | 深圳市优必选科技有限公司 | Recording method of application program, terminal device and medium |
CN111209121B (en) * | 2018-11-22 | 2023-05-23 | 深圳市优必选科技有限公司 | Recording method of application program, terminal equipment and medium |
CN109471680A (en) * | 2018-11-29 | 2019-03-15 | 深圳市车联天下信息科技有限公司 | The multimode way of recording, device and vehicle-mounted ancillary equipment |
CN110097897A (en) * | 2019-04-02 | 2019-08-06 | 烽火通信科技股份有限公司 | A kind of Android device recording multiplexing method and system |
CN112071338A (en) * | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Recording control method and device and display equipment |
CN110781014A (en) * | 2019-10-28 | 2020-02-11 | 苏州思必驰信息科技有限公司 | Recording data multi-process distribution method and system based on Android device |
CN110781014B (en) * | 2019-10-28 | 2022-11-01 | 思必驰科技股份有限公司 | Recording data multi-process distribution method and system based on Android device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648921A (en) | Method for achieving recording data share in Android system and electronic device | |
CN104093050B (en) | The controlled decision-making technique and device of controlled terminal based on multiple intelligent remote controllers | |
CN104052884B (en) | System and method for recording calls in a webrtc contact center | |
CN108241799B (en) | Cross-system access method, system, device and computer readable storage medium | |
CN104902017B (en) | A kind of remote interaction method that multi-screen synchronous for supporting QoS is shown | |
CN105224335B (en) | A kind of control method, system and the terminal device of automatic cleaning terminal device | |
CN103533189A (en) | Method and apparatus for mobile seat call distribution | |
CN103914321B (en) | A kind of method and mobile terminal of the message handling ability of calling system | |
CN112994981B (en) | Method and device for adjusting time delay data, electronic equipment and storage medium | |
CN106713684A (en) | Method and equipment for binding unified communication client account number with phone number | |
CN109600324A (en) | Video communication method, device, computer equipment and storage medium | |
CN106791957A (en) | Net cast processing method and processing device | |
CN105100224A (en) | Data transmission method and device | |
CN104065679B (en) | The method and client of a kind of remote desktop operation | |
CN105828300A (en) | Method of realizing state information subscription in cluster system | |
CN109059178A (en) | Control method, device, air conditioner and the computer readable storage medium of air conditioner | |
CN110519151A (en) | Controllable good friend's adding method, device, terminal device and storage medium | |
EP2434792A1 (en) | System and method for monitoring virtual agents | |
CN113726961A (en) | Method and device for determining outbound number, outbound system and storage medium | |
US20090175437A1 (en) | Call transfer between differing equipment | |
CN101188634A (en) | VoIP terminal apparatus, VoIP communication system and presence check method thereof | |
CN104754142B (en) | The optimization method and application server of a kind of simultaneous ringing service | |
CN104144187B (en) | A kind of method, terminal, platform and system for obtaining application more redaction | |
CN102708008A (en) | Implementation method of linking download strategy | |
CN109344073A (en) | Application software testing method, apparatus, computer 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: 20170510 |