CN108228477A - It is a kind of that the method and system of operation data are obtained based on memory capacity - Google Patents

It is a kind of that the method and system of operation data are obtained based on memory capacity Download PDF

Info

Publication number
CN108228477A
CN108228477A CN201711483363.5A CN201711483363A CN108228477A CN 108228477 A CN108228477 A CN 108228477A CN 201711483363 A CN201711483363 A CN 201711483363A CN 108228477 A CN108228477 A CN 108228477A
Authority
CN
China
Prior art keywords
storage
data
application
basic
dynamic
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.)
Granted
Application number
CN201711483363.5A
Other languages
Chinese (zh)
Other versions
CN108228477B (en
Inventor
魏钦刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711483363.5A priority Critical patent/CN108228477B/en
Publication of CN108228477A publication Critical patent/CN108228477A/en
Application granted granted Critical
Publication of CN108228477B publication Critical patent/CN108228477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management

Abstract

The method of operation data is obtained based on memory capacity the invention discloses a kind of, method includes:In response to user equipment startup and system service loading complete, run for obtain user equipment operation data acquisition service;Pre-set storage information is parsed, to determine basic storage region for storage running data and that there is basic memory capacity;The size of each basic unit of storage in multiple basic units of storage when determining to carry out operation data in basic storage region fragmented storage according to dynamic configuration file, and determine to carry out the storage rule of dynamic memory when the basic memory capacity of basic storage region is used up;And the remaining memory capacity of basic storage region is monitored in real time, when remaining memory capacity is less than threshold value, associated with dynamic memory storage warming-up exercise is carried out according to storage rule, and when basic memory capacity is used up according to storage rule progress dynamic memory.

Description

It is a kind of that the method and system of operation data are obtained based on memory capacity
Technical field
Fortune is obtained based on memory capacity the present invention relates to technical field of data processing, and more particularly, to one kind Method, system and the mobile terminal of row data.
Background technology
Under current technical conditions, it is a kind of common operation that record screen is carried out to the application of operation.Screen recording is general It is used in and preserves Video chat record, game application, the data content of audio broadcasting and live streaming application in the process of running.It should Screen recording during with operation is a kind of approach and a kind of computer for intercepting dynamic picture or word and audio with skill Art.User carries out video record processing by screen recording technology in application operation to screen, when sharing application operation on the screen The operation processing of progress.
By record screen technology can by it is interested application at runtime carry out record screen handle, by screen remain for Oneself can help people preferably to go to retain the content that screen is showed using viewing.At present, some softwares reality can be passed through Now record screen function, record screen technology is basic, and everybody can use.
Existing record screen mode can be directed to indicated region in form and carry out record screen operation.The prior art is to screen After curtain is recorded, directly the screen data of recording is stored into user equipment, it is not intended that how reasonable the screen data recorded is Distribute memory space.It is record screen technology how to record screen data space since record screen data are generally the data of large capacity Problem needed to be considered.
Therefore, it is necessary to a kind of technologies, and the technology of operation data is obtained based on memory capacity to realize.
Invention content
Technical solution of the present invention provide it is a kind of the method and system of operation data is obtained based on memory capacity, to solve such as What is based on memory capacity come the problem of obtaining operation data.
To solve the above-mentioned problems, it provides and a kind of the method for operation data, the method packet is obtained based on memory capacity It includes:
Loading in response to startup and the system service of user equipment is completed, and runs the fortune for obtaining the user equipment The acquisition service of row data;
To it is pre-set storage information parse, with determine for store the operation data and with basis The basic storage region of memory capacity;
When determining to carry out the operation data in the basic storage region fragmented storage according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage, and determine to hold when the basis storage of the basic storage region The storage rule of dynamic memory is carried out when amount is used up;And
The remaining memory capacity of the basic storage region is monitored in real time, when the remaining memory capacity is less than threshold During value, storage warming-up exercise associated with dynamic memory is carried out, and when the basis storage is held according to the storage rule Dynamic memory is carried out according to the storage rule when amount is used up.
Preferably, it further includes:In response to the startup of user equipment, chip guide function reads guiding journey from read-only memory Sequence and will be in the boot program loads to memory.
Preferably, after by the boot program loads to random access memory, the bootstrap is to running kernel journey The required storehouse of sequence and hardware device are initialized.
Preferably, after the initialization, kernel program is run, the kernel program setting caching, setting are deposited by protection Reservoir, setting list of schedules and load driver, and loading system service.
Preferably, the user equipment pre-sets the storage information according to user's input and in user equipment Store the storage information.
Preferably, it further includes described obtain and services the relevant acquisition rule of the determining and user equipment, and be based on institute Acquisition rule is stated to obtain the operation data of the user equipment.
Preferably, wherein the acquisition service determines to include with the relevant rule that obtains of the user equipment:The acquisition Service is read the regular configuration file of pre-set acquisition and is determined and the user according to the regular configuration file of the acquisition It is device-dependent to obtain rule.
Preferably, the operation data is the screen video data for the user equipment recorded, and obtains rule and include At least one of the following contents:Time span, capacity limit, frame per second and bit rate.
Preferably, it is determining with after the relevant acquisition rule of the user equipment, further including the acquisition service predetermined Time based on the rule that obtains obtains the operation data of the user equipment after expiring.
Preferably, the storage information includes:The initial address of basic storage region and basic memory capacity.
Preferably, the user equipment sets or changes the dynamic configuration file or service according to user's input Device sets or changes the dynamic configuration file according to the operating statistic data of user equipment.
Preferably, it further includes, it is described to obtain service according to dynamic configuration file in multiple segmentations of the operation data Each segmentation carry out segmentation recording using identical or different frame per second and/or bit rate, and each segmentation with it is multiple basic Corresponding basic unit of storage is associated in storage unit.
Preferably, the acquisition service can carry out content recognition to acquired operation data, specific basic when determining When the content of partition running data in storage unit is the data unrelated with the operation of the user equipment, the segmentation is deleted Operation data.
Preferably, the acquisition service can carry out content recognition to acquired operation data, specific basic when determining When the content of partition running data in storage unit can be converted to frame data relevant with the user equipment, institute is deleted State partition running data.
Preferably, the content progress data compression for obtaining service to being stored in being arbitrarily segmented in multiple segmentations.
Preferably, it is described to determine to carry out depositing for dynamic memory when the basic memory capacity of the basic storage region is used up Storage rule includes:When the basic memory capacity of the basic storage region is used up, dynamic area is set in a user device Domain, wherein the dynamic storage zone is for storage additional operation information data associated with the user equipment.
Preferably, it is further included before setting dynamic storage zone in a user device:Determine the residue of the user equipment Memory capacity is more than expanded threshold value.
Preferably, it is described to be included according to storage rule progress storage warming-up exercise associated with dynamic memory:Institute Acquisition service is stated to be determined for the dynamic storage zone of the operation data according to the storage rule of the dynamic memory, and right The dynamic storage zone is initialized.
Preferably, when the residual capacity of the dynamic storage zone is zero, the acquisition service will be set with the user Standby associated new operation data is stored with coverage mode into the basic storage region.
Preferably, when the residual capacity of the dynamic storage zone is zero, the acquisition service will be with user's phase Associated new operation data carries out cover type storage in the dynamic storage zone.
Preferably, it is further included before setting dynamic storage zone in a user device:To this fortune of the user equipment The capable end time is predicted, when determining from current time to acquired in the period of the end time of this operation Operation data size be less than or equal to expanded threshold value when, determine distribution dynamic storage zone.
Preferably, wherein determining the use according to the historical statistical data of the end of run time to the user equipment The end time of this operation of family equipment.
Preferably, it is further included before setting dynamic storage zone in a user device:To this fortune of the user equipment The capable end time is predicted, when determining from current time to acquired in the period of the end time of this operation The size of operation data be more than expanded threshold value and during less than acceptable threshold, be determined as user equipment distribution dynamic memory Region and promote described to obtain service and according to the frame per second and/or bit rate of reduction obtain the operation data.
Preferably, the display area for being additionally included in user equipment creates suspension display window, and the suspension display window is used In playing the acquired operation data of service is obtained by described.
Preferably, the dynamic storage zone is initialized and when the basic memory capacity is used up, it is described to obtain Take service will be in acquired new operation data storage to the dynamic storage zone.
Based on another aspect of the present invention, provide and a kind of the system of operation data, the system are obtained based on memory capacity System includes:
Initialization unit, the loading in response to startup and the system service of user equipment are completed, and are run described for obtaining The acquisition service of the operation data of user equipment;
Resolution unit, to it is pre-set storage information parse, with determine for store the operation data and And with the basic storage region of basic memory capacity;
Unit of memory allocation determines to carry out the operation data in the basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during fragmented storage, and determine when the basic storage region Basic memory capacity the storage rule of dynamic memory is carried out when using up;And
Storage control unit monitors the remaining memory capacity of the basic storage region, in real time when the residue When memory capacity is less than threshold value, storage warming-up exercise associated with dynamic memory is carried out, and work as according to the storage rule Dynamic memory is carried out according to the storage rule when basis memory capacity is used up.
Preferably, the initialization unit is additionally operable to:In response to the startup of user equipment, chip guide function is deposited from read-only Reservoir reads bootstrap and will be in the boot program loads to memory.
Preferably, the initialization unit is additionally operable to:It is described after by the boot program loads to random access memory Bootstrap initializes the required storehouse of operation kernel program and hardware device.
Preferably, the initialization unit is additionally operable to:After the initialization, kernel program, the kernel program are run Setting caching, setting protected storage, setting list of schedules and load driver, and loading system service.
Preferably, setting unit is further included:The user equipment pre-sets the storage information according to user's input And storing information described in user equipment memory storage.
Preferably, acquiring unit is further included:Described obtain services the relevant acquisition rule of the determining and user equipment, and And the operation data of the user equipment is obtained based on the rule that obtains.
Preferably, wherein the acquisition service determines to include with the relevant rule that obtains of the user equipment:The acquisition Service is read the regular configuration file of pre-set acquisition and is determined and the user according to the regular configuration file of the acquisition It is device-dependent to obtain rule.
Preferably, the operation data is the screen video data for the user equipment recorded, and obtains rule and include At least one of the following contents:Time span, capacity limit, frame per second and bit rate.
Preferably, the acquiring unit is additionally operable to:It is determining with after the relevant acquisition rule of the user equipment, further including Described obtain obtains the operation data of the user equipment after service expires in the predetermined time based on the acquisition rule.
Preferably, the storage information includes:The initial address of basic storage region and basic memory capacity.
Preferably, the unit of memory allocation is additionally operable to:The user equipment sets or changes institute according to user's input It states dynamic configuration file or server and sets or change the dynamic configuration text according to the operating statistic data of user equipment Part.
Preferably, acquiring unit is further included:It is described to obtain service according to dynamic configuration file to the more of the operation data Each segmentation in a segmentation carries out segmentation recording using identical or different frame per second and/or bit rate, and each segmentation with Corresponding basic unit of storage is associated in multiple basic units of storage.
Preferably, acquiring unit is further included:The acquisition service can carry out content recognition to acquired operation data, When the content for determining the partition running data in specific basic unit of storage is the data unrelated with the operation of the user equipment When, delete the partition running data.
Preferably, acquiring unit is further included:The acquisition service can carry out content recognition to acquired operation data, When the content for determining the partition running data in specific basic unit of storage can be converted to and the relevant list of the user equipment During frame data, the partition running data are deleted.
Preferably, acquiring unit is further included:It is described obtain service to the content that stores in being arbitrarily segmented in multiple segmentations into Row data compression.
Preferably, the unit of memory allocation is additionally operable to:When the basic memory capacity of the basic storage region is used up, Dynamic storage zone is set in a user device, wherein the dynamic storage zone is associated with the user equipment for storing Additional operation information data.
Preferably, the unit of memory allocation is additionally operable to:Before dynamic storage zone is set in a user device, institute is determined The remaining memory capacity for stating user equipment is more than expanded threshold value.
Preferably, the unit of memory allocation is additionally operable to:It is described to obtain storage rule of the service according to the dynamic memory It determines for the dynamic storage zone of the operation data, and the dynamic storage zone is initialized.
Preferably, the storage control unit is additionally operable to:It is described when the residual capacity of the dynamic storage zone is zero Service is obtained to store new operation data associated with the user equipment to the basic storage region with coverage mode In.
Preferably, the storage control unit is additionally operable to:It is described when the residual capacity of the dynamic storage zone is zero It obtains service and new operation data associated with the user is subjected to cover type storage in the dynamic storage zone.
Preferably, the storage control unit is additionally operable to:Before setting dynamic storage zone in a user device, to described The end time of this operation of user equipment is predicted, when determining from current time to the end time of this operation Period in the size of acquired operation data when being less than or equal to expanded threshold value, determine distribution dynamic storage zone.
Preferably, the acquiring unit is additionally operable to:According to the historical statistics of the end of run time to the user equipment Data come determine the user equipment this operation end time.
Preferably, the acquiring unit is additionally operable to:Before setting dynamic storage zone in a user device, to the user Equipment this operation end time predicted, when determine from current time to it is described this operation end time when Between the size of operation data acquired in section be more than expanded threshold value and during less than acceptable threshold, be determined as the user equipment It distributes dynamic storage zone and the acquisition service is promoted to obtain the operation number according to the frame per second and/or bit rate of reduction According to.
Preferably, broadcast unit is further included:Suspension display window is created in the display area of user equipment, described suspend shows Show window for play by it is described obtain service acquired in operation data.
Preferably, the storage control unit is additionally operable to:The dynamic storage zone is initialized and the base When plinth memory capacity is used up, in the new operation data storage to the dynamic storage zone that the acquisition service will be acquired.
Based on another aspect of the present invention, a kind of mobile terminal is provided, including or for perform such as above-mentioned any one institute That states obtains the system of operation data based on memory capacity.
Technical solution of the present invention provide it is a kind of the method and system of operation data is obtained based on memory capacity, by right The loading completion of startup and the system service of user equipment is responded, and runs the pending application for obtaining user equipment The acquisition service of operation data.Technical solution of the present invention parses pre-set storage information, obtains storage information Capacity determines basic storage region that is for storage running data and having basic memory capacity.Technical solution of the present invention Multiple basic units of storage when determining to carry out operation data in basic storage region fragmented storage according to dynamic configuration file In each basic unit of storage size, and further determine that when the basic memory capacity of basic storage region is used up into action The storage rule of state storage.Technical solution of the present invention is monitored in real time by the remaining memory capacity to basic storage region, When monitoring that remaining memory capacity is less than threshold value, storage associated with dynamic memory is carried out according to storage rule and prepares to move Make, and dynamic memory is carried out according to storage rule when basic memory capacity is used up.Technical scheme of the present invention, realizing can be by The operation data distribution basic unit of storage of acquisition, and when basic unit of storage capacity is used up, it can be according to storage rule Operation data is subjected to dynamic memory.It is provided by the invention that the technology of operation data is obtained based on memory capacity, to run number According to storage rational memory space is scheduled, saved system resource.
Description of the drawings
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the flow for the method for the operation data of acquisition application automatically according to the preferred embodiment for the present invention Figure;
Fig. 2 is the storage region for being used to store the automatic operation data for obtaining application according to the preferred embodiment for the present invention Distribute schematic diagram;
Fig. 3 is the knot that basic storage region is divided into multiple basic units of storage according to the preferred embodiment for the present invention Structure schematic diagram;
Fig. 4 is the structure for the system of the operation data of acquisition application automatically according to the preferred embodiment for the present invention Figure;
Fig. 5 is to obtain the flow of the method for operation data based on memory capacity according to the preferred embodiment for the present invention Figure;
Fig. 6 is to obtain the schematic diagram of operation data based on memory capacity according to the preferred embodiment for the present invention;
Fig. 7 is shows according to the preferred embodiment for the present invention based on memory capacity to obtain the structure of the system of operation data It is intended to;
Fig. 8 is the stream that the method for customization operation data is obtained according to fiducial time according to the preferred embodiment for the present invention Cheng Tu;
Fig. 9 is the schematic diagram by coefficient of dynamics adjustment time section according to the preferred embodiment for the present invention;
Figure 10 is the system that customization operation data is obtained according to fiducial time according to the preferred embodiment for the present invention Structure diagram;
Figure 11 is the stream according to the method that dynamic content presentation is carried out based on video data of the preferred embodiment for the present invention Cheng Tu;
Figure 12 is as carrying out the network of dynamic content presentation according to the video data of the preferred embodiment for the present invention Recommending data schematic diagram;And
Figure 13 is the knot according to the system that dynamic content presentation is carried out based on video data of the preferred embodiment for the present invention Structure schematic diagram.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to attached drawing, however, the present invention can use many different shapes Formula is implemented, and be not limited to the embodiment described herein, and to provide these embodiments be to disclose at large and fully The present invention, and fully convey the scope of the present invention to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached Icon is remembered.
Unless otherwise indicated, term used herein has person of ordinary skill in the field (including scientific and technical terminology) It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its The linguistic context of related field has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is a kind of stream for the method for the operation data of acquisition application automatically according to the preferred embodiment for the present invention Cheng Tu.The method of the automatic operation data for obtaining application that embodiment of the present invention provides, by multiple in monitoring users equipment The state each applied in when receiving the startup request of pending application, obtains the application mark of pending application first Knowledge and digital signature.Embodiment of the present invention is verified by the application identities to pending application and digital signature, with true Whether fixed pending apply is the automatic application for obtaining the operation data applied of needs progress, for being answered by the pending of verification With, start for obtain pending application operation data acquisition service, it is and true according to the application identities of pending application The acquisition rule of fixed pending application, based on the operation data for obtaining the pending application of Rule.For not over verification Pending application, do not start obtain operation data acquisition request.The pending application of embodiment of the present invention can be trip Play application, such as 360 game or video playing application, audio play application and live streaming application.The application is made with 360 game For pending application, screen recording is carried out at runtime to 360 game and is illustrated as the operation data obtained.Such as Shown in Fig. 1, method 100 is since step 101.
Preferably, in step 101:The state each applied in multiple applications in monitoring users equipment is waited to locate receiving Ought to startup request when, obtain the application identities and digital signature of pending application.Preferably, application identities include application Title and/or installation kit title, and digital signature is the E-seal by certification provided by application provider.The application In, application identities can be Apply Names or installation kit title, such as 360 game talk on the journey to wests, application identities be talk on the journey to west or Talk on the journey to west installation kit.But application pretends to be the application of talk on the journey to west or talk on the journey to west installation kit, this Shen by renaming in order to prevent Please further obtain the E-seal that game provider provides to talk on the journey to west game.The application uses digital signature technology, with Pending application is verified in realization.Wherein, digital signature technology can ensure the integrality of application, and be also a kind of body Part proves, prevents from applying and be pretended to be by other application.If the digital signature of provider is held in talk on the journey to west application, because of digital signature It cannot be changed, thus it is guaranteed that the authenticity of talk on the journey to west application identity.
Preferably, the type applied in the application includes game application, video playing is applied, audio plays application and straight Broadcast application.The pending application of embodiment of the present invention can be game application, such as 360 game talk on the journey to west;Or video Play the fast video of application, such as 360;Audio plays application;Live streaming application, such as 360 Beijing time.
Preferably, in step 102:By multiple data item progress in application identities and pre-stored configuration file Match.Preferably, user equipment pre-sets and stores configuration file, and wherein data item is needs according to user's input Carry out the application identities of the application of the acquisition of operation data.In the application, user equipment is pre-set simultaneously according to user's input And storage configuration file, by application identities, as multiple data item in talk on the journey to west and preconfigured configuration file carry out Match, with determine talk on the journey to west application application identities whether in configuration file exist can matched data item, work as presence When, illustrate that talk on the journey to west application has and obtain operation data automatically, in the application, it is automatic that talk on the journey to west game application has acquisition Carry out the permission of screen recording.Alternatively, as seen the application identities of game repeatedly, it can not find that there are matched numbers in configuration file According to item, therefore, see that game does not have repeatedly and obtain the automatic permission for carrying out screen recording.
Preferably, the application determines that provider's mark of pending application includes according to application identities:By pending application Application identities be sent to certificate server and identified with inquiring with pending using the associated provider using provider.This In application, stored by the application identities of pending application and with pending identified using the associated provider using provider Into certificate server, pending application is inquired to corresponding by certificate server and answered by providing the application identities of itself It is identified with the provider of provider.Application identities or provider's mark can be character string, number or by character string and number The mark mixed.
Preferably, in step 103:It is determining, there are during matched data item, pending application to be determined according to application identities Provider mark, digital signature is parsed with check provider mark, so as to carry out the verification to pending application.It is excellent Selection of land is included wherein being parsed to digital signature with checking provider's mark:Digital signature is parsed to extract number Provider's mark described in signature, by provider's mark described in digital signature and the provider from certificate server reception Mark is compared.Preferably, when provider's mark described in digital signature is marked with the provider received from certificate server It is sensible simultaneously, determine that pending application passes through verification.The application is obtained and is remembered in digital signature by being parsed to digital signature Provider's mark of load, the provider parsed in digital signature is identified, with being looked into from certificate server according to application identities The mark of correspondence provider ask is compared.It is provided when provider's mark described in digital signature with certificate server When provider's mark is consistent, determine that pending application passes through verification.Pending application is has permission automatic acquisition operation data, i.e., Allow the application of progress automatic screen recording, such as 360 talk on the journey to west game applications.If as the provider described in digital signature When mark and inconsistent provider's mark that certificate server provides, then application, which is likely to be, has forged application identities or provider Mark, the application are not allowed to carry out automatic screen recording.The application by allow carry out operation data acquisition application into Performing check avoids the operation data for obtaining the application that no operation data obtains permission automatically, causes the waste of system resource.
Preferably, in step 104:When pending application passes through verification, start the operation for obtaining pending application The acquisition service of data.The application is verified to pending application, such as to the application identities of talk on the journey to west and digital signature It is verified, after talk on the journey to west is by verification, the application starts to obtain the screen record of talk on the journey to west application at runtime Uniform business.
Preferably, in step 105:Service is obtained to be determined to apply relevant acquisition rule with pending according to application identities, And obtain the operation data of pending application based on rule is obtained.Preferably, wherein acquisition service is true according to application identities It is fixed to include with the relevant acquisition rule of pending application:The service of acquisition is retrieved rule base, and root according to application identities It is determined and the relevant acquisition rule of pending application according to retrieval result.Preferably, operation data is the user equipment recorded Screen video data, and obtain rule and include at least one of the following contents:Time span, capacity limit, frame per second and ratio Special rate.In the application, obtain service and determine the relevant acquisition rule of pending application according to application identities.Such as obtain service according to The application identities of talk on the journey to west are retrieved using application identities in rule base, are determined according to retrieval result and talk on the journey to west The screen video data recording of application is relevant to obtain rule, the acquisition of the screen video data recording rule applied such as talk on the journey to west It is then:Time span is 10 minutes, capacity limit 2G, frame per second:16 (fps), bit rate 360 (bps) or including other screens Curtain records relevant rule.
Preferably, it is determining with after the relevant acquisition rule of pending application, further including acquisition service in phase predetermined time After full the operation data of pending application is obtained based on rule is obtained.In the application, in the acquisition rule for determining pending application After then, the service of acquisition regular obtains the operation data of pending application according to obtaining after can also expiring in the predetermined time.I.e. After the acquisition rule for determining talk on the journey to west game, after the talk on the journey to west game running time reaches 5 seconds phases predetermined time, obtain Service, which starts to play to big talk, carries out screen recording.Wherein, phase predetermined time is presets, and can be 1 second, 2 seconds, 5 seconds, and 10 Second or other scheduled times.
Preferably, when the state of pending application is switched to running background from front stage operation, the service pause of acquisition obtains Operation data.In the application, when the state of pending application is switched to running background from front stage operation, such as when user is playing greatly When talking about Journey to the West game, user connects phone, starts the call of a period of time, and talk on the journey to west game at this time can be switched to backstage and transport Row when talk on the journey to west is played in running background, does not need to carry out screen recording.Therefore, the application automatic pause screen recording, To avoid unwanted screen data is recorded, the resource of system is occupied.
Preferably, when the state of pending application is switched to front stage operation from running background, the service of acquisition starts to obtain Operation data.In the application, when user disconnects from talking state, talk on the journey to west game is switched to front stage operation from running background When, user starts to continue to run with game, needs to carry out screen recording again at this time, and the application, which can realize, to be automatically begun to from from the background The talk on the journey to west game that operation is switched to front stage operation carries out screen recording.
Preferably, the application is each being deposited using distribution basis in the multiple applications for need to carry out the acquisition of operation data Storage area domain and dynamic storage zone, wherein basic storage region is used to store basic operation data associated with each applying, And dynamic storage zone is for storage with each applying associated additional operation information data.The application is needs to carry out operation number According to acquisition multiple applications in each using distribution basis storage region and dynamic storage zone, wherein region use is deposited on basis In storing basic operation data associated with each applying, dynamic storage zone is associated attached with each applying for storage Add operation data.In playing such as talk on the journey to west, user needs to record 8 minutes under normal circumstances, therefore is talk on the journey to west game point Basic storage region with 1G capacity, in addition, it is uncertain due to running game, it there may come a time when that talk on the journey to west game can be extended Screen recording, such as will continue to record again 2 minutes, therefore, the dynamic area of 300M capacity matched for talk on the journey to west game point Domain.Or 360 fast Video Applications, under normal circumstances user need to record 15 minutes, therefore be 360 fast video distribution 1.5G capacity Basic storage region there may come a time when that the screen recording of 360 fast videos can be extended, can such as be further continued for recording 3 minutes, be 360 therefore The dynamic storage zone of fast video distribution 400M capacity.Wherein, the capacity of dynamic storage zone is capable of the reality of pending application Screen recording demand is adjusted, and demand is obtained to meet the additional operation information data of pending application.Pending apply is carrying out During screen recording during operation, the data first recorded are stored in basic storage region, when basic storage region is filled with, then will after The data deposit dynamic storage zone that face is recorded.
Preferably, when the residual capacity of the basic storage region of pending application is zero, it is pre- to obtain service based on subscriber The storage rule or the operating status of acquisition service based on subscriber equipment first set is dynamic for pending application distribution to determine whether State storage region.In the application, when the residual capacity of the basic storage region of pending application is zero, as when talk on the journey to west When the capacity of basic storage region 1G is stored full, acquisition service based on subscriber, which is pre-set, to be determined whether to swim for talk on the journey to west Play distribution dynamic storage zone if the storage rule of talk on the journey to west is screen recording 10 minutes, has currently completed talk on the journey to west trip The screen recording of play 8 minutes, the practical recording time of talk on the journey to west game are also less than the recording time of 10 minutes defined, work as basis When residual capacity is not present of storage region obtains the dynamic storage zone that 300M is matched in service for talk on the journey to west game point again, makes The screen recording that talk on the journey to west game is obtained when can complete game running according to rule is obtained.The application, when pending application When the residual capacity of basic storage region is zero, it can also be judged by the operating status to user equipment, it is determined whether Dynamic storage zone is distributed for pending application.Such as when the screen recording data of talk on the journey to west game reach 1G, but equipment fortune The memory space of row residue 80M can not be that talk on the journey to west game continue to distribute dynamic storage zone, therefore, will not be again Pending application distributes dynamic storage zone.Or when the screen recording data of talk on the journey to west game reach 1G, but equipment operation The memory space of 20G is there remains, user equipment has sufficient memory space to distribute dynamic storage zone for pending application, obtains The dynamic storage zone of 800M is matched in service for talk on the journey to west game point again, and talk on the journey to west, which is played, continues the record of screen data System.
Preferably, when the residual capacity of the dynamic storage zone of pending application is zero, obtain service will with it is pending It is stored using associated new operation data with coverage mode into basic storage region.In the application, when pending application The residual capacity of dynamic storage zone be zero, the screen recording data played such as talk on the journey to west are by the dynamic area of distribution When domain is filled with, the screen data for being stored in basic storage region such as recorded before is deposited compared to the dynamic that is stored in recorded below The importance of the screen data in storage area domain is low, when dynamic storage zone has been filled with and needing to continue screen recording, obtains Take service by talk on the journey to west using associated new screen recording data storage to basic storage region, basic storage region is deposited The screen data that the data of storage are newly recorded covers.
Preferably, when the residual capacity of the dynamic storage zone of pending application is zero, obtain service will with it is pending Cover type storage is carried out in dynamic storage zone using associated new operation data.In the application, when pending application The residual capacity of dynamic storage zone be zero, the screen recording data played such as talk on the journey to west are by the dynamic area of distribution When domain is filled with, the screen data for being stored in basic storage region such as recorded before is deposited compared to the dynamic that is stored in recorded below The importance of the screen data in storage area domain is high, when dynamic storage zone has been filled with and needing to continue screen recording, obtains Take service by talk on the journey to west using associated new screen recording data storage to dynamic storage zone, dynamic storage zone is deposited The screen data that the data of storage are newly recorded covers.
Preferably, further include to pending application this operation end time predict, when determine from it is current when Between to the size of operation data acquired in the period of the end time of this operation be less than or equal to expanded threshold value when, really It is set to pending application distribution dynamic storage zone.Preferably, wherein going through according to the end of run time to pending application History statistical data come determine pending application this operation end time.In the application, to the operation knot of pending application The beam time is counted, and log history statistical data, in pending application at runtime, is determined according to historical statistical data The pending end time using this operation.If talk on the journey to west is played, the historical statistical data record each run time is 22: 00 to 22:30, by historical statistical data, the run time that can predict talk on the journey to west game is 22:00 to 22:30 points of 30 Clock.The application from current time to the size of operation data acquired in the period of this end time run to carrying out Assessment, if current time is 22:25,22 from current time to end time:During 30 period of 5 minutes, the operation of acquisition The size of data is about 700M, and 700M sizes and equipment can be extended to the maximum value of capacity, i.e. expanded threshold value is compared, such as Expanded threshold value is 2G, and talk on the journey to west game running carries out the 700M's of screen recording needs in estimated 5 minutes terminated Capacity less than the capacity of expanded threshold value 2G, is determined as talk on the journey to west game point with dynamic storage zone.Or when such as expanded threshold value is During 500M, talk on the journey to west game running carries out the capacity of the 700M of screen recording needs in estimated 5 minutes terminated, More than the capacity of expanded threshold value 500M, the capacity that equipment can extend can not match screen recording data for talk on the journey to west game point again Memory space, determine can not be talk on the journey to west game point match dynamic storage zone.
Preferably, further include to pending application this operation end time predict, when determine from it is current when Between to the size of operation data acquired in the period of the end time of this operation be more than expanded threshold value and less than holding Perhaps during threshold value, be determined as pending application distribution dynamic storage zone and promoting obtain service according to the frame per second of reduction and/or Bit rate obtains operation data.In the application, the run time such as to talk on the journey to west game prediction also 15 minutes, 5 minutes The capacity of the 2.5G of screen recording needs is carried out in time, equipment can extend the maximum value of capacity, i.e., carried out with expanded threshold value Compare, if expanded threshold value is 2G, equipment residue memory capacity, i.e., minimum acceptable threshold is 5G, and screen record is carried out in 5 minutes The capacity of the 2.5G needed is made, the expanded threshold value more than 2G and the minimum acceptable threshold 5G for being less than equipment, the application are big talk The screen recording distribution dynamic of Journey to the West game deposits region, also, the acquisition service of the screen recording of talk on the journey to west game is reduced Frame per second is such as adjusted to 18 (fps) by the frame per second and/or bit rate of recording from 25 (fps), and bit rate is adjusted to from 400 (bps) 320 (bps), to reduce the data of the screen recording of talk on the journey to west game.
Preferably, the application, which further includes, parses pre-set storage information, to determine for storage running number According to and with the basic storage region of basic memory capacity.In the application, pre-set storage information is parsed, The time of screen recording, the frame per second recorded, bit rate are carried out according to pending application, the data of screen recording storage information are held Amount is parsed, and such as to talk on the journey to west game 10 minutes screen recordings of progress, by frame per second 25 (fps), bit rate is from 380 (bps), it is 1.5G to parse talk on the journey to west game screen and record the capacity needed, therefore, the base of 1.5G is distributed for talk on the journey to west Plinth storage region.
Preferably, the application is further included determines to divide operation data in basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during section storage.Preferably, application further includes, and obtains service Segmentation recording is carried out using identical or different frame per second and/or bit rate to each segmentation in multiple segmentations of operation data, And being each segmented basic unit of storage corresponding with multiple basic units of storage is associated.It is right for convenience in the application The operation data that pending application obtains is handled, and by the way of fragmented storage, is placed the data in multiple after segmentation In basic unit of storage.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., Wherein, the frame per second of screen recording and bit rate can be identical or different in every section of corresponding basic unit of storage , and establish incidence relation of each segmentation with corresponding basic unit of storage.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage The content of partition running data in unit be with it is pending using unrelated data when, delete partition running data.The application In, the operation data of acquisition is identified by obtaining service, i.e., the screen recording number played to talk on the journey to west in the application According to content be identified, when finding in basic unit of storage, screen recording data and the talk on the journey to west game of the first segmentation are transported Capable data are unrelated, are such as ad data, then delete the screen recording data of the first segmentation.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage When the content of partition running data in unit can be converted to pending application relevant frame data, partition running is deleted Data.In the application, the operation data of acquisition is identified by obtaining service, such as the screen recording to talk on the journey to west game Data carry out content recognition, if it is determined that the screen of the basic unit of storage storage of specific basic unit of storage, such as the 5th segmentation Data recording is screen recording data when game does not carry out any operation, i.e. the talk on the journey to west record screen of basic unit of storage storage Data can be converted to frame data, therefore, delete the screen recording data of the basic unit of storage storage of the 5th segmentation.
Preferably, it obtains service and data compression is carried out to the content stored in multiple arbitrary segmentations of segmentation.In the application, lead to It crosses the service of acquisition and data compression is carried out to the content stored in any one segmentation in multiple segmentations, such as talk on the journey to west is played The record screen data being stored in the second segmentation carry out compression processing, to save the memory space of data.
Preferably, the display area for being additionally included in user equipment creates suspension display window, and suspension display window is used to broadcast Put the operation data acquired by obtaining service.In the application, the display that suspends is created by display area in a user device Window will obtain the operation data of service acquisition, i.e. the data of screen recording are shown in suspended window, are realized screen Enroll the synchronous displaying of data.
Fig. 2 is the storage region for being used to store the automatic operation data for obtaining application according to the preferred embodiment for the present invention Distribute schematic diagram.As shown in Fig. 2, the application is each application distribution base for needing to carry out in multiple applications of operation data acquisition Plinth storage region 201 and dynamic storage zone 202, wherein basis deposit region 201 for store with each using associated base Plinth operation data, dynamic storage zone 202 is for storage with each applying associated additional operation information data.As talk on the journey to west is swum In play, user needs to record 8 minutes under normal circumstances, therefore matches the basic storage region of 1G capacity for talk on the journey to west game point 201, in addition, it is uncertain due to running game, it there may come a time when that the screen recording of talk on the journey to west game can be extended, such as will continue to It records again 2 minutes, therefore, the dynamic storage zone 202 of 300M capacity is matched for talk on the journey to west game point.Wherein, dynamic area The actual screen recording demand that the capacity in domain is capable of pending application is adjusted, to meet the additional operation number of pending application According to the demand of acquisition.It is pending apply when being run screen recording when, the data first recorded are stored in basic storage region, Dynamic storage zone is stored in when basic storage region is filled with, then by the data recorded below.When basic storage region 201 and move When the record screen data stored in state storage region 202 all do not have residual capacity, but also need to continue pending application During screen recording, the importance journey of record screen data stored in region 201 and dynamic storage zone 202 is deposited to stored basis Sequence is judged that the data importance as stored in basic storage region 201 is low, and the screen data for continuing to record is deposited basis Stored data carry out cover type processing in storage area domain 201;Or the data importance stored in dynamic storage zone 202 is low, It will continue the screen data recorded and data stored in dynamic storage zone 202 be subjected to cover type processing.
Fig. 3 is the knot that basic storage region is divided into multiple basic units of storage according to the preferred embodiment for the present invention Structure schematic diagram.As shown in figure 3, the operation data obtained for convenience to pending application in the application is handled, using base Plinth storage region is segmented, and by the way of fragmented storage, is placed the data in multiple basic units of storage after segmentation. The basic storage region of 1G is such as divided into the first segmentation basic unit of storage 301 of 100M, the second segmentation of 100M is deposited substantially Storage unit 302, the third segmentation basic unit of storage 303 of 100M, the 4th segmentation basic unit of storage 304 of 200M, 200M's 5th segmentation basic unit of storage 305, the segmentation of the 6th segmentation basic unit of storage 306 ... of 200M.It is swum in talk on the journey to west Play operation start before, due to fluctuation of service, the capacity of basic unit of storage 301,302 and 303 is divided into 100M, convenient for pair Unstable data are handled.When talk on the journey to west game running for a period of time after, application operation relatively stablize, list will be stored substantially The capacity of member 304,305 and 306 is divided into 200M.In the later stage of screen recording, data are opposite and unstable, by basic unit of storage 307 and 308 capacity is divided into 100M.Wherein, in every section of corresponding basic unit of storage screen recording frame per second and bit rate It can be identical or different, and establish incidence relation of each segmentation with corresponding basic unit of storage.This In application, when frame data can be converted to by such as finding the record screen data of the first segmentation 301 memory storage of basic unit of storage, delete The record screen data of first segmentation 301 memory storage of basic unit of storage.As found 302 memory storage of the second segmentation basic unit of storage When record screen data are the data unrelated with talk on the journey to west game application operation data, the second segmentation basic unit of storage 302 is deleted The record screen data of memory storage.The application can also be serviced by obtaining, and the first segmentation basic unit of storage 301 to the 8th is segmented The data stored in any segmentation or multiple segmentations in basic unit of storage 308 carry out compression processing.
Fig. 4 is to be shown according to the preferred embodiment for the present invention for obtaining the structure of the system of the operation data of application automatically It is intended to.The system of the automatic operation data for obtaining application that embodiment of the present invention provides, is set by monitoring unit monitoring users The state each applied in standby interior multiple applications when receiving the startup request of pending application, obtains pending application first Application identities and digital signature.Embodiment of the present invention signs the application identities of pending application and number by authentication unit Name is verified, to determine whether pending apply is to need to carry out the automatic application for obtaining the operation data applied, for logical The pending application of verification is crossed, by start unit startup for obtaining the acquisition service of the operation data of pending application, is led to The acquisition rule that acquiring unit determines pending application according to the application identities of pending application is crossed, is treated based on Rule is obtained Handle the operation data of application.For the pending application not over verification, do not start the acquisition request for obtaining operation data. The pending application of embodiment of the present invention can be game application, and such as 360 game or video playing application, audio play Using and live streaming application.The application carries out screen record at runtime using 360 game as pending application, to 360 game The operation data for being made as obtaining is illustrated.As shown in figure 4, system 400 includes:
Monitoring unit 401, the state each applied in multiple applications in monitoring users equipment, is receiving pending application Startup request when, obtain the application identities and digital signature of pending application.Preferably, application identities include Apply Names And/or installation kit title, and digital signature is the E-seal by certification provided by application provider.In the application, Application identities can be Apply Names or installation kit title, such as 360 game talk on the journey to wests, and application identities are talk on the journey to west or big Talk about Journey to the West installation kit.But application pretends to be the application of talk on the journey to west game or talk on the journey to west installation kit by renaming in order to prevent, this Application further obtains the E-seal that game provider provides to talk on the journey to west game.The application uses digital signature technology, Pending application is verified with realizing.Wherein, digital signature technology can ensure the integrality of application, and be also one kind Proof of identification is prevented from applying and be pretended to be by other application.If the digital signature of provider is held in talk on the journey to west application, because of number label Name cannot be changed, thus it is guaranteed that the authenticity of talk on the journey to west application identity.
Preferably, the type applied in the application includes game application, video playing is applied, audio plays application and straight Broadcast application.The pending application of embodiment of the present invention can be game application, such as 360 game talk on the journey to west;Or video Play the fast video of application, such as 360;Audio plays application;Live streaming application, such as 360 Beijing time.
Matching unit 402 matches application identities with multiple data item in pre-stored configuration file.It is preferred that Ground, the application include dispensing unit, configuration file are pre-set and stored according to user's input for user equipment, and Wherein data item is the application identities for needing to carry out the application of the acquisition of operation data.In the application, user equipment is according to user Input pre-sets and stores configuration file, by application identities, in talk on the journey to west and preconfigured configuration file Multiple data item are matched, to determine whether presence can match the application identities of the application of talk on the journey to west in configuration file Data item, when it is present, illustrate talk on the journey to west application have it is automatic obtain operation data, in the application, talk on the journey to west game The automatic permission for carrying out screen recording is obtained using having.Alternatively, the application identities as seen game repeatedly, are looked in configuration file Less than there are matched data item, therefore, see that game does not have repeatedly and obtain the automatic permission for carrying out screen recording.
Preferentially, authentication unit 403 is additionally operable to:The application identities of pending application are sent to certificate server to inquire It is identified with pending using the associated provider using provider.In the application, by the application identities of pending application and It is stored with pending using associated using provider's mark of provider into certificate server, pending application is by carrying For the application identities of itself, inquired to the corresponding provider using provider and identified by certificate server.Application identities or Provider's mark can be character string, number or the mark mixed by character string and number.
Authentication unit 403 is determining, there are during matched data item, the offer of pending application to be determined according to application identities Side's mark parses digital signature to check provider's mark, so as to carry out the verification to pending application.Preferably, Wherein digital signature is parsed and is included with checking provider's mark:Digital signature is parsed to extract in digital signature Record provider mark, by described in digital signature provider mark with from certificate server receive provider identify into Row compares.Preferably, when provider's mark described in digital signature is identical with the provider's mark received from certificate server When, determine that pending application passes through verification.The application obtains carrying described in digital signature by being parsed to digital signature Supplier identifies, and the provider parsed in digital signature is identified, with being inquired according to application identities from certificate server The mark of corresponding provider is compared.As the provider that provider's mark described in digital signature is provided with certificate server When identifying consistent, determine that pending application passes through verification.Pending application for have permission it is automatic obtain operation data, that is, allow into The application that row automatic screen is recorded, such as 360 talk on the journey to west game applications.If when described in digital signature provider mark with When provider's mark that certificate server provides is inconsistent, then application, which is likely to be, has forged application identities or provider's mark, The application is not allowed to carry out automatic screen recording.The application is by examining the application for allowing to carry out operation data acquisition It tests, avoids the operation data for obtaining the application that no operation data obtains permission automatically, cause the waste of system resource.
Start unit 404 when pending application passes through verification, starts the operation data for obtaining pending application Obtain service.The application is verified to pending application, and such as the application identities of talk on the journey to west and digital signature are tested Card, after talk on the journey to west is by verification, the application starts to obtain the screen recording service of talk on the journey to west application at runtime.
Acquiring unit 405, the service that obtains determine to apply relevant acquisition rule, and base with pending according to application identities The operation data of pending application is obtained in obtaining rule.Preferably, service is obtained to carry out rule base according to application identities Retrieval, and determined and the relevant acquisition rule of pending application according to retrieval result.Preferably, operation data is recorded The screen video data of user equipment, and obtain rule and include at least one of the following contents:Time span, capacity limit System, frame per second and bit rate.In the application, obtain service and determine the relevant acquisition rule of pending application according to application identities.Such as Application identities of the service according to talk on the journey to west are obtained, are retrieved in rule base using application identities, it is true according to retrieval result The relevant screen video data for obtaining rule, being applied such as talk on the journey to west of screen video data recording of fixed and talk on the journey to west application The acquisition rule of recording is:Time span is 10 minutes, capacity limit 2G, frame per second:16 (fps), bit rate 360 (bps) or Person includes the relevant rule of other screen recordings.
Preferably, acquiring unit 405 is additionally operable to:It is determining with after the relevant acquisition rule of pending application, further including and obtaining Service is taken to obtain the operation data of pending application based on obtaining rule after expiring in the predetermined time.In the application, determining After the acquisition rule of pending application, the service of acquisition is pending to obtain according to rule is obtained after can also expiring in the predetermined time The operation data of application.I.e. after the acquisition rule for determining talk on the journey to west game, the talk on the journey to west game running time reaches pre- It fixes time after 5 seconds phases, the service of acquisition, which starts to play to big talk, carries out screen recording.Wherein, phase predetermined time, can to preset Think 1 second, 2 seconds, 5 seconds, 10 seconds or other scheduled times.
Preferably, acquiring unit 405 is additionally operable to:When the state of pending application is switched to running background from front stage operation When, the service pause of acquisition obtains operation data.In the application, transported when the state of pending application is switched to backstage from front stage operation During row, such as when user is when playing talk on the journey to west game, user connects phone, starts the call of a period of time, at this time talk on the journey to west Game can be switched to running background, when talk on the journey to west is played in running background, not need to carry out screen recording.Therefore, this Shen Please automatic pause screen recording, to avoid unwanted screen data is recorded, occupy the resource of system.
Preferably, acquiring unit 405 is additionally operable to:When the state of pending application is switched to front stage operation from running background When, the service of acquisition starts to obtain operation data.In the application, when user disconnects from talking state, talk on the journey to west game is from from the background When operation is switched to front stage operation, user starts to continue to run with game, needs to carry out screen recording again at this time, the application can be real It now automatically begins to play to the talk on the journey to west for being switched to front stage operation from running background and carries out screen recording.
Preferably, the application further includes storage unit:It is every in multiple applications to need the acquisition for carrying out operation data A application distribution basis storage region and dynamic storage zone, wherein basic storage region is associated with each application for storing Basic operation data, and dynamic storage zone for store with each using associated additional operation information data.The application Each to apply distribution basis storage region and dynamic storage zone in needing the multiple applications for the acquisition for carrying out operation data, Wherein basis deposit region for store with each using associated basic operation data, dynamic storage zone is for storing and often A associated additional operation information data of application.In playing such as talk on the journey to west, user needs recording 8 minutes under normal circumstances, therefore Match the basic storage region of 1G capacity for talk on the journey to west game point, in addition, it is uncertain due to running game, it there may come a time when meeting Extend the screen recording of talk on the journey to west game, such as will continue to record again 2 minutes, be that talk on the journey to west game point is held with 300M therefore The dynamic storage zone of amount.Or 360 fast Video Applications, under normal circumstances user need to record 15 minutes, therefore be 360 fast videos The basic storage region of 1.5G capacity is distributed, there may come a time when that the screen recording of 360 fast videos can be extended, can such as be further continued for recording 3 Minute, it is the dynamic storage zone of 360 fast video distribution 400M capacity therefore.Wherein, the capacity of dynamic storage zone can The actual screen of pending application is recorded demand and is adjusted, and demand is obtained to meet the additional operation information data of pending application. It is pending apply when being run screen recording when, the data first recorded are stored in basic storage region, when basis stores When region is filled with, then by the data recorded below be stored in dynamic storage zone.
Preferably, storage unit is additionally operable to:When the residual capacity of the basic storage region of pending application is zero, obtain The pre-set storage rule of service based on subscriber obtains the operating status of service based on subscriber equipment to determine whether to treat Processing application distribution dynamic storage zone.In the application, when the residual capacity of the basic storage region of pending application is zero, Such as when the capacity of the basic storage region 1G of talk on the journey to west is stored full, the pre-set storage of service based on subscriber is obtained Rule determines whether to be talk on the journey to west game point with dynamic storage zone, currently complete such as talk on the journey to west screen recording 10 minutes The screen recording played into talk on the journey to west 8 minutes, the practical recording time of talk on the journey to west game are also less than the record of 10 minutes defined Time processed, when basic storage region is when being not present residual capacity, it is dynamic with 300M that the service that obtains is again talk on the journey to west game point State storage region so that talk on the journey to west game can complete screen recording during game running.The application, when pending application When the residual capacity of basic storage region is zero, it can also be judged by the operating status to user equipment, it is determined whether Dynamic storage zone is distributed for pending application.Such as when the screen recording data of talk on the journey to west game reach 1G, but equipment fortune The memory space of row residue 80M can not be that talk on the journey to west game continue to distribute dynamic storage zone, therefore, will not be again Pending application distributes dynamic storage zone.Or when the screen recording data of talk on the journey to west game reach 1G, but equipment operation The memory space of 20G is there remains, user equipment has sufficient memory space to distribute dynamic storage zone for pending application, obtains The dynamic storage zone of 800M is matched in service for talk on the journey to west game point again, and talk on the journey to west, which is played, continues the record of screen data System.
Preferably, storage unit is additionally operable to:When the residual capacity of the dynamic storage zone of pending application is zero, obtain Service will be stored with coverage mode into basic storage region with pending using associated new operation data.The application In, when the residual capacity of the dynamic storage zone of pending application is zero, the screen recording data played such as talk on the journey to west incited somebody to action When the dynamic storage zone of distribution is filled with, the screen data for being stored in basic storage region of such as recording before is compared records below The importance of the screen data for being stored in dynamic storage zone of system is low, when dynamic storage zone has been filled with and need to continue into During row screen recording, service is obtained by talk on the journey to west using associated new screen recording data storage to basic memory block Domain, the screen data that the data of basic storage region storage are newly recorded cover.
Preferably, storage unit is additionally operable to:When the residual capacity of the dynamic storage zone of pending application is zero, obtain Service will carry out cover type storage using associated new operation data with pending in dynamic storage zone.The application In, when the residual capacity of the dynamic storage zone of pending application is zero, the screen recording data played such as talk on the journey to west incited somebody to action When the dynamic storage zone of distribution is filled with, the screen data for being stored in basic storage region of such as recording before is compared records below The importance of the screen data for being stored in dynamic storage zone of system is high, when dynamic storage zone has been filled with and need to continue into During row screen recording, service is obtained by talk on the journey to west using associated new screen recording data storage to dynamic area Domain, the screen data that the data of dynamic storage zone storage are newly recorded cover.
Preferably, storage unit is additionally operable to:The end time of this operation of pending application is predicted, when determining It is less than or equal to extension from current time to the size of operation data acquired in the period of this end time run During threshold value, it is determined as pending application distribution dynamic storage zone.Preferably, wherein according to the end of run to pending application The historical statistical data of time come determine pending application this operation end time.In the application, to pending application The end of run time counted, and log history statistical data, it is pending application at runtime, according to historical statistics number According to come determine it is pending using this operation end time.If talk on the journey to west is played, historical statistical data record each run Time is 22:00 to 22:30, by historical statistical data, the run time that can predict talk on the journey to west game is 22:00 to 22: 30 minutes of 30.The application is to from current time to operation data acquired in the period of this end time run Size is assessed, if current time is 22:25,22 from current time to end time:During 30 period of 5 minutes, obtain And expanded threshold value the size of the operation data taken is about 700M, and 700M sizes and equipment can be extended to the maximum value of capacity, i.e., It is compared, if expanded threshold value is 2G, talk on the journey to west game running carries out screen recording in estimated 5 minutes terminated to be needed The capacity of the 700M wanted less than the capacity of expanded threshold value 2G, is determined as talk on the journey to west game point with dynamic storage zone.It or ought be such as When expanded threshold value is 500M, talk on the journey to west game running carries out screen recording needs in estimated 5 minutes terminated The capacity of 700M, more than the capacity of expanded threshold value 500M, the capacity that equipment can extend can not match for talk on the journey to west game point again The memory space of screen recording data determines can not to be that talk on the journey to west game point matches dynamic storage zone.
Preferably, storage unit is additionally operable to:The end time of this operation of pending application is predicted, when determining It is more than expanded threshold value simultaneously from current time to the size of operation data acquired in the period of this end time run And during less than acceptable threshold, it is determined as pending application distribution dynamic storage zone and promotes to obtain frame of the service according to reduction Rate and/or bit rate obtain operation data.In the application, when such as also having the operation of 15 minutes to talk on the journey to west game prediction Between, the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, equipment can extend the maximum value of capacity, i.e., with extension Threshold value is compared, and if expanded threshold value is 2G, equipment residue memory capacity, i.e., minimum acceptable threshold is 5G, in 5 minutes into The capacity for the 2.5G that row screen recording needs, expanded threshold value more than 2G and less than the minimum acceptable threshold 5G of equipment, this Shen Please be that the screen recording distribution dynamic that talk on the journey to west is played deposits region, also, the acquisition of the screen recording to talk on the journey to west game Service reduces the frame per second recorded and/or bit rate, and frame per second such as is adjusted to 18 (fps) from 25 (fps), and bit rate is from 400 (bps) 320 (bps) are adjusted to, to reduce the data of the screen recording of talk on the journey to west game.
Preferably, the application further includes storage unit:Pre-set storage information is parsed, is deposited with determining Store up operation data and with the basic storage region of basic memory capacity.In the application, to pre-set storage information It is parsed, the time of screen recording, the frame per second recorded, bit rate is carried out according to pending application, screen recording is stored and is believed The data capacity of breath is parsed, and such as playing to talk on the journey to west carries out 10 minutes screen recordings, by frame per second 25 (fps), bit rate From 380 (bps), it is 1.5G to parse talk on the journey to west game screen and record the capacity needed, therefore, 1.5G is distributed for talk on the journey to west Basic storage region.
Preferably, storage unit is further included:According to dynamic configuration file determine in basic storage region to operation data into The size of each basic unit of storage in multiple basic units of storage during row fragmented storage.Preferably, it is obtained in the application single Member 405 is additionally operable to:Obtain service to each segmentation in multiple segmentations of operation data using identical or different frame per second and/or Bit rate carries out segmentation recording, and each segmentation basic unit of storage corresponding with multiple basic units of storage is associated. In the application, the operation data obtained for convenience to pending application is handled, by the way of fragmented storage, by data In the multiple basic units of storage of storage after segmentation.The basic storage region of 1G is such as divided into 100M, 100M, 200M, The segmentation of 200M, 200M ..., wherein, the frame per second of screen recording and bit rate can be in every section of corresponding basic unit of storage It is identical or different, and establish incidence relation of each segmentation with corresponding basic unit of storage.
Preferably, acquiring unit 405 is additionally operable to:The service of acquisition can carry out content recognition to acquired operation data, When the content for determining the partition running data in specific basic unit of storage be with it is pending using unrelated data when, delete point Section operation data.In the application, the operation data of acquisition is identified by obtaining service, i.e., to talk on the journey to west in the application The content of the screen recording data of game is identified, when finding in basic unit of storage, the screen recording data of the first segmentation It is unrelated with the data of talk on the journey to west game running, it is such as ad data, then deletes the screen recording data of the first segmentation.
Preferably, acquiring unit 405 is additionally operable to:The service of acquisition can carry out content recognition to acquired operation data, When the content for determining the partition running data in specific basic unit of storage can be converted to and the pending relevant single frames of application During data, partition running data are deleted.In the application, the operation data of acquisition is identified by obtaining service, such as to big The screen recording data for talking about Journey to the West game carry out content recognition, if it is determined that the base of specific basic unit of storage, such as the 5th segmentation The screen recording data of this storage unit storage are screen recording data when game does not carry out any operation, i.e., basic storage is single The talk on the journey to west record screen data of member storage, can be converted to frame data, therefore, the basic unit of storage for deleting the 5th segmentation is deposited The screen recording data of storage.
Preferably, acquiring unit 405 is additionally operable to:Service is obtained to carry out the content stored in being arbitrarily segmented in multiple segmentations Data compression.In the application, data are carried out to the content stored in any one segmentation in multiple segmentations by obtaining service The record screen data that talk on the journey to west game is stored in the second segmentation are such as carried out compression processing, to save the storage of data by compression Space.
Preferably, the application further includes broadcast unit:Suspension display window is created in the display area of user equipment, is suspended Display window services acquired operation data for playing by obtaining.In the application, pass through viewing area in a user device Domain creates suspension display window, will obtain the operation data of service acquisition, i.e. the data of screen recording are shown in suspended window Show, realize synchronous the showing of screen admission data.
Based on another embodiment of the present invention, a kind of mobile terminal is provided, including or for perform above-mentioned automatic acquisition The system of the operation data of application.
Fig. 5 is to obtain the flow of the method for operation data based on memory capacity according to the preferred embodiment for the present invention Figure.Embodiment of the present invention provide it is a kind of the method for operation data is obtained based on memory capacity, by user equipment Start and the loading of system service completion responded, run for obtain user equipment pending application operation data Obtain service.Embodiment of the present invention parses pre-set storage information, obtains the capacity of storage information, determines to use In storage running data and with the basic storage region of basic memory capacity.Embodiment of the present invention is according to dynamic configuration It is each deposited substantially in multiple basic units of storage when file determines to carry out fragmented storage to operation data in basic storage region The size of storage unit, and further determine that the storage that dynamic memory is carried out when the basic memory capacity of basic storage region is used up Rule.Embodiment of the present invention is monitored in real time by the remaining memory capacity to basic storage region, when monitoring residue When memory capacity is less than threshold value, storage warming-up exercise associated with dynamic memory, and basis storage are carried out according to storage rule Dynamic memory is carried out according to storage rule when capacity is used up.Embodiments of the present invention, realizing can be by the operation number of acquisition According to distribution basic unit of storage, and when basic unit of storage capacity is used up, can according to storage rule by operation data into Mobile state stores.In the application, user equipment can be mobile phone, IPD, automobile data recorder etc..As shown in Fig. 5, method 500 from Step 501 place starts.
Preferably, in step 501:Loading in response to startup and the system service of user equipment is completed, and runs to obtain Take the acquisition service of the operation data of user equipment.Preferably, in response to the startup of user equipment, chip guide function is from read-only Memory reads bootstrap and will be in boot program loads to memory.Preferably, by boot program loads to depositing at random After in reservoir, bootstrap initializes the required storehouse of operation kernel program and hardware device.Preferably, initial After change, kernel program is run, kernel program setting caching, sets list of schedules and load driver at setting protected storage, And loading system service.In the application, when power supply is pressed, chip guide function starts from predefined read only memory ROM Start to read in bootstrap and bootload program to memory, then perform.When bootstrap is loaded into random storage After in device, bootstrap initializes the storehouse and hardware device of operation kernel program needs, after initialization, operation Kernel program passes through kernel program setting caching, setting protected storage, setting list of schedules and load driver and loading System service.In the application, the loading completion of startup and the system service of user equipment is responded, operation is used for obtaining The acquisition service of the operation data of family equipment.In the application, after user equipment such as mobile phone open, the acquisition clothes for the data that bring into operation Business, the application are illustrated with carrying out screen recording to mobile phone, when mobile phone starts and has loaded the function of system service Afterwards, it is serviced by obtaining, the screen of mobile phone is recorded.
Preferably, in step 502:Pre-set storage information is parsed, to determine for storage running data And with the basic storage region of basic memory capacity.Preferably, user equipment is deposited according to user's input to pre-set Store up information and in the user equipment memory storage storage information.Preferably, storage information includes:The starting point of basic storage region Location and basic memory capacity.In the application, storage information is pre-set by user's input, storage information is set including user The standby initial address of data storage and basis memory capacity after carrying out screen recording, such as the storage information by data storage are set For:Video memory space, 5G capacity.The application determines to store screen recording according to the storage information after parsing for user The capacity of the basic storage region of data is 5G.
Preferably, in step 503:It determines to be segmented operation data in basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during storage, and determine to deposit when the basis of basic storage region Storage capacity carries out the storage rule of dynamic memory when using up.In the application, for convenience to the operation number of pending application acquisition According to being handled, by the way of fragmented storage, by the multiple basic units of storage of the data storage of screen recording after segmentation In.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, every section of correspondence Basic unit of storage in screen recording frame per second and bit rate can be identical or different, and establish every A incidence relation being segmented with corresponding basic unit of storage.Preferably, when the residue of the basic storage region of pending application When capacity is zero, obtains the pre-set storage rule of service based on subscriber or obtain the operating status of service based on subscriber equipment To determine whether to distribute dynamic storage zone for pending application.
Preferably, the determining storage rule packet that dynamic memory is carried out when the basic memory capacity of basic storage region is used up It includes:When the basic memory capacity of basic storage region is used up, dynamic storage zone is set in a user device, wherein dynamically depositing Storage area domain is for storage additional operation information data associated with user equipment.In the application, when the basic memory block of user equipment When the residual capacity in domain is zero, such as when the capacity of the basic storage region 5G of user equipment is stored full, service root is obtained Determine whether to distribute dynamic storage zone for user equipment according to the pre-set storage rule of user, as the screen of user equipment is recorded The acquisition rule of system is screen recording 10 minutes, currently the screen recording of complete user equipment 8 minutes, the reality of user device screen Border recording time is also less than the recording time of 10 minutes obtained defined in rule, when basic storage region is held there is no remaining During amount, the dynamic storage zone that service distributes 300M for the screen recording of user equipment again is obtained so that user equipment can be by According to the screen recording obtained when rule completes user equipment operation.The application, when pending application basic storage region it is surplus When covolume amount is zero, it can also be judged by the operating status to user equipment, it is determined whether distributed for pending application Dynamic storage zone.Such as when the screen recording data of user equipment have reached 5G, but the storage sky of equipment operation only residue 200M Between, it can not be that user equipment continues to distribute dynamic storage zone, therefore, dynamic area will not have been distributed for pending application again Domain.Or when the screen recording data of user equipment have reached 5G, but equipment operation there remains the memory space of 20G, user equipment There is sufficient memory space to distribute dynamic storage zone for pending application, it is again the screen recording of user equipment point to obtain service Dynamic storage zone with 800M, user equipment continue the recording of screen data.
Preferably, it is further included before setting dynamic storage zone in a user device:Determine the remaining storage of user equipment Capacity is more than expanded threshold value.In the application, before setting dynamic storage zone in a user device, need to need dynamic area The expanded threshold value and the remaining memory capacity of user equipment to be used is compared, such as when it is 2G to need expanded threshold value, user The remaining memory capacity of equipment is 10G, therefore can set dynamic storage zone.Or when it is 2G to need expanded threshold value, user The remaining memory capacity of equipment is 1G, therefore can not set dynamic storage zone.
Preferably, it obtains service and dynamic storage zone for operation data is determined according to the storage rule of dynamic memory, And dynamic storage zone is initialized.Preferably, dynamic storage zone is initialized and basic memory capacity When using up, obtaining service will be in acquired new operation data storage to dynamic storage zone.In the application, service root is obtained It determines to record the dynamic storage zone for shielding data for storage device according to dynamic memory rule, dynamic storage zone is used for when basis is deposited Storage area domain storage data quantity has expired, then when continuing screen recording to user equipment, the data of screen recording is stored in dynamic In state storage region, the application can also in advance initialize dynamic storage zone, such as by the capacity of dynamic storage zone It is determined as 1G.
Preferably, in step 504:The remaining memory capacity of basic storage region is monitored in real time, when residue stores When capacity is less than threshold value, storage warming-up exercise associated with dynamic memory is carried out, and when basis storage according to storage rule Dynamic memory is carried out according to storage rule when capacity is used up.In the application, the remaining memory capacity of basic storage region is carried out Monitoring in real time, when the residual capacity of the basic storage region of user equipment is less than threshold value, such as when the basis storage of user equipment The residual capacity of the capacity of region 5G be less than threshold value when, obtain the pre-set storage rule of service based on subscriber determine whether for User equipment distributes dynamic storage zone, such as the screen recording 10 minutes of user equipment, has currently completed the screen of user equipment It records 8 minutes, the practical recording time of user equipment is also less than the recording time of 10 minutes defined, when basic storage region When residual capacity is less than threshold value, the dynamic storage zone that service distributes 300M for user equipment again is obtained so that user equipment energy It is enough to complete screen recording according to storage rule.The application, when the residual capacity of the basic storage region of pending application is less than threshold During value, it can also be judged by the operating status to user equipment, it is determined whether distribute dynamic area for user equipment Domain.Such as when the screen recording data of user equipment have reached 5G, but the memory space of equipment operation only residue 800M, can not be User equipment continues to distribute dynamic storage zone, therefore, will not distribute dynamic storage zone for pending application again.Or work as user The screen recording data of equipment have reached 5G, but equipment operation there remains the memory space of 20G, and user equipment has sufficient storage Dynamic storage zone is distributed in space for the screen recording of user equipment, and the dynamic that the service that obtains distributes 800M for user equipment again is deposited Storage area domain, user equipment continue the recording of screen data.
Preferably, when the residual capacity of dynamic storage zone is zero, obtaining service will be associated with user equipment new Operation data stored with coverage mode in basic storage region.In the application, when the dynamic storage zone of user equipment Residual capacity is zero, when the dynamic storage zone of distribution is filled with such as the screen recording data of user equipment, is such as recorded before The screen data for being stored in basic storage region compare the screen data that is stored in dynamic storage zone recorded below Importance is low, when dynamic storage zone has been filled with and needing to continue screen recording, obtains service by user equipment phase The screen that associated new screen recording data storage is newly recorded to basic storage region, the data that basic storage region stores Data are covered.
Preferably, when the residual capacity of dynamic storage zone is zero, service is obtained by new fortune associated with user Row data carry out cover type storage in dynamic storage zone.In the application, when the residue of the dynamic storage zone of user equipment Capacity is zero, when the dynamic storage zone of distribution is filled with such as the screen recording data of user equipment, the guarantor of recording as before The screen data of existence foundation storage region is important compared to the screen data for being stored in dynamic storage zone recorded below Property it is high, when dynamic storage zone has been filled with and needing to continue screen recording, user equipment is associated by the service of acquisition New screen recording data storage to dynamic storage zone, screen data that the data of dynamic storage zone storage are newly recorded It is covered.
Preferably, it is further included before setting dynamic storage zone in a user device:To user equipment this operation End time is predicted, when determining from current time to operation number acquired in the period of this end time run According to size be less than or equal to expanded threshold value when, determine distribution dynamic storage zone.Preferably, wherein according to user equipment The historical statistical data of end of run time come determine user equipment this operation end time.In the application, to user The end of run time of equipment is counted, and log history statistical data, in user equipment at runtime, according to historical statistics Data come determine user equipment this operation end time.As the user equipment historical statistical data record each run time is 22:00 to 22:30, by historical statistical data, the run time that can predict user equipment is 22:00 to 22:30 minutes of 30. The application from current time to the size of operation data acquired in the period of this end time run to commenting Estimate, if current time is 22:25,22 from current time to end time:During 30 period of 5 minutes, the operation number of acquisition According to size be about 700M, 700M sizes and equipment can be extended to the maximum value of capacity, i.e. expanded threshold value is compared, such as expansion Exhibition threshold value is 2G, and user equipment operates in the capacity for the 700M that screen recording needs are carried out in 5 minutes of estimated end, small In the capacity of expanded threshold value 2G, it is determined as the screen recording distribution dynamic storage zone of user equipment.Or when such as expanded threshold value is During 500M, user equipment operates in the capacity for the 700M that screen recording needs are carried out in 5 minutes of estimated end, is more than The capacity of expanded threshold value 500M, the storage that the capacity that equipment can extend can not distribute screen recording data for user equipment again are empty Between, determine can not to be that user equipment distributes dynamic storage zone.
Preferably, the application further includes acquisition and services the relevant acquisition rule of determining and user equipment, and is based on acquisition Rule obtains the operation data of user equipment.Preferably, it is determined and the relevant acquisition rule of user equipment wherein obtaining service Including:The service of acquisition, which is read, pre-set to be obtained regular configuration file and is determined and user according to regular configuration file is obtained It is device-dependent to obtain rule.Preferably, operation data is the screen video data for the user equipment recorded, and obtains rule Then include at least one of the following contents:Time span, capacity limit, frame per second and bit rate.In the application, user equipment screen The acquisition rule that curtain is recorded, as the acquisition rule of the screen video data recording of user equipment is:Time span is 30 minutes, is held Amount is limited to 5G, frame per second:16 (fps), bit rate 360 (bps) or including the relevant rule of other screen recordings.
Preferably, it is determining with after the relevant acquisition rule of user equipment, further including acquisition service and expiring in the predetermined time Afterwards the operation data of user equipment is obtained based on rule is obtained.In the application, after the acquisition rule of user equipment is determined, obtain After taking service and can also expiring in the predetermined time operation data of user equipment is obtained according to rule is obtained.I.e. determine it is handy After the acquisition rule of family equipment, after user equipment run time reaches 30 minutes phases predetermined time, the service of acquisition starts to user Equipment carries out screen recording.Wherein, phase predetermined time is presets, and can be 1 second, 2 seconds, 5 seconds, 10 seconds or other are scheduled Time.
Preferably, user equipment according to user's input come set or change dynamic configuration file or server according to The operating statistic data of family equipment set or change dynamic configuration file.Preferably the application further includes, and obtains service basis Dynamic configuration file to each segmentation in multiple segmentations of operation data using identical or different frame per second and/or bit rate into Row segmentation is recorded, and each segmentation basic unit of storage corresponding with multiple basic units of storage is associated.In the application, User equipment sets or changes the operating statistic of dynamic configuration file or server according to user equipment according to user's input Data set or change dynamic configuration file.In the application, the operation data that pending application obtains is carried out for convenience Processing by the way of fragmented storage, is placed the data in multiple basic units of storage after segmentation.Such as the basis of 1G is deposited Storage area domain is divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, in every section of corresponding basic unit of storage The frame per second and bit rate of screen recording can be identical or different, and establish each segmentation and corresponding base The incidence relation of this storage unit.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage When the content of partition running data in unit is the data unrelated with the operation of user equipment, partition running data are deleted.This In application, the operation data of acquisition is identified by obtaining service, i.e. the screen recording number to user equipment in the application According to content be identified, when finding in basic unit of storage, screen recording data and the user equipment operation of the first segmentation Data are unrelated, are such as ad data, then delete the screen recording data of the first segmentation.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage When the content of partition running data in unit can be converted to frame data relevant with user equipment, partition running number is deleted According to.In the application, by obtain service the operation data of acquisition is identified, such as to the screen recording data of user equipment into Row content recognition, if it is determined that the screen recording number of the basic unit of storage storage of specific basic unit of storage, such as the 5th segmentation According to the user equipment record screen number of screen recording data when not carrying out any operation for user equipment, i.e. basic unit of storage storage According to, frame data can be converted to, therefore, the screen recording data of the basic unit of storage storage of the 5th segmentation of deletion.Yin Ben In application, user equipment booting begins to carry out screen recording, therefore, when user equipment does not carry out any operation, i.e. screen When not changing substantially, this part data recording is deleted.
Preferably, it obtains service and data compression is carried out to the content stored in being arbitrarily segmented in multiple segmentations.In the application, Data compression is carried out to the content stored in any one segmentation in multiple segmentations by obtaining service, such as records user equipment The record screen data that screen data are stored in the second segmentation carry out compression processing, to save the memory space of data.
Preferably, it is further included before setting dynamic storage zone in a user device:To user equipment this operation End time is predicted, when determining from current time to operation number acquired in the period of this end time run According to size be more than expanded threshold value and during less than acceptable threshold, be determined as user equipment distribution and dynamic storage zone and promote It obtains service and operation data is obtained according to the frame per second and/or bit rate of reduction.In the application, such as user equipment is run and is predicted The run time of also 15 minutes, the capacity of the interior 2.5G for carrying out screen recording needs of 5 minutes, equipment can extend capacity Maximum value, i.e., be compared with expanded threshold value, if expanded threshold value is 2G, equipment residue memory capacity, i.e., minimum acceptable threshold For 5G, the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, the expanded threshold value more than 2G and less than equipment Minimum acceptable threshold 5G, the application deposit region, also, to the screen of user equipment for the screen recording distribution dynamic of user equipment The acquisition service of recording reduces the frame per second recorded and/or bit rate, and frame per second such as is adjusted to 18 (fps), bit rate from 25 (fps) 320 (bps) are adjusted to from 400 (bps), to reduce the data of the screen recording of user equipment.
Preferably, the display area for being additionally included in user equipment creates suspension display window, and suspension display window is used to broadcast Put the operation data acquired by obtaining service.In the application, the display that suspends is created by display area in a user device Window will obtain the operation data of service acquisition, i.e. the data of screen recording are shown in suspended window, are realized screen Enroll the synchronous displaying of data.
Fig. 6 is to obtain the schematic diagram of operation data based on memory capacity according to the preferred embodiment for the present invention.Such as Fig. 6 It is shown, work as user equipment, after the completion of such as mobile phone or automobile data recorder starting up and system service load, the application opens automatically It is dynamic to obtain service, obtain the screen recording data of mobile phone or automobile data recorder.The application is deposited the screen recording data of mobile phone Storage area is divided into basic storage region and dynamic storage zone, wherein, the basis of basic storage region memory mobile phone screen recording is deposited Capacity is stored up, mobile phone screen data is recorded to limit as and wants 30 minutes, corresponding 5G memory capacity can be stored within 30 minutes Basic storage region.As after 30 minutes, needed to extend the recording to mobile phone screen in 5 minutes, the data gene basis for extending recording is deposited Storage area domain has been expired, and will distribute dynamic storage zone, for storing the recording of mobile phone screen for extending 5 minutes.The application In, it, may be without any operation before mobile phone power-on, recording mobile phone screen data is not of practical significance at this time.Therefore, Record screen carries out after could be provided as the starting-up delay time, that is, the recording of the screen of mobile phone is carried out after postponing 1 minute or 2 minutes, with Record as possible it is necessary to screen data, save the resource of system.
Fig. 7 is shows according to the preferred embodiment for the present invention based on memory capacity to obtain the structure of the system of operation data It is intended to.Embodiment of the present invention provide it is a kind of the system of operation data is obtained based on memory capacity, utilize initialization unit The loading completion of startup and the system service of user equipment is responded, runs the pending application for obtaining user equipment Operation data acquisition service.Embodiment of the present invention parses pre-set storage information using resolution unit, The capacity of storage information is obtained, determines basic storage region for storage running data and that there is basic memory capacity. The unit of memory allocation of embodiment of the present invention determines to carry out operation data in basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during fragmented storage, and further determine that when basic memory block The storage rule of dynamic memory is carried out when the basic memory capacity in domain is used up.Embodiment of the present invention passes through storage control unit pair The remaining memory capacity of basic storage region is monitored in real time, when monitoring that remaining memory capacity is less than threshold value, according to depositing Storage rule carries out associated with dynamic memory storage warming-up exercise, and when basis memory capacity is used up carries out according to storage rule Dynamic memory.Embodiments of the present invention, basic unit of storage can be distributed, and work as base by the operation data of acquisition by realizing When this storage unit capacity is used up, operation data can be subjected to dynamic memory according to storage rule.In the application, user equipment Can be mobile phone, IPD, automobile data recorder etc..As shown in fig. 7, system 700 includes:
Initialization unit 701, the loading in response to startup and the system service of user equipment are completed, and operation is used for obtaining The acquisition service of the operation data of family equipment.Preferably, initialization unit 701 is additionally operable to:In response to the startup of user equipment, draw It leads chip functions and reads bootstrap and will be in boot program loads to memory from read-only memory.Preferably, initialization is single Member 701 is additionally operable to:After by boot program loads to random access memory, bootstrap is to running the required heap of kernel program Stack and hardware device are initialized.Preferably, initialization unit 701 is additionally operable to:After initialization, kernel program is run, it is interior Core program setting caching, setting protected storage, setting list of schedules and load driver, and loading system service.This In application, when power supply is pressed, chip guide function start to read since predefined read only memory ROM bootstrap and In bootload program to memory, then perform.After bootstrap is loaded into random access memory, bootstrap is to operation The storehouse and hardware device that kernel program needs are initialized, and after initialization, are run kernel program, are passed through kernel program Setting caching, setting protected storage, setting list of schedules and load driver and loading system service.It is right in the application The loading completion of startup and the system service of user equipment is responded, and is run and is obtained for obtaining the operation data of user equipment Take service.In the application, after user equipment such as mobile phone open, the acquisition service for the data that bring into operation, the application with to mobile phone into Row screen recording is illustrated, and after mobile phone starts and has loaded the function of system service, is serviced by obtaining, opponent The screen of machine is recorded.
Resolution unit 702, to it is pre-set storage information parse, with determine it is for storage running data and Basic storage region with basic memory capacity.Preferably, system further includes setting unit:User equipment is inputted according to user To pre-set storage information and store information in user equipment memory storage.Preferably, storage information includes:Basic memory block The initial address in domain and basic memory capacity.In the application, storage information is pre-set by user's input, stores information The initial address and basic memory capacity stored including data after user equipment progress screen recording, such as depositing data storage Storage information is set as:Video memory space, 5G capacity.The application determines to deposit according to the storage information after parsing for user The capacity for storing up the basic storage region of screen recording data is 5G.
Preferably, unit of memory allocation 703 is additionally operable to:When the basic memory capacity of basic storage region is used up, with Dynamic storage zone is set in the equipment of family, and wherein dynamic storage zone is for storage additional operation number associated with user equipment According to.In the application, when the residual capacity of the basic storage region of user equipment is zero, such as work as the basic memory block of user equipment When the capacity of domain 5G is stored full, obtains the pre-set storage rule of service based on subscriber and determine whether for user equipment point It is screen recording 10 minutes with dynamic storage zone, such as the acquisition rule of the screen recording of user equipment, currently complete user sets Standby screen recording 8 minutes, the practical recording time of user device screen are also less than the record of 10 minutes obtained defined in rule Time processed, when basic storage region is when being not present residual capacity, it is again the distribution of the screen recording of user equipment to obtain service The dynamic storage zone of 300M so that screen recording when user equipment can complete user equipment operation according to rule is obtained. The application when the residual capacity of the basic storage region of pending application is zero, can also pass through the operation to user equipment State is judged, it is determined whether distributes dynamic storage zone for pending application.Such as when the screen recording data of user equipment 5G has been reached, but equipment runs the memory space of only residue 200M, can not be that user equipment continue to distribute dynamic storage zone, Therefore, dynamic storage zone will not be distributed for pending application again.Or when the screen recording data of user equipment have reached 5G, still Equipment runs the memory space that there remains 20G, and user equipment has sufficient memory space to distribute dynamic memory for pending application Region, obtains the dynamic storage zone that service distributes 800M for the screen recording of user equipment again, and user equipment continues to shield The recording of curtain data.
Preferably, unit of memory allocation 703 is additionally operable to:Before setting dynamic storage zone in a user device, determine to use The remaining memory capacity of family equipment is more than expanded threshold value.In the application, before dynamic storage zone is set in a user device, need The remaining memory capacity for the expanded threshold value and user equipment used to be needed to be compared to dynamic area, such as working as needs to extend When threshold value is 2G, the remaining memory capacity of user equipment is 10G, therefore can set dynamic storage zone.Or it ought need to extend When threshold value is 2G, the remaining memory capacity of user equipment is 1G, therefore can not set dynamic storage zone.
Unit of memory allocation 703 determines to be segmented operation data in basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during storage, and determine to deposit when the basis of basic storage region Storage capacity carries out the storage rule of dynamic memory when using up.In the application, for convenience to the operation number of pending application acquisition According to being handled, by the way of fragmented storage, by the multiple basic units of storage of the data storage of screen recording after segmentation In.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, every section of correspondence Basic unit of storage in screen recording frame per second and bit rate can be identical or different, and establish every A incidence relation being segmented with corresponding basic unit of storage.Preferably, when the residue of the basic storage region of pending application When capacity is zero, obtains the pre-set storage rule of service based on subscriber or obtain the operating status of service based on subscriber equipment To determine whether to distribute dynamic storage zone for pending application.
Preferably, unit of memory allocation is additionally operable to:The service of acquisition determines to run according to the storage rule of dynamic memory The dynamic storage zone of data, and dynamic storage zone is initialized.Preferably, dynamic storage zone is carried out initial Change and when basic memory capacity is used up, in the new operation data storage to dynamic storage zone that the service of acquisition will be acquired. In the application, the service that obtains determines to record the dynamic storage zone of screen data, dynamic for storage device according to dynamic memory rule When storage region when basic storage region storage data quantity for having expired, then having continued screen recording to user equipment, it will shield The data that curtain is recorded are stored in dynamic storage zone, and the application can also in advance initialize dynamic storage zone, such as The capacity of dynamic storage zone is determined as 1G.
Storage control unit 704 monitors the remaining memory capacity of basic storage region in real time, when residue storage is held When amount is less than threshold value, storage warming-up exercise associated with dynamic memory is carried out, and storage is held when basis according to storage rule Dynamic memory is carried out according to storage rule when amount is used up.In the application, the remaining memory capacity of basic storage region is carried out real When monitor, when user equipment basic storage region residual capacity be less than threshold value when, such as work as user equipment basic memory block When the residual capacity of the capacity of domain 5G is less than threshold value, obtains the pre-set storage rule of service based on subscriber and determine whether Dynamic storage zone is distributed for user equipment, such as the screen recording 10 minutes of user equipment, has currently completed the screen of user equipment Curtain is recorded 8 minutes, and the practical recording time of user equipment is also less than the recording time of 10 minutes defined, when basic storage region When residual capacity is less than threshold value, the dynamic storage zone that service distributes 300M for user equipment again is obtained so that user equipment energy It is enough to complete screen recording according to storage rule.The application, when the residual capacity of the basic storage region of pending application is less than threshold During value, it can also be judged by the operating status to user equipment, it is determined whether distribute dynamic area for user equipment Domain.Such as when the screen recording data of user equipment have reached 5G, but the memory space of equipment operation only residue 800M, can not Continue to distribute dynamic storage zone for user equipment, therefore, dynamic storage zone will not be distributed for pending application again.Or work as and use The screen recording data of family equipment have reached 5G, but equipment operation there remains the memory space of 20G, and user equipment has sufficient deposit The screen recording that space is stored up as user equipment distributes dynamic storage zone, obtains the dynamic that service distributes 800M for user equipment again Storage region, user equipment continue the recording of screen data.
Preferably, storage control unit 704 is additionally operable to:When the residual capacity of dynamic storage zone is zero, service is obtained New operation data associated with user equipment is stored with coverage mode into basic storage region.In the application, when with The residual capacity of the dynamic storage zone of family equipment is zero, if the screen recording data of user equipment are by the dynamic memory of distribution When region is filled with, the screen data for being stored in basic storage region such as recorded before is stored in dynamic compared to what is recorded below The importance of the screen data of storage region is low, when dynamic storage zone has been filled with and needing to continue screen recording, Service is obtained by the associated new screen recording data storage of user equipment to basic storage region, basic storage region storage The screen data newly recorded of data cover.
Preferably, storage control unit 704 is additionally operable to:When the residual capacity of dynamic storage zone is zero, service is obtained New operation data associated with user is subjected to cover type storage in dynamic storage zone.In the application, when user sets The residual capacity of standby dynamic storage zone is zero, if the screen recording data of user equipment are by the dynamic storage zone of distribution When being filled with, the screen data for being stored in basic storage region such as recorded before is stored in dynamic memory compared to what is recorded below The importance of the screen data in region is high, when dynamic storage zone has been filled with and needing to continue screen recording, obtains The number that service stores the associated new screen recording data storage of user equipment to dynamic storage zone, dynamic storage zone It is covered according to the screen data newly recorded.
Preferably, storage control unit 704 is additionally operable to:Before setting dynamic storage zone in a user device, to user The end time of this operation of equipment is predicted, when determining from current time to the period of this end time run When the size of interior acquired operation data is less than or equal to expanded threshold value, distribution dynamic storage zone is determined.Preferably, wherein This end time run of user equipment is determined according to the historical statistical data of the end of run time to user equipment. In the application, the end of run time of user equipment is counted, and log history statistical data, run in user equipment When, according to historical statistical data come determine user equipment this run end time.As user equipment historical statistical data is remembered It is 22 to record each run time:00 to 22:30, by historical statistical data, the run time that can predict user equipment is 22:00 To 22:30 minutes of 30.The application is to from current time to operation acquired in the period of this end time run The size of data is assessed, if current time is 22:25,22 from current time to end time:30 period of 5 minutes When, the size of the operation data of acquisition is about 700M, and 700M sizes and equipment can be extended to the maximum value of capacity, that is, extend threshold Value is compared, and if expanded threshold value is 2G, user equipment operates in progress screen recording in 5 minutes of estimated end and needs The capacity of the 700M wanted less than the capacity of expanded threshold value 2G, is determined as the screen recording distribution dynamic storage zone of user equipment. Or when such as expanded threshold value is 500M, user equipment operates in 5 minutes of estimated end and carries out screen recording needs The capacity of 700M, more than the capacity of expanded threshold value 500M, the capacity that equipment can extend can not distribute screen for user equipment again The memory space of data recording determines can not to be that user equipment distributes dynamic storage zone.
Preferably, acquiring unit is further included:It obtains and services the relevant acquisition rule of determining and user equipment, and be based on obtaining Rule is taken to obtain the operation data of user equipment.Preferably, it determines to advise with relevant obtain of user equipment wherein obtaining service Then include:The service of acquisition reads the regular configuration file of pre-set acquisition and determines and use according to regular configuration file is obtained Family is device-dependent to obtain rule.Preferably, operation data is the screen video data for the user equipment recorded, and is obtained Rule includes at least one of the following contents:Time span, capacity limit, frame per second and bit rate.In the application, user equipment The acquisition rule of screen recording, as the acquisition rule of the screen video data recording of user equipment is:Time span is 30 minutes, Capacity limit is 5G, frame per second:16 (fps), bit rate 360 (bps) or including the relevant rule of other screen recordings.
Preferably, acquiring unit is additionally operable to:It is determining with after the relevant acquisition rule of user equipment, further including acquisition service After expiring in the predetermined time operation data of user equipment is obtained based on rule is obtained.In the application, user equipment is being determined Acquisition rule after, the service of acquisition regular obtains the operation number of user equipment according to obtaining after can also expiring in the predetermined time According to.I.e. after the acquisition rule of user equipment is determined, after user equipment run time reaches 30 minutes phases predetermined time, obtain Service starts to carry out screen recording to user equipment.Wherein, phase predetermined time is presets, and can be 1 second, 2 seconds, 5 seconds, and 10 Second or other scheduled times.
Preferably, unit of memory allocation is additionally operable to:User equipment sets or changes dynamic configuration text according to user's input Part or server set or change dynamic configuration file according to the operating statistic data of user equipment.Preferably the application, It further includes, the service that obtains uses each segmentation in multiple segmentations of operation data according to dynamic configuration file identical or different Frame per second and/or bit rate carry out segmentation recording, and be each segmented and corresponding in multiple basic units of storage store substantially Unit is associated.In the application, user equipment sets or changes dynamic configuration file or server root according to user's input Dynamic configuration file is set or changes according to the operating statistic data of user equipment.In the application, answer for convenience pending It is handled with the operation data of acquisition, by the way of fragmented storage, places the data in multiple basic storages after segmentation In unit.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, every section The frame per second of screen recording and bit rate can be identical or different in corresponding basic unit of storage, and build Vertical each incidence relation being segmented with corresponding basic unit of storage.
Preferably, acquiring unit is further included:The service of acquisition can carry out content recognition to acquired operation data, when true When the content of partition running data in fixed specific basic unit of storage is the data unrelated with the operation of user equipment, deletes and divide Section operation data.In the application, the operation data of acquisition is identified by obtaining service, i.e., to user equipment in the application The contents of screen recording data be identified, when finding in basic unit of storage, the screen recording data of the first segmentation are with using The data of family equipment operation are unrelated, are such as ad data, then delete the screen recording data of the first segmentation.
Preferably, acquiring unit is further included:The service of acquisition can carry out content recognition to acquired operation data, when true When the content of partition running data in fixed specific basic unit of storage can be converted to frame data relevant with user equipment, Delete partition running data.In the application, the operation data of acquisition is identified by obtaining service, as to user equipment Screen recording data carry out content recognition, if it is determined that specific basic unit of storage, the basic unit of storage of such as the 5th segmentation are deposited The screen recording data of storage do not carry out screen recording data during any operation for user equipment, i.e. basic unit of storage stores User equipment record screen data, can be converted to frame data, therefore, delete the screen of the basic unit of storage storage of the 5th segmentation Data recording.Because in the application, user equipment booting begins to carry out screen recording, therefore, is not carried out in user equipment any During operation, i.e., when screen does not change substantially, delete this part data recording.
Preferably, acquiring unit is further included:Service is obtained to the content that stores in being arbitrarily segmented in multiple segmentations into line number According to compression.In the application, data pressure is carried out to the content stored in any one segmentation in multiple segmentations by obtaining service The record screen data that user equipment record screen data are stored in the second segmentation are such as carried out compression processing, to save depositing for data by contracting Store up space.
Preferably, acquiring unit is additionally operable to:Before setting dynamic storage zone in a user device, to the sheet of user equipment The end time of secondary operation is predicted, when determining from current time to acquired in the period of this end time run Operation data size be more than expanded threshold value and less than acceptable threshold when, be determined as user equipment distribution dynamic storage zone And promote to obtain to service and operation data is obtained according to the frame per second and/or bit rate of reduction.In the application, such as to user equipment Operation prediction also has the run time of 15 minutes, and the capacity of the 2.5G of screen recording needs, equipment institute energy are carried out in 5 minutes The maximum value of capacity is extended, i.e., is compared with expanded threshold value, if expanded threshold value is 2G, equipment residue memory capacity is that is, minimum Acceptable threshold is 5G, and the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, the expanded threshold value more than 2G and is less than The minimum acceptable threshold 5G of equipment, the application deposit region, also, to user equipment for the screen recording distribution dynamic of user equipment Screen recording acquisition service reduce record frame per second and/or bit rate, frame per second is such as adjusted to 18 (fps) from 25 (fps)
, bit rate is adjusted to 320 (bps) from 400 (bps), to reduce the data of the screen recording of user equipment.
Preferably, system further includes broadcast unit:Suspension display window is created in the display area of user equipment, is suspended aobvious Show window for play by obtain service acquired in operation data.In the application, pass through display area in a user device It creating suspension display window, the operation data of service acquisition will be obtained, i.e. the data of screen recording are shown in suspended window, It realizes synchronous the showing of screen admission data.
Based on another embodiment of the present invention, a kind of mobile terminal is provided, is based on as described above including or for perform Memory capacity obtains the system of operation data.
Fig. 8 is the stream that the method for customization operation data is obtained according to fiducial time according to the preferred embodiment for the present invention Cheng Tu.Embodiment of the present invention provides a kind of method that customization operation data is obtained according to fiducial time, and the application is by connecing The trigger request for the acquisition service narrowed to being used to obtain operation data, parses pre-set storage information, according to To storing the analysis result of information, the basic storage region for storage running data is determined.The application is by storing basis The residual capacity in region is judged, when the residual capacity in basic storage region is more than pre-set threshold value, represents base Plinth storage region also has appropriate memory space, therefore starts the service of acquisition, and promotes to obtain to service and carry out running background.This In application, determined and current application is relevant obtains rule, and obtain application based on rule is obtained by obtaining service Basic operation data.It is fixed to obtain that the application can generate the time section including fiducial time in the display area of user equipment The suspension control of operation data processed, by be directed to suspension control input control generate coefficient of dynamics, wherein coefficient of dynamics for pair Time section is adjusted to generate the time section being adjusted, and the application is transported according to the time section being adjusted from basis Selection customizes the data content of operation data for composition in row data.The pending application of the application can be game application, As 360 game or video playing application, audio play application and live streaming application.The application is transported using 360 game as acquisition The application of row data carries out screen recording to 360 game and is illustrated as the operation data obtained at runtime.Such as figure Shown in 8, method 800 is since step 801 place.
Preferably, in step 801:When receiving for for obtaining the trigger request of acquisition service of operation data, Pre-set storage information is parsed, to determine the basic storage region for storage running data.Preferably, user Equipment stores information and in the storage information of user equipment memory storage according to user's input to pre-set.Preferably, it stores Information includes:The initial address of basic storage region and basic memory capacity.In the application, to pre-set storage information It is parsed, the time of screen recording, the frame per second recorded, bit rate is carried out according to application, to the number of screen recording storage information It is parsed according to capacity, such as playing to talk on the journey to west carries out 10 minutes screen recordings, and by frame per second 25 (fps), bit rate is from 380 (bps), it is 1.5G to parse talk on the journey to west game screen and record the capacity needed, therefore, the base of 1.5G is distributed for talk on the journey to west Plinth storage region.In the application, storage information includes the initial address of storage region and preset basic memory capacity.It is preferred that Ground, wherein the type of currently running application includes, game application, video playing application, audio plays application and live streaming should With.The application of the application can be game application, such as 360 game talk on the journey to west;Or video playing application, such as 360 it is fast Video;Audio plays application;Live streaming application, such as 360 Beijing time.
Preferably, the application is further included when the basic memory capacity of basic storage region is used up, and is set in a user device Dynamic storage zone is put, wherein dynamic storage zone is for storage and the associated additional operation information data of currently running application. The application is each using distribution basis storage region and to work as base in the multiple applications for need to carry out the acquisition of operation data When the basic memory capacity of plinth storage region is used up, dynamic storage zone is set in a user device, region use is deposited on wherein basis In storing basic operation data associated with each applying, dynamic storage zone is associated attached with each applying for storage Add operation data.In playing such as talk on the journey to west, user needs to record 8 minutes under normal circumstances, therefore is talk on the journey to west game point Basic storage region with 1G capacity, in addition, it is uncertain due to running game, it there may come a time when that talk on the journey to west game can be extended Screen recording, such as will continue to record again 2 minutes, therefore, the dynamic area of 300M capacity matched for talk on the journey to west game point Domain.Or 360 fast Video Applications, under normal circumstances user need to record 15 minutes, therefore be 360 fast video distribution 1.5G capacity Basic storage region there may come a time when that the screen recording of 360 fast videos can be extended, can such as be further continued for recording 3 minutes, be 360 therefore The dynamic storage zone of fast video distribution 400M capacity.Wherein, the capacity of dynamic storage zone is capable of the reality of pending application Screen recording demand is adjusted, and demand is obtained to meet the additional operation information data of pending application.The application apply into During screen recording during row operation, the data first recorded are stored in basic storage region, when basic storage region is filled with, then will The data deposit dynamic storage zone recorded below.
Preferably, it is further included before setting dynamic storage zone in a user device:Determine the remaining storage of user equipment Capacity is more than expanded threshold value.In the application, such as there are the run time of 15 minutes, 5 minutes to talk on the journey to west game prediction The capacity of the interior 2.5G for carrying out screen recording needs, equipment can extend the maximum value of capacity, i.e., is compared with expanded threshold value, If expanded threshold value is 2.5G, equipment residue memory capacity, i.e., minimum acceptable threshold is 5G, therefore the expanded threshold value of 2G and is less than The remaining memory capacity 5G of equipment, the application deposit region, also, to big talk for the screen recording distribution dynamic of talk on the journey to west game The acquisition service of the screen recording of Journey to the West game reduces the frame per second recorded and/or bit rate, is such as adjusted to frame per second from 25 (fps) 18 (fps), bit rate are adjusted to 320 (bps) from 400 (bps), to reduce the data of the screen recording of talk on the journey to west game.
Preferably, when the residual capacity of dynamic storage zone is zero, the service of acquisition will be related to currently running application The new operation data of connection is stored with coverage mode into basic storage region.In the application, when the dynamic storage zone of application Residual capacity be zero, as talk on the journey to west play screen recording data the dynamic storage zone of distribution is filled with when, such as it The screen data for being stored in basic storage region of preceding recording compares the screen for being stored in dynamic storage zone recorded below The importance of data is low, and when dynamic storage zone has been filled with and needing to continue screen recording, the service of acquisition will big talk For Journey to the West using associated new screen recording data storage to basic storage region, the data that basic storage region stores are new The screen data of recording is covered.
Preferably, when the residual capacity of dynamic storage zone is zero, the service of acquisition will be with currently running association New operation data cover type storage is carried out in dynamic storage zone.In the application, when the dynamic memory of pending application The residual capacity in region is zero, when the dynamic storage zone of distribution is filled with such as the screen recording data of talk on the journey to west game, The screen data for being stored in basic storage region recorded as before is stored in dynamic storage zone compared to what is recorded below The importance of screen data is high, and when dynamic storage zone has been filled with and needing to continue screen recording, the service of acquisition will Talk on the journey to west is using associated new screen recording data storage to dynamic storage zone, the data of dynamic storage zone storage The screen data newly recorded covers.
Preferably, it is further included before setting dynamic storage zone in a user device:To this of currently running application The end time of operation predicted, when determining from current time to acquired in the period of this end time run When the size of operation data is less than or equal to expanded threshold value, distribution dynamic storage zone is determined.Preferably, wherein according to current The historical statistical data of the end of run time of the application of operation come determine currently running application this operation at the end of Between.Preferably, wherein determining the knot of this operation of application according to the historical statistical data of the end of run time to application The beam time.In the application, the end of run time of application is counted, and log history statistical data, in pending application At runtime, the end time using this operation is determined according to historical statistical data.If talk on the journey to west is played, historical statistics The data record each run time is 22:00 to 22:30, by historical statistical data, it can predict the operation of talk on the journey to west game Time is 22:00 to 22:30 minutes of 30.The application is to from current time to institute in the period of this end time run The size of the operation data of acquisition is assessed, if current time is 22:25,22 from current time to end time:5 points of 30 During the period of clock, the size of the operation data of acquisition is about 700M, and 700M sizes and equipment can be extended to the maximum of capacity Value, i.e., expanded threshold value is compared, and if expanded threshold value is 2G, talk on the journey to west game running is in estimated 5 minutes terminated The capacity of the 700M of screen recording needs is carried out, less than the capacity of expanded threshold value 2G, is determined as talk on the journey to west game point with dynamic Storage region.Or when such as expanded threshold value is 500M, talk on the journey to west game running is shielded in estimated 5 minutes terminated Curtain records the capacity of the 700M needed, and more than the capacity of expanded threshold value 500M, the capacity that equipment can extend can not be again big talk Journey to the West game point matches the memory space of screen recording data, determines can not to be that talk on the journey to west game point matches dynamic storage zone.
Preferably, it is further included before setting dynamic storage zone in a user device:To this of currently running application The end time of operation predicted, when determining from current time to acquired in the period of this end time run When the size of operation data is more than expanded threshold value and is less than acceptable threshold, it is determined as user equipment distribution dynamic storage zone simultaneously And promote to obtain to service and operation data is obtained according to the frame per second and/or bit rate of reduction.In the application, such as talk on the journey to west is swum Play prediction also has the run time of 15 minutes, and the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, and equipment can expand The maximum value of capacity is opened up, i.e., is compared with expanded threshold value, if expanded threshold value is 2G, equipment residue memory capacity is that is, minimum to hold Perhaps threshold value is 5G, and the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, the expanded threshold value more than 2G and less than setting Standby minimum acceptable threshold 5G, the application deposit region, also, to big talk west for the screen recording distribution dynamic of talk on the journey to west game The acquisition service of the screen recording of game reduces the frame per second recorded and/or bit rate, is such as adjusted to frame per second from 25 (fps) 18 (fps), bit rate are adjusted to 320 (bps) from 400 (bps), to reduce the data of the screen recording of talk on the journey to west game.
Preferably, method is further included determines to be segmented operation data in basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during storage.Preferably, application further includes, and obtains service pair Each segmentation in multiple segmentations of operation data carries out segmentation recording using identical or different frame per second and/or bit rate, and And each segmentation basic unit of storage corresponding with multiple basic units of storage is associated.It is corresponding for convenience in the application It is handled with the operation data of acquisition, by the way of fragmented storage, places the data in multiple basic storages after segmentation In unit.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, every section The frame per second of screen recording and bit rate can be identical or different in corresponding basic unit of storage, and build Vertical each incidence relation being segmented with corresponding basic unit of storage.
Preferably, in step 802:In the case where the remaining memory capacity for determining basic storage region is more than threshold value, open Dynamic obtain services and acquisition service is promoted to carry out running background.In the application, in the remaining storage for determining basic storage region When capacity is more than threshold value, equipment can store the screen recording data of acquisition, and the application starts the service of acquisition, and promotes to obtain Service is being run from the background.
Preferably, in step 803:The service of acquisition, which determines, and currently running application is relevant obtains rule, such as code check, ratio Special rate etc., and obtain the basic operation data of application based on rule is obtained.Preferably, wherein acquisition service is determining and current The relevant rule that obtains of the application of operation includes:Service is obtained to carry out rule base according to the application identities of currently running application Retrieval, and determined and the relevant acquisition rule of currently running application according to retrieval result.Preferably, operation data is is recorded The screen video data of the user equipment of system, and obtain rule and include at least one of the following contents:Time span, capacity Limitation, frame per second and bit rate.In the application, the service that obtains determines to obtain rule using relevant according to application identities.As obtained Service is retrieved using application identities in rule base according to the application identities of talk on the journey to west, according to retrieval result determine with The relevant screen video data recording for obtaining rule, being applied such as talk on the journey to west of screen video data recording of talk on the journey to west application Acquisition rule be:Time span is 10 minutes, capacity limit 2G, frame per second:16 (fps), bit rate 360 (bps) or packet Include the relevant rule of other screen recordings.
Preferably, determine with currently running application is relevant obtain rule after, further include acquisition service in pre- timing Between expire after obtain the operation data of currently running application based on obtaining rule.In the application, in the acquisition for determining application After rule, the service of acquisition regular obtains the operation data of pending application according to obtaining after can also expiring in the predetermined time. I.e. after the acquisition rule for determining talk on the journey to west game, after the talk on the journey to west game running time reaches 5 seconds phases predetermined time, obtain Service is taken to start progress screen recording of playing to big talk.Wherein, phase predetermined time is presets, and can be 1 second, 2 seconds, 5 seconds, 10 seconds or other scheduled times.
Preferably, when the state of currently running application is switched to running background from front stage operation, service pause is obtained Obtain operation data.In the application, when the state of application is switched to running background from front stage operation, such as when user is playing big talk When Journey to the West is played, user connects phone, starts the call of a period of time, and talk on the journey to west game at this time can be switched to running background, When talk on the journey to west is played in running background, do not need to carry out screen recording.Therefore, the application automatic pause screen recording, with It avoids recording unwanted screen data, occupies the resource of system.
Preferably, when the state of currently running application is switched to front stage operation from running background, the service of acquisition starts Obtain operation data.In the application, when user disconnects from talking state, talk on the journey to west game is switched to foreground fortune from running background During row, user starts to continue to run with game, needs to carry out screen recording again at this time, and the application, which can realize, to be automatically begun to from rear The talk on the journey to west game that platform operation is switched to front stage operation carries out screen recording.
Preferably, the application further includes, and the service that obtains uses each segmentation in multiple segmentations of operation data identical Or different frame per second and/or bit rate carry out segmentation recording, and are each segmented base corresponding with multiple basic units of storage This storage unit is associated.In the application, the operation data obtained for convenience to application is handled, and is recorded using segmentation Mode, and the data recorded after segmentation are stored in multiple basic units of storage.Such as the basic storage region of 1G is divided into The segmentation of 100M, 100M, 200M, 200M, 200M ..., wherein, the frame of screen recording in every section of corresponding basic unit of storage Rate and bit rate can be identical or different, and establish each segmentation and corresponding basic unit of storage Incidence relation.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage When the content of partition running data in unit is with being run in user equipment using unrelated data, partition running number is deleted According to.In the application, the operation data of acquisition is identified by obtaining service, i.e., the screen played to talk on the journey to west in the application The content of curtain data recording is identified, and when finding in basic unit of storage, the screen recording data and big talk of the first segmentation are western The data for swimming game running are unrelated, are such as ad data, then delete the screen recording data of the first segmentation.
Preferably, obtaining service can be to acquired operation data progress content recognition, when determining specific basic storage When the content of partition running data in unit can be converted to frame data relevant with the application that is run in user equipment, delete Except partition running data.In the application, the operation data of acquisition is identified by obtaining service, is such as played to talk on the journey to west Screen recording data carry out content recognition, if it is determined that specific basic unit of storage, such as the 5th segmentation basic unit of storage The screen recording data of storage are screen recording data when game does not carry out any operation, i.e., basic unit of storage storage is big Journey to the West record screen data are talked about, frame data can be converted to, therefore, delete the screen record of the basic unit of storage storage of the 5th segmentation Data processed.
Preferably, it obtains service and data compression is carried out to the content stored in being arbitrarily segmented in multiple segmentations.In the application, Data compression is carried out to the content stored in any one segmentation in multiple segmentations by obtaining service, such as swims talk on the journey to west The record screen data being stored in the second segmentation of playing carry out compression processing, to save the memory space of data.
Preferably, in step 804:In the display area of user equipment, generation is used for according to the time zone for including fiducial time Section customizes the suspension control of operation data to obtain.Preferably, suspension control can be suspended in the display for the application being currently running The top at interface, and the control that suspends can be presented with the transparency set by user.In the application, benchmark can be passed through The time section of timing definition, to obtain customization operation data during time section.As talk on the journey to west game is at runtime 10:When 00, generation fiducial time is 5 minutes, and it is first 5 minutes of current run time and latter 5 minutes to define time section, i.e., 9: 55 to 10:After 05;The fiducial time of the application generation may be 2 minutes, and the time section of the application can also be defined as working as First 2 minutes and latter 2 minutes of preceding run time;Or the fiducial time of the application generation is 30 seconds, i.e., time section is current fortune First 30 seconds or 30 seconds latter of row time.Time in the application, using the suspension control of device display area, when generation includes benchmark Between time section.
Preferably, wherein servicing the default value of setting fiducial time and the initial value of time section by obtaining, and user The default value of fiducial time and the initial value of time section can be changed.Preferably, coefficient of dynamics is increased time quantum, and Time section is adjusted based on coefficient of dynamics and is included with generating the time section being adjusted:By time section and dynamical system Number sums to generate the time section being adjusted.Preferably, time section is using fiducial time as symmetrical centre or asymmetric The period at center.Preferably, further include suspension control the time section being adjusted is carried out according to the input of user along when Countershaft is moved forward or rearward.In the application, fiducial time and time section could be provided as default value or user according to obtaining The actual demand of screen data is enrolled, the initial value of default value and time section to fiducial time is modified.Such as talk on the journey to west It is 3 minutes to give tacit consent to fiducial time, and time section is first 3 minutes and latter 3 minutes using current run time, and the application utilizes dynamic Time section and coefficient of dynamics are summed to generate the time section being adjusted by state coefficient as increased time quantum.As moved State coefficient is 2 minutes, and the time section of the application is revised as first 5 minutes using current run time and latter 5 minutes.The application In, it is symmetrical period or the period of center of asymmetry fiducial time that time section, which can be,.If fiducial time is 3 points Clock, time section are first 3 minutes and latter 3 minutes using current run time;Or fiducial time is 3 minutes, time section is Using first 4 minutes and latter 2 minutes of current run time.The application can utilize the control that suspends, including left and right dragging or up and down Dragging, makes time section be moved forward or rearward along time shaft.
Preferably, in step 805:Coefficient of dynamics is generated according to the input control for suspension control, based on dynamical system It is several time section to be adjusted to generate the time section being adjusted, it is run according to the time section being adjusted from basis Selection customizes the data content of operation data for composition in data.Preferably, according to the time section being adjusted from basis Selection includes for forming the data content of customization operation data in operation data:By in basic operation data with being adjusted The associated operation data segment of time section forms the data content of customization operation data.In the application, pass through suspension control Input control generate coefficient of dynamics, such as be that talk on the journey to west application obtains operation data to generate coefficient of dynamics be 2 minutes, former base It it is 3 minutes between punctual, the time section after being adjusted is, talk on the journey to west game needs the time section for carrying out screen recording to be First 5 minutes and latter 5 minutes of current run time, the current run time for the operation data that the application plays talk on the journey to west The screen recording data of first 5 minutes and latter 5 minutes, as customization operation data content.Or the application adjusts time section Whole, being adjusted to talk on the journey to west game needs to carry out first 6 minutes and latter 4 points of the time section of screen recording for current run time Clock, first 6 minutes of the current run time for the operation data that the application plays talk on the journey to west and the screen recording number of latter 4 minutes According to as customization operation data content.
Fig. 9 is the schematic diagram by coefficient of dynamics adjustment time section according to the preferred embodiment for the present invention.Big talk west When swimming game running, the basis operation of screen recording of the service 901 in running background, acquisition talk on the journey to west game running is obtained Data, in the application, to save memory space, basic operation data can be stored in basic storage region and dynamic storage zone In, when the screen recording data that basic storage region and dynamic storage zone store have expired, the screen data of rear recording is covered Cover previously stored data recording.Screen recording data before when the current operation of talk on the journey to west game user needs crawl When, the application is by setting fiducial time and time section initial value, such as when it is 5 minutes to set fiducial time, time section For 5 minutes before the current operation of application and 5 minutes after currently running.5 minutes screens before when the application can obtain current operation The acquisition of 5 minutes screen data after when the acquisition of data recording and current operation, that is, the application, which realizes, plays to talk on the journey to west The acquisition of the data content of the customization operation data of screen recording.902 be the suspension control for generating coefficient of dynamics, and the application passes through Suspension control is adjusted, such as the control key of middle triangle, when control key moves to left, coefficient of dynamics is reduced, and when control key moves to right, is moved State coefficient increases.
Figure 10 is the system that customization operation data is obtained according to fiducial time according to the preferred embodiment for the present invention Structure diagram.Embodiment of the present invention provides a kind of system that customization operation data is obtained according to fiducial time, the application By receiving the trigger request for being directed to and being serviced for the acquisition for obtaining operation data, pre-set storage information is solved Analysis according to the analysis result to storing information, determines the basic storage region for storage running data.The startup list of the application Member is judged by the residual capacity to basic storage region, is pre-set when the residual capacity in basic storage region is more than Threshold value when, represent that basic storage region also has appropriate memory space, therefore starts the service of acquisition, and promote to obtain and service Carry out running background.In the application, by obtaining, service is determining and current application is relevant obtains rule, and base to acquiring unit The basic operation data of application is obtained in obtaining rule.The generation unit of the application can give birth in the display area of user equipment The suspension control of customization operation data is obtained into the time section including fiducial time, by being directed to suspension control input control Coefficient of dynamics is generated, wherein coefficient of dynamics is used to that time section to be adjusted to generate the time section being adjusted, this Shen The data content for forming customization operation data is please selected from basic operation data according to the time section being adjusted.This The pending application of application can be game application, and such as 360 game or video playing are applied, audio plays application and straight Broadcast application.The application carries out screen recording work at runtime using 360 game as the application for obtaining operation data, to 360 game Operation data for acquisition is illustrated.As shown in Figure 10, system 1000 includes:
Unit of memory allocation 1001, when receiving for for obtaining the trigger request of acquisition service of operation data, Pre-set storage information is parsed, to determine the basic storage region for storage running data.Preferably, system Further include storage unit:User equipment pre-sets storage information and is stored in user equipment memory storage according to user's input Information.Preferably, storage information includes:The initial address of basic storage region and basic memory capacity.In the application, to pre- The storage information first set is parsed, and the time of screen recording, the frame per second recorded, bit rate is carried out according to application, to screen The data capacity of recording and storing information is parsed, and such as playing to talk on the journey to west carries out 10 minutes screen recordings, by frame per second 25 (fps), bit rate is from 380 (bps), and it is 1.5G to parse talk on the journey to west game screen and record the capacity needed, therefore, for big talk Journey to the West distributes the basic storage region of 1.5G.In the application, storage information includes the initial address of storage region and preset base Plinth memory capacity.Preferably, wherein the type of currently running application includes game application, video playing application, audio broadcasting Using and live streaming application.The application of the application can be game application, such as 360 game talk on the journey to west;Or video playing Using such as 360 fast video;Audio plays application;Live streaming application, such as 360 Beijing time.
Preferably, wherein the type of currently running application includes game application, video playing application, audio broadcasting application And live streaming application.The pending application of the application can be game application, such as 360 game or video playing application, audio Play application and live streaming application.
Preferably, this system unit of memory allocation is additionally operable to:When the basic memory capacity of basic storage region is used up, Dynamic storage zone is set in user equipment, and wherein dynamic storage zone is associated attached with currently running application for storing Add operation data.The application is each using distribution basis memory block in the multiple applications for the acquisition for needing progress operation data Domain and when the basic memory capacity of basic storage region is used up, sets dynamic storage zone, wherein base in a user device Plinth deposit region for store with each using associated basic operation data, dynamic storage zone is for storing with each applying Associated additional operation information data.In playing such as talk on the journey to west, user needs to record 8 minutes under normal circumstances, therefore is big talk Journey to the West game point matches the basic storage region of 1G capacity, in addition, it is uncertain due to running game, it there may come a time when to extend big The screen recording of Journey to the West game is talked about, such as will continue to record again 2 minutes, be talk on the journey to west game point dynamic with 300M capacity therefore State storage region.Or 360 fast Video Applications, under normal circumstances user need to record 15 minutes, therefore be 360 fast video distributions The basic storage region of 1.5G capacity there may come a time when that the screen recording of 360 fast videos can be extended, can such as be further continued for recording 3 points Therefore clock, is the dynamic storage zone of 360 fast video distribution 400M capacity.Wherein, the capacity of dynamic storage zone can be treated The actual screen of processing application is recorded demand and is adjusted, and demand is obtained to meet the additional operation information data of pending application.This During the screen recording applied when being run of application, the data first recorded are stored in basic storage region, when basis stores When region is filled with, then by the data recorded below be stored in dynamic storage zone.
Preferably, unit of memory allocation is additionally operable to:Before dynamic storage zone is set in a user device, determine that user sets Standby remaining memory capacity is more than expanded threshold value.In the application, when such as also having the operation of 15 minutes to talk on the journey to west game prediction Between, the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, equipment can extend the maximum value of capacity, i.e., with extension Threshold value is compared, and if expanded threshold value is 2.5G, equipment residue memory capacity, i.e., minimum acceptable threshold is 5G, therefore the expansion of 2G Open up threshold value and less than the remaining memory capacity 5G of equipment, the application deposits area for the screen recording distribution dynamic of talk on the journey to west game Domain, also, the frame per second recorded and/or bit rate are reduced to the acquisition service of the screen recording of talk on the journey to west game, such as by frame per second 18 (fps) are adjusted to from 25 (fps), bit rate is adjusted to 320 (bps) from 400 (bps), to reduce the screen of talk on the journey to west game The data that curtain is recorded.
Preferably, storage unit is further included:When the residual capacity of dynamic storage zone is zero, obtain service will with it is current Operation is stored with coverage mode into basic storage region using associated new operation data.In the application, work as application The residual capacity of dynamic storage zone be zero, the screen recording data played such as talk on the journey to west are by the dynamic area of distribution When domain is filled with, the screen data for being stored in basic storage region such as recorded before is deposited compared to the dynamic that is stored in recorded below The importance of the screen data in storage area domain is low, when dynamic storage zone has been filled with and needing to continue screen recording, obtains Take service by talk on the journey to west using associated new screen recording data storage to basic storage region, basic storage region is deposited The screen data that the data of storage are newly recorded covers.
Preferably, storage unit is further included:When the residual capacity of dynamic storage zone is zero, obtain service will with it is current The new operation data of the association of operation carries out cover type storage in dynamic storage zone.In the application, when pending The residual capacity of the dynamic storage zone of application is zero, and the screen recording data as talk on the journey to west is played have deposited the dynamic of distribution When storage area domain is filled with, such as screen data for being stored in basic storage region of recording before is dynamic compared to being stored in for being recorded below The importance of the screen data of state storage region is high, when dynamic storage zone has been filled with and needs to continue screen recording When, service is obtained by talk on the journey to west using associated new screen recording data storage to dynamic storage zone, dynamic memory The screen data that the data of region storage are newly recorded covers.
Preferably, unit of memory allocation is additionally operable to:Before setting dynamic storage zone in a user device, to currently running Application this operation end time predicted, when determine from current time to the time of this end time run When the size of acquired operation data is less than or equal to expanded threshold value in section, distribution dynamic storage zone is determined.Preferably, it deposits Storage allocation unit is additionally operable to:Current fortune is determined according to the historical statistical data of the end of run time to currently running application The end time of this operation of capable application.In the application, the end of run time of application is counted, and log history Statistical data in pending application at runtime, the end time using this operation is determined according to historical statistical data.Such as Talk on the journey to west is played, and the historical statistical data record each run time is 22:00 to 22:30, it, can be pre- by historical statistical data The run time for surveying talk on the journey to west game is 22:00 to 22:30 minutes of 30.The application from current time to this to running The size of acquired operation data is assessed in the period of end time, if current time is 22:25, from current time To the end time 22:During 30 period of 5 minutes, the size of the operation data of acquisition is about 700M, by 700M sizes with setting The standby maximum value that can extend capacity, i.e. expanded threshold value are compared, and if expanded threshold value is 2G, talk on the journey to west game running is pre- The capacity for the 700M that screen recording needs are carried out in 5 minutes terminated is counted, less than the capacity of expanded threshold value 2G, is determined as big It talks about Journey to the West game point and matches dynamic storage zone.Or when such as expanded threshold value is 500M, talk on the journey to west game running terminates estimated 5 minutes in carry out screen recording needs 700M capacity, more than the capacity of expanded threshold value 500M, equipment can extend Capacity can not again for talk on the journey to west game point match screen recording data memory space, determine can not be talk on the journey to west game point With dynamic storage zone.
Preferably, unit of memory allocation is additionally operable to:The end time of this operation of currently running application is carried out pre- It surveys, expands when determining to the size of operation data acquired in the period of this end time run to be more than from current time When opening up threshold value and being less than acceptable threshold, it is determined as user equipment distribution dynamic storage zone and promotes to obtain service according to drop Low frame per second and/or bit rate obtain operation data.In the application, such as there is the fortune of 15 minutes to talk on the journey to west game prediction The row time carries out the capacity of the 2.5G of screen recording needs in 5 minutes, and equipment can extend the maximum value of capacity, i.e., with Expanded threshold value is compared, and if expanded threshold value is 2G, equipment residue memory capacity, i.e., minimum acceptable threshold is 5G, 5 minutes The capacity of the interior 2.5G for carrying out screen recording needs, expanded threshold value more than 2G and less than the minimum acceptable threshold 5G of equipment, The application deposits region for the screen recording distribution dynamic of talk on the journey to west game, also, to the screen recording of talk on the journey to west game The service of acquisition reduces the frame per second recorded and/or bit rate, and frame per second such as is adjusted to 18 (fps) from 25 (fps), and bit rate is from 400 (bps) 320 (bps) are adjusted to, to reduce the data of the screen recording of talk on the journey to west game.
In the application, unit of memory allocation is additionally operable to:It is determined in basic storage region to operation according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during data progress fragmented storage.Preferably, application is also wrapped Include, obtain service to each segmentation in multiple segmentations of operation data using identical or different frame per second and/or bit rate into Row segmentation is recorded, and each segmentation basic unit of storage corresponding with multiple basic units of storage is associated.In the application, The operation data obtained for convenience to application is handled, by the way of fragmented storage, after placing the data in segmentation In multiple basic units of storage.The basic storage region of 1G is such as divided into 100M, 100M, 200M, 200M, 200M's ... Segmentation, wherein, in every section of corresponding basic unit of storage the frame per second of screen recording and bit rate can be it is identical or Different, and establish incidence relation of each segmentation with corresponding basic unit of storage.
Start unit 1002, in the case where the remaining memory capacity for determining basic storage region is more than threshold value, startup obtains It takes and services and promote to obtain service progress running background.In the application, in the remaining memory capacity for determining basic storage region During more than threshold value, equipment can store the screen recording data of acquisition, and the application starts the service of acquisition, and promote to obtain and service It is being run from the background.
Acquiring unit 1003, the service of acquisition, which determines, and currently running application is relevant obtains rule, such as code check, bit rate Deng, and obtain the basic operation data of application based on rule is obtained.Preferably, acquiring unit is additionally operable to:Obtain service root Rule base is retrieved according to the application identities of currently running application, and determines to answer with currently running according to retrieval result Rule is obtained with relevant.Preferably, operation data is the screen video data for the user equipment recorded, and obtains rule Including at least one of the following contents:Time span, capacity limit, frame per second and bit rate.In the application, service basis is obtained Application identities determine to obtain rule using relevant.Application identities of the service according to talk on the journey to west are such as obtained, utilize application identities It is retrieved in rule base, the relevant acquisition of screen video data recording for determining to apply with talk on the journey to west according to retrieval result Rule, as the acquisition rule for the screen video data recording that talk on the journey to west is applied is:Time span is 10 minutes, and capacity limit is 2G, frame per second:16 (fps), bit rate 360 (bps) or including the relevant rule of other screen recordings.
Preferably, acquiring unit is additionally operable to:It is determining with after the relevant acquisition rule of currently running application, further including and obtaining Service is taken to obtain the operation data of currently running application based on obtaining rule after expiring in the predetermined time.In the application, After the acquisition rule for determining application, the service of acquisition obtains pending answer according to rule is obtained after can also expiring in the predetermined time Operation data.I.e. after the acquisition rule for determining talk on the journey to west game, the talk on the journey to west game running time reaches predetermined After 5 seconds phases time, the service of acquisition, which starts to play to big talk, carries out screen recording.Wherein, phase predetermined time is presets, can be with It it is 1 second, 2 seconds, 5 seconds, 10 seconds or other scheduled times.
Preferably, acquiring unit is additionally operable to:When the state of currently running application is switched to running background from front stage operation When, the service pause of acquisition obtains operation data.In the application, when the state of application is switched to running background from front stage operation, Such as when user is when playing talk on the journey to west game, user connects phone, starts the call of a period of time, the meeting of talk on the journey to west game at this time Running background is switched to, when talk on the journey to west is played in running background, does not need to carry out screen recording.Therefore, the application is automatic Suspend screen recording, to avoid unwanted screen data is recorded, occupy the resource of system.
Preferably, acquiring unit is additionally operable to:When the state of currently running application is switched to front stage operation from running background When, the service of acquisition starts to obtain operation data.In the application, when user disconnects from talking state, talk on the journey to west game is from from the background When operation is switched to front stage operation, user starts to continue to run with game, needs to carry out screen recording again at this time, the application can be real It now automatically begins to play to the talk on the journey to west for being switched to front stage operation from running background and carries out screen recording.
Preferably, acquiring unit is additionally operable to:It obtains service and phase is used to each segmentation in multiple segmentations of operation data Same or different frame per second and/or bit rate carry out segmentation recording, and are each segmented corresponding with multiple basic units of storage Basic unit of storage is associated.In the application, the operation data obtained for convenience to application is handled, and is recorded using segmentation Mode, and the data recorded after segmentation are stored in multiple basic units of storage.Such as the basic storage region of 1G is divided For 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, screen recording in every section of corresponding basic unit of storage Frame per second and bit rate can be identical or different, and establish each segmentation and corresponding basic unit of storage Incidence relation.
Preferably, acquiring unit is additionally operable to:The service of acquisition can carry out content recognition to acquired operation data, when true When the content of partition running data in fixed specific basic unit of storage is with being run in user equipment using unrelated data, Delete partition running data.In the application, the operation data of acquisition is identified by obtaining service, i.e., to big in the application The content of screen recording data of words Journey to the West game is identified, and when finding in basic unit of storage, the screen of the first segmentation is recorded Data processed are unrelated with the data of talk on the journey to west game running, are such as ad data, then delete the screen recording data of the first segmentation.
Preferably, acquiring unit is additionally operable to:The service of acquisition can carry out content recognition to acquired operation data, when true The content of partition running data in fixed specific basic unit of storage can be converted to related to the application run in user equipment Frame data when, delete partition running data.In the application, the operation data of acquisition is identified by obtaining service, Content recognition such as is carried out to the screen recording data of talk on the journey to west game, if it is determined that specific basic unit of storage, such as the 5th point The screen recording data of the basic unit of storage storage of section are screen recording data when game does not carry out any operation, i.e., substantially The talk on the journey to west record screen data of storage unit storage, can be converted to frame data, therefore, delete the basic storage of the 5th segmentation The screen recording data of unit storage.
Preferably, acquiring unit is additionally operable to:Service is obtained to the content that stores in being arbitrarily segmented in multiple segmentations into line number According to compression.In the application, data pressure is carried out to the content stored in any one segmentation in multiple segmentations by obtaining service The record screen data that talk on the journey to west game is stored in the second segmentation are such as carried out compression processing by contracting, to save the storage of data sky Between.
Control unit 1004, the display area of user equipment generation be used for according to the time section including fiducial time come Obtain the suspension control of customization operation data.Preferably, suspension control can be suspended in the display interface for the application being currently running Top, and the control that suspends can be presented with the transparency set by user.In the application, fiducial time can be passed through The time section of definition, to obtain customization operation data during time section.If talk on the journey to west game is 10 at runtime:00 When, generation fiducial time is 5 minutes, and it is first 5 minutes of current run time and latter 5 minutes to define time section, i.e., 9:55 to 10:After 05;The fiducial time of the application generation may be 2 minutes, and the time section of the application can also be defined as currently transporting First 2 minutes and latter 2 minutes of row time;Or the fiducial time of the application generation is 30 seconds, i.e., when time section is current operation Between first 30 seconds or 30 seconds latter.Time in the application, using the suspension control of device display area, generation includes fiducial time Time section.
Preferably, wherein servicing the default value of setting fiducial time and the initial value of time section by obtaining, and user The default value of fiducial time and the initial value of time section can be changed.Preferably, coefficient of dynamics is increased time quantum, and Time section is adjusted based on coefficient of dynamics and is included with generating the time section being adjusted:By time section and dynamical system Number sums to generate the time section being adjusted.Preferably, time section is using fiducial time as symmetrical centre or asymmetric The period at center.Preferably, further include suspension control the time section being adjusted is carried out according to the input of user along when Countershaft is moved forward or rearward.In the application, fiducial time and time section could be provided as default value or user according to obtaining The actual demand of screen data is enrolled, the initial value of default value and time section to fiducial time is modified.Such as talk on the journey to west It is 3 minutes to give tacit consent to fiducial time, and time section is first 3 minutes and latter 3 minutes using current run time, and the application utilizes dynamic Time section and coefficient of dynamics are summed to generate the time section being adjusted by state coefficient as increased time quantum.As moved State coefficient is 2 minutes, and the time section of the application is revised as first 5 minutes using current run time and latter 5 minutes.The application In, it is symmetrical period or the period of center of asymmetry fiducial time that time section, which can be,.If fiducial time is 3 points Clock, time section are first 3 minutes and latter 3 minutes using current run time;Or fiducial time is 3 minutes, time section is Using first 4 minutes and latter 2 minutes of current run time.The application can utilize the control that suspends, including left and right dragging or up and down Dragging, makes time section be moved forward or rearward along time shaft.
Customization units 1005 generate coefficient of dynamics, based on coefficient of dynamics pair according to the input control for suspension control Time section is adjusted to generate the time section that is adjusted, according to the time section being adjusted from basic operation data Middle selection customizes the data content of operation data for forming.Preferably, customization units are additionally operable to:By in basic operation data with The associated operation data segment of time section being adjusted forms the data content of customization operation data.In the application, lead to The input control of suspension control is crossed to generate coefficient of dynamics, is such as that talk on the journey to west application acquisition operation data generation coefficient of dynamics is 2 minutes, former fiducial time was 3 minutes, and the time section after being adjusted is that talk on the journey to west game needs to carry out screen recording Time section for first 5 minutes of current run time and latter 5 minutes, the operation data that talk on the journey to west play by the application ought First 5 minutes of preceding run time and the screen recording data of latter 5 minutes, as customization operation data content.Or during the application couple Between section be adjusted, being adjusted to talk on the journey to west game needs to carry out the time section of screen recording for before current run time 6 minutes and latter 4 minutes, first 6 minutes and latter 4 points of the current run time for the operation data that the application plays talk on the journey to west The screen recording data of clock, as customization operation data content.
Based on embodiments of the present invention, a kind of mobile terminal is provided, it is above-mentioned according to fiducial time including or for perform To obtain the system of customization operation data.
Figure 11 is the stream according to the method that dynamic content presentation is carried out based on video data of the preferred embodiment for the present invention Cheng Tu.The method that dynamic content presentation is carried out based on video data that embodiment of the present invention provides, by logical in response to receiving The presentation request that video data is presented into Mobile state is crossed, the network site for needing to present into Mobile state is determined according to request is presented, The application creates data link associated with target subregion in basic storage region according to network site, and for number has been established According to the target subregion setting storage mark of link.The application start obtain video data acquisition service, when determine target son In the case that region does not store any data, service will be obtained using pre-set acquisition rule to obtain video data and profit It will be in acquired video data storage to target subregion with storage mark.The application is directed to video counts in response to receiving It is indicated according to the generation of acquisition, is generated based on acquired video data and data are presented for carrying out the dynamic of dynamic content presentation, Dynamic is presented data and is transmitted to network site, carry out dynamic content presentation by the application according to data link.Embodiment party of the present invention The application of formula can be game application, and such as 360 game or video playing application, audio play application and live streaming application.This Application carries out 360 game screen recording as the operation number obtained at runtime using 360 game as pending application According to being illustrated.As shown in figure 11, method 1100 is since step 1101 place.
Preferably, in step 1101:The presentation for carrying out dynamic content presentation by video data in response to receiving is asked, root The network site for needing to carry out dynamic content presentation is determined according to request is presented.Preferably, request is presented to include:It sends and request is presented Requesting party and need carry out dynamic content presentation network site.In the application, when 360 game (such as talk on the journey to west) are wished When one section of screen recording data of game running are presented by network, dynamic content can be carried out by video data to received The presentation request of presentation is responded.The presentation request of the application includes the requesting party of request is presented.Requesting party for example can be, The website of data content, APP of communication class etc. can be presented.
Preferably, wherein using video data as carrying out the network comment data of dynamic content presentation.The application In, the screen recording data of talk on the journey to west game running can be utilized as carrying out the network comment number of dynamic content presentation According to.For example, user when running talk on the journey to west and playing by recording screen to obtain video data, and pass through video Data publication carries out the dynamic evaluation of talk on the journey to west game to network.
Preferably, wherein using video data as carrying out the network recommendation data of dynamic content presentation.The application In, when the screen data of talk on the journey to west game running can be as recommending data, when can utilize talk on the journey to west game running Screen recording data as carrying out the video data of dynamic content presentation.For example, the screen played by talk on the journey to west Data recording, and record is shielded into data publication to network, carry out the recommendation of talk on the journey to west game.Potential user is by watching what is recommended The content of game running is understood more intuitively in talk on the journey to west screen recording data, helps to attract potential user deeper into ground Understand the game.
Preferably, in step 1102:Being created according to network site can be related to target subregion in basic storage region The data link of connection, and be target subregion setting storage mark.It preferably, wherein can be with storage according to network site establishment The associated data link of target subregion includes in region:It is created for the target subregion in basic storage region and is directed toward network The data link of position, and for target subregion set storage mark after will need carry out dynamic content presentation network position Put place's display storage mark.In the application, being created according to the network site that presents of the video data of screen recording needs can be with The associated data link of target subregion in basic storage region, and created for the target subregion in basic storage region The data link of network site is directed toward, and will need to carry out dynamic content presentation after storage mark is set for target subregion Network site at show storage mark.In the application, talk on the journey to west game is needed into the network site presented, such as game promotion Platform, by game promotion platform data link associated with target subregion in storage region basic in user equipment, and Screen recording when the target subregion is created the data link for being directed toward game promotion platform and run for storage talk on the journey to west The target subregion setting storage mark of data, if storage is identified as " talk on the journey to west upgrade version ", is presented in game promotion platform During talk on the journey to west record screen data, the storage mark of display " talk on the journey to west upgrade version ".
Preferably, in step 1103:Start for obtaining the acquisition service of video data, determining that target subregion do not deposit In the case of storing up any data, service is obtained using pre-set acquisition rule to obtain video data and utilize storage mark It will be in acquired video data storage to target subregion.Preferably, it is advised wherein obtaining service and reading pre-set obtain Then configuration file and regular configuration file determines and user equipment is relevant pre-set obtains rule according to obtaining.It is preferred that Ground, video data are the screen video data for the user equipment recorded, and obtain rule and include in the following contents at least One:Time span, capacity limit, frame per second and bit rate.The application starts to obtain talk on the journey to west screen recording data Service is obtained, in the case where determining that the target subregion for storing record screen data does not store any data, the service of acquisition utilizes pre- The acquisition rule first set is arrived the video data storage of acquisition using storage mark to obtain the record screen data of talk on the journey to west In target subregion.In the application, the service that obtains determines to obtain rule using relevant according to application identities.The application is according to pre- The configuration file first set determines that the screen video data recording applied with talk on the journey to west is relevant and obtains rule, such as talk on the journey to west The acquisition rule of the screen video data recording of application is:Time span is 10 minutes, capacity limit 2G, frame per second:16 (fps), bit rate 360 (bps) or including the relevant rule of other screen recordings.
Preferably, it is determining with after the relevant pre-set acquisition rule of user equipment, further including acquisition service pre- It fixes time and obtains video data based on rule is obtained after expiring.In the application, after the acquisition rule of pending application is determined, The service of acquisition regular obtains the operation data of pending application according to obtaining after can also expiring in the predetermined time.Determining After the acquisition rule of good talk on the journey to west game, after the talk on the journey to west game running time reaches 5 seconds phases predetermined time, the service of acquisition is opened Begin to play to big talk and carry out screen recording.Wherein, phase predetermined time is presets, can be 1 second, 2 seconds, 5 seconds, 10 seconds or its His scheduled time.
Preferably, it further includes when the basic memory capacity of basic storage region is used up, in a user device setting dynamic Storage region, wherein dynamic storage zone are used to store auxiliary video data.The application is the acquisition for needing to carry out operation data Application distribution basis storage region and dynamic storage zone, wherein basis deposit region for store with each apply it is associated Basic operation data, dynamic storage zone is for storage with each applying associated additional operation information data.As talk on the journey to west is swum In play, user needs to record 8 minutes under normal circumstances, therefore matches the basic storage region of 1G capacity for talk on the journey to west game point, In addition, it is uncertain due to running game, it there may come a time when that the screen recording of talk on the journey to west game can be extended, such as will continue to record again Therefore system 2 minutes, the dynamic storage zone of 300M capacity is matched for talk on the journey to west game point.Or 360 fast Video Applications, general feelings User needs to record 15 minutes under condition, therefore is the basic storage region of 360 fast video distribution 1.5G capacity, there may come a time when to prolong The screen recording of long 360 fast videos can such as be further continued for recording 3 minutes, be the dynamic of 360 fast video distribution 400M capacity therefore Storage region.Wherein, the capacity of dynamic storage zone is capable of the actual screen of pending application and records demand and be adjusted, with full The additional operation information data of the pending application of foot obtains demand.It is pending apply when being run screen recording when, will first record The basic storage region of data deposit of system, dynamic memory is stored in when basic storage region is filled with, then by the data recorded below Region.
Preferably, it is further included before setting dynamic storage zone in a user device:Determine the remaining storage of user equipment Capacity is more than expanded threshold value.In the application, before setting dynamic storage zone in a user device, need to need dynamic area The expanded threshold value and the remaining memory capacity of user equipment to be used is compared, such as when it is 2G to need expanded threshold value, user The remaining memory capacity of equipment is 10G, therefore can set dynamic storage zone.Or when it is 2G to need expanded threshold value, user The remaining memory capacity of equipment is 1G, therefore can not set dynamic storage zone.
Preferably, when the residual capacity of dynamic storage zone is zero, service is obtained by new video data with the side of covering In formula storage to basic storage region.It is such as big when the residual capacity of the dynamic storage zone of pending application is zero in the application When the dynamic storage zone of distribution is filled with by the screen recording data of words Journey to the West game, the basis that is stored in such as recorded before is deposited The screen data in storage area domain is low compared to the importance for the screen data for being stored in dynamic storage zone recorded below, when dynamic When storage region has been filled with and when needing to continue screen recording, obtain service and talk on the journey to west is applied into associated new screen To basic storage region, the screen data that the data of basic storage region storage are newly recorded covers the storage of curtain data recording.
Preferably, when the residual capacity of dynamic storage zone is zero, the service of acquisition is dynamically depositing new video data Cover type storage is carried out in storage area domain.It is such as big when the residual capacity of the dynamic storage zone of pending application is zero in the application When the dynamic storage zone of distribution is filled with by the screen recording data of words Journey to the West game, the basis that is stored in such as recorded before is deposited The importance that the screen data in storage area domain compares the screen data for being stored in dynamic storage zone recorded below is high, when dynamic When storage region has been filled with and when needing to continue screen recording, obtain service and talk on the journey to west is applied into associated new screen To dynamic storage zone, the screen data that the data of dynamic storage zone storage are newly recorded covers the storage of curtain data recording.
Preferably, it is further included before setting dynamic storage zone in a user device:It is pair associated with video data should This operation end time predicted, when determine from current time to the period of this end time run in When the size of acquired operation data is less than or equal to expanded threshold value, distribution dynamic storage zone is determined.Preferably, wherein root It is answered according to the historical statistical data of the end of run time of application associated to video data to determine that video data is associated The end time of this operation.In the application, the end of run time of pending application is counted, and log history Statistical data in pending application at runtime, the pending end using this operation is determined according to historical statistical data Time.If talk on the journey to west is played, the historical statistical data record each run time is 22:00 to 22:30, by historical statistics number According to the run time that can predict talk on the journey to west game is 22:00 to 22:30 minutes of 30.The application to from current time to The size of acquired operation data is assessed in the period of the end time of this operation, if current time is 22:25, 22 from current time to end time:During 30 period of 5 minutes, the size of the operation data of acquisition is about 700M, will 700M sizes and equipment can extend the maximum value of capacity, i.e. expanded threshold value is compared, if expanded threshold value is 2G, talk on the journey to west Game running carries out the capacity of the 700M of screen recording needs in estimated 5 minutes terminated, less than expanded threshold value 2G's Capacity is determined as talk on the journey to west game point with dynamic storage zone.Or when such as expanded threshold value is 500M, talk on the journey to west game fortune Row carries out the capacity of the 700M of screen recording needs in estimated 5 minutes terminated, more than the capacity of expanded threshold value 500M, The capacity that equipment can extend can not match the memory space of screen recording data for talk on the journey to west game point again, determine can not to be big It talks about Journey to the West game point and matches dynamic storage zone.
Preferably, it is further included before setting dynamic storage zone in a user device:The associated application to video data This operation end time predicted, when determine from current time to institute in the period of this end time run When the size of the operation data of acquisition is more than expanded threshold value and is less than acceptable threshold, it is determined as user equipment distribution dynamic memory Region and promote to obtain service video data obtained according to the frame per second and/or bit rate of reduction.In the application, such as to big talk Journey to the West game prediction also has the run time of 15 minutes, and the capacity of the 2.5G of screen recording needs, equipment are carried out in 5 minutes The maximum value of capacity can be extended, i.e., be compared with expanded threshold value, as expanded threshold value be 2G, equipment residue memory capacity, i.e., Minimum acceptable threshold is 5G, and the capacity of the 2.5G of screen recording needs is carried out in 5 minutes, the expanded threshold value more than 2G and Less than the minimum acceptable threshold 5G of equipment, the application deposits region, also, right for the screen recording distribution dynamic of talk on the journey to west game The acquisition service of the screen recording of talk on the journey to west game reduces the frame per second recorded and/or bit rate, such as adjusts frame per second from 25 (fps) Whole is 18 (fps), and bit rate is adjusted to 320 (bps) from 400 (bps), to reduce the number of the screen recording of talk on the journey to west game According to.
Preferably, it further includes and is determined to carry out fragmented storage to operation data in basic storage region according to dynamic configuration file When multiple subregions in per sub-regions size.Preferably, application further includes, and obtains multiple points serviced to operation data Each segmentation in section carries out segmentation recording using identical or different frame per second and/or bit rate, and each segmentation with it is multiple Corresponding basic unit of storage is associated in basic unit of storage.In the application, for convenience to the fortune of pending application acquisition Row data are handled, and by the way of fragmented storage, are placed the data in multiple basic units of storage after segmentation.As incited somebody to action The basic storage region of 1G is divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, every section is corresponding basic The frame per second of screen recording and bit rate can be identical or different in storage unit, and establish each segmentation With the incidence relation of corresponding basic unit of storage.
Preferably, further include, obtain service to different video data using identical or different frame per second and/or bit rate into Row is recorded, and each video data subregion corresponding with multiple subregions is associated.In the application, service is obtained to not Recorded with video data using identical or different frame per second and/or bit rate, wherein the setting of frame per second and/or bit rate with Record screen data importance it is related to the size of memory space residual capacity, in the application, each video data with it is multiple Corresponding subregion is associated in subregion.
Preferably, obtaining service can be to acquired video data progress content recognition, when determining in particular sub-area Video data be with being run in user equipment using unrelated data when, delete video data.In the application, pass through acquisition The operation data of acquisition is identified in service, i.e., the content for the screen recording data played to talk on the journey to west in the application carries out Identification, when finding in basic unit of storage, the screen recording data of the first subregion and the data of talk on the journey to west game running without It closes, is such as ad data, then deletes the screen recording data of the first subregion.
Preferably, obtaining service can be to acquired video data progress content recognition, when determining in particular sub-area Video data when can be converted to frame data relevant with the application that is run in user equipment, delete video data.This Shen Please in, by obtain service the operation data of acquisition is identified, such as to talk on the journey to west game screen recording data progress Content recognition, if it is determined that specific basic unit of storage, the screen recording number that such as basic unit of storage of the 5th subregion stores According to the talk on the journey to west record screen data of screen recording data when not carrying out any operation for game, i.e. basic unit of storage storage, Frame data can be converted to, therefore, deletes the screen recording data of the basic unit of storage storage of the 5th subregion.
Preferably, it obtains service and data compression is carried out to the video data stored in subregion arbitrary in multiple subregions. In the application, data compression is carried out to the content stored in any one subregion in multiple segmentations by obtaining service, such as The record screen data that talk on the journey to west game is stored in the second subregion are subjected to compression processing, to save the memory space of data.
Preferably, in step 1104:The generation that video data acquisition is directed in response to receiving indicates, based on acquired Video data generate for carry out dynamic content presentation dynamic present data.In the application, the talk on the journey to west of acquisition is swum The screen recording data of play generate and data are presented for carrying out the dynamic of dynamic content presentation.
Preferably, in step 1105:Dynamic is presented by data according to data link and be transmitted to network site, with into Mobile state Content is presented.The dynamic of the talk on the journey to west of generation according to data link, is presented data and is transmitted to network site by the application, with Dynamic content presentation is carried out, i.e. the screen recording content of talk on the journey to west is presented in network site into Mobile state.
Figure 12 is as carrying out the network of dynamic content presentation according to the video data of the preferred embodiment for the present invention Recommending data schematic diagram.As shown in figure 12, it is in talk on the journey to west game promotion by talk on the journey to west game running screen recording data Platform carries out the schematic diagram of network recommendation data.In talk on the journey to west game promotion platform 1201,1202,1203 are in for user Now arrive the screen recording data of the game promotion platform.The application in response to receive to talk on the journey to west screen recording video data into The presentation that Mobile state content is presented is asked, and determines the network site for needing to carry out dynamic content presentation according to request is presented, such as originally Apply for network site that dynamic content is presented as talk on the journey to west game promotion platform, the network site of the platform is created can be with The associated data connection of target subregion in basic storage region in the user equipment of game, and deposited for the setting of target subregion Storage mark such as " the talk on the journey to west upgraded version " and " the excellent game of talk on the journey to west invites you to come " of the application, is identified as storage.This The screen data that application starts " talk on the journey to west upgraded version " or " the excellent game of talk on the journey to west invites you to come " is recorded, corresponding to obtain Video data, and by " talk on the journey to west upgraded version " screen recording data storage to basic storage region for target sub-district Domain and will " talk on the journey to west it is excellent game invite you come " screen recording data storage to basic storage region for target sub-district Domain.Data are presented, and will in the dynamic that the application generates " talk on the journey to west upgraded version " and " the excellent game of talk on the journey to west invites you to come " The dynamic of " talk on the journey to west upgraded version " and " the excellent game of talk on the journey to west invites you to come " is presented data and is transmitted to talk on the journey to west game Extension Software Platform carries out dynamic content presentation.
Figure 13 is the knot according to the system that dynamic content presentation is carried out based on video data of the preferred embodiment for the present invention Structure schematic diagram.The system that dynamic content presentation is carried out based on video data that embodiment of the present invention provides, passes through response unit It is asked in response to receiving by video data into the presentation that Mobile state is presented, determines to need to present into Mobile state according to request is presented Network site, the link unit of the application creates associated with target subregion in the storage region of basis according to network site Data link, and the target subregion setting storage mark for data link has been established.The acquiring unit of the application, which starts, to be obtained The acquisition service of video data in the case of determining that target subregion does not store any data, will obtain service using in advance The acquisition rule of setting is identified to obtain video data and using storing by acquired video data storage to target subregion In.The generation that the generation unit of the application is directed to video data acquisition in response to receiving indicates, based on acquired video Data are presented for carrying out the dynamic of dynamic content presentation in data generation, and the display unit of the application, will be dynamic according to data link State is presented data and is transmitted to network site, carries out dynamic content presentation.The application of embodiment of the present invention can be game application, As 360 game or video playing application, audio play application and live streaming application.The application plays using 360 as pending Application, to 360 game at runtime carry out screen recording as acquisition operation data be illustrated.Such as Figure 13 institutes Show, system 1300 includes:
Response unit 1301, in response to receive by video data carry out dynamic content presentation presentation request, according in Now request determines the network site for needing to carry out dynamic content presentation.Preferably, request is presented to include:It sends and asking for request is presented The side of asking and the network site for needing to carry out dynamic content presentation.In the application, when 360 game (such as talk on the journey to west) wish logical When crossing one section of screen recording data of network presentation game running, can be in by video data progress dynamic content to received Existing presentation request is responded.The presentation request of the application includes the requesting party of request is presented.Requesting party for example can be energy The website of data content, APP of communication class etc. is enough presented.
Preferably, wherein using video data as carrying out the network comment data of dynamic content presentation.The application In, the screen recording data of talk on the journey to west game running can be utilized as carrying out the network comment number of dynamic content presentation According to.For example, user when running talk on the journey to west and playing by recording screen to obtain video data, and pass through video Data publication carries out the dynamic evaluation of talk on the journey to west game to network.
Preferably, wherein using video data as carrying out the network recommendation data of dynamic content presentation.The application In, when the screen data of talk on the journey to west game running can be as recommending data, when can utilize talk on the journey to west game running Screen recording data as carrying out the video data of dynamic content presentation.For example, the screen played by talk on the journey to west Data recording, and record is shielded into data publication to network, carry out the recommendation of talk on the journey to west game.Potential user is by watching what is recommended The content of game running is understood more intuitively in talk on the journey to west screen recording data, helps to attract potential user deeper into ground Understand the game.
Link unit 1302, being created according to network site being capable of number associated with target subregion in basic storage region According to link, and it is target subregion setting storage mark.Preferably, link unit is additionally operable to:For the mesh in basic storage region It marks subregion and creates the data link for being directed toward network site, and will need to carry out after storage mark is set for target subregion Storage mark is shown at the network site that dynamic content is presented.In the application, need to present according to the video data of screen recording Network site create can data link associated with target subregion in basic storage region, and be basic memory block Target subregion in domain creates the data link for being directed toward network site, and will after storage mark is set for target subregion It needs to carry out showing storage mark at the network site of dynamic content presentation.In the application, talk on the journey to west game is needed to present Network site, such as game promotion platform, by target subregion in storage region basic in game promotion platform and user equipment Associated data link, and the target subregion is created and is directed toward the data link of game promotion platform and to store The target subregion setting storage mark of screen recording data when talk on the journey to west is run, as storage is identified as, " talk on the journey to west upgrades Version ", when talk on the journey to west record screen data are presented in game promotion platform, the storage mark of display " talk on the journey to west upgrade version ".
Acquiring unit 1303 starts the acquisition service for obtaining video data, appoints determining that target subregion does not store In the case of what data, service is obtained using pre-set acquisition rule to obtain video data and utilize storage mark by institute In the video data storage to target subregion of acquisition.Preferably, acquiring unit is additionally operable to:Service reading is wherein obtained to set in advance It the acquisition rule configuration file put and is determined and user equipment is relevant pre-set obtains according to regular configuration file is obtained Take rule.Preferably, video data is the screen video data for the user equipment recorded, and obtains rule and include in following At least one of hold:Time span, capacity limit, frame per second and bit rate.The application starts to obtain talk on the journey to west screen The acquisition service of data recording in the case where the target subregion for determining storage record screen data does not store any data, obtains Service obtains the record screen data of talk on the journey to west using pre-set acquisition rule, and utilizes storage mark by the video of acquisition In data storage to target subregion.In the application, the service that obtains determines to obtain rule using relevant according to application identities.This Application determines the relevant acquisition rule of the screen video data recording applied with talk on the journey to west according to pre-set configuration file, The acquisition rule of screen video data recording as talk on the journey to west is applied is:Time span is 10 minutes, capacity limit 2G, frame Rate:16 (fps), bit rate 360 (bps) or including the relevant rule of other screen recordings.
Preferably, acquiring unit is additionally operable to:It is determining with after the relevant pre-set acquisition rule of user equipment, also wrapping It includes and obtains video data based on rule is obtained after acquisition service expires in the predetermined time.In the application, pending answer is being determined After acquisition rule, the service of acquisition regular obtains the fortune of pending application according to obtaining after can also expiring in the predetermined time Row data.I.e. after the acquisition rule for determining talk on the journey to west game, the talk on the journey to west game running time reaches phase predetermined time 5 After second, the service of acquisition, which starts to play to big talk, carries out screen recording.Wherein, phase predetermined time is presets, and can be 1 second, and 2 Second, 5 seconds, 10 seconds or other scheduled times.
Preferably, storage unit is further included:When the basic memory capacity of basic storage region is used up, in a user device Dynamic storage zone is set, and wherein dynamic storage zone is used to store auxiliary video data.The application is needs to carry out operation number According to acquisition application distribution basis storage region and dynamic storage zone, wherein basis deposit region for store with each apply Associated basis operation data, dynamic storage zone is for storage with each applying associated additional operation information data.As greatly It talks about in Journey to the West game, user needs to record 8 minutes under normal circumstances, therefore is deposited for basis of the talk on the journey to west game point with 1G capacity Storage area domain, in addition, it is uncertain due to running game, it there may come a time when that the screen recording of talk on the journey to west game, such as meeting can be extended Continuation is recorded 2 minutes again, therefore, the dynamic storage zone of 300M capacity is matched for talk on the journey to west game point.Or 360 fast video should With user needs to record 15 minutes under normal circumstances, therefore is the basic storage region of 360 fast video distribution 1.5G capacity, has When may extend the screen recordings of 360 fast videos, can such as be further continued for recording 3 minutes, be 360 fast video distribution 400M therefore The dynamic storage zone of capacity.Wherein, the capacity of dynamic storage zone be capable of pending application actual screen record demand into Row adjustment obtains demand to meet the additional operation information data of pending application.The pending screen record applied when being run When processed, the data first recorded are stored in basic storage region, are deposited when basic storage region is filled with, then by the data recorded below Enter dynamic storage zone.
Preferably, storage unit is additionally operable to:Before dynamic storage zone is set in a user device, user equipment is determined Remaining memory capacity is more than expanded threshold value.In the application, before dynamic storage zone is set in a user device, need to dynamic Memory block needs the remaining memory capacity for the expanded threshold value and user equipment used to be compared, and is 2G such as when needing expanded threshold value When, the remaining memory capacity of user equipment is 10G, therefore can set dynamic storage zone.Or it is 2G that ought need expanded threshold value When, the remaining memory capacity of user equipment is 1G, therefore can not set dynamic storage zone.
Preferably, storage unit is additionally operable to:When the residual capacity of dynamic storage zone is zero, the service of acquisition regards new In frequency coverage mode storage to basic storage region according to this.In the application, when pending application dynamic storage zone it is surplus Covolume amount is zero, when the dynamic storage zone of distribution is filled with such as the screen recording data of talk on the journey to west game, is such as recorded before The screen data for being stored in basic storage region of system compares the screen data for being stored in dynamic storage zone recorded below Importance it is low, when dynamic storage zone has been filled with and needing to continue screen recording, obtain service by talk on the journey to west Using associated new screen recording data storage to basic storage region, the data of basic storage region storage are newly recorded Screen data covered.
Preferably, storage unit is additionally operable to:When the residual capacity of dynamic storage zone is zero, the service of acquisition regards new Frequency is according to the progress cover type storage in dynamic storage zone.In the application, when pending application dynamic storage zone it is surplus Covolume amount is zero, when the dynamic storage zone of distribution is filled with such as the screen recording data of talk on the journey to west game, is such as recorded before The screen data for being stored in basic storage region of system compares the screen data for being stored in dynamic storage zone recorded below Importance it is high, when dynamic storage zone has been filled with and needing to continue screen recording, obtain service by talk on the journey to west Using associated new screen recording data storage to dynamic storage zone, the data of dynamic storage zone storage are newly recorded Screen data covered.
Preferably, storage unit is additionally operable to:In a user device set dynamic storage zone before, pair with video data phase The end time of this operation of associated application is predicted, when determining from current time to this end time run When the size of acquired operation data is less than or equal to expanded threshold value in period, distribution dynamic storage zone is determined.It is preferred that Ground, wherein determining video data phase according to the historical statistical data of the end of run time of application associated to video data The end time of this operation of associated application.In the application, the end of run time of pending application is counted, and Log history statistical data in pending application at runtime, this fortune of pending application is determined according to historical statistical data The capable end time.If talk on the journey to west is played, the historical statistical data record each run time is 22:00 to 22:30, by history Statistical data, the run time that can predict talk on the journey to west game are 22:00 to 22:30 minutes of 30.The application is to from current The size of acquired operation data is assessed in time to the period of this end time run, as current time is 22:25,22 from current time to end time:During 30 period of 5 minutes, the size of the operation data of acquisition is about 700M sizes and equipment can be extended the maximum value of capacity by 700M, i.e. expanded threshold value is compared, if expanded threshold value is 2G, Talk on the journey to west game running carries out the capacity of the 700M of screen recording needs in estimated 5 minutes terminated, less than extension The capacity of threshold value 2G is determined as talk on the journey to west game point with dynamic storage zone.Or when such as expanded threshold value is 500M, big talk west The capacity that game running carries out the 700M of screen recording needs in estimated 5 minutes terminated is swum, more than expanded threshold value The capacity of 500M, the capacity that equipment can extend can not match the memory space of screen recording data for talk on the journey to west game point again, Determine can not to be that talk on the journey to west game point matches dynamic storage zone.
Preferably, storage unit is additionally operable to:Before setting dynamic storage zone in a user device, to video data correlation The application of connection this operation end time predicted, when determine from current time to this end time run when Between the size of operation data acquired in section be more than expanded threshold value and during less than acceptable threshold, be determined as user equipment distribution Dynamic storage zone and promote to obtain service video data obtained according to the frame per second and/or bit rate of reduction.In the application, Such as there is the run time of 15 minutes to talk on the journey to west game prediction, carry out the 2.5G's of screen recording needs in 5 minutes Capacity, equipment can extend the maximum value of capacity, i.e., is compared with expanded threshold value, and if expanded threshold value is 2G, equipment residue is deposited Capacity is stored up, i.e., minimum acceptable threshold is 5G, and the capacity of the 2.5G of screen recording needs, the expansion more than 2G are carried out in 5 minutes Open up threshold value and less than the minimum acceptable threshold 5G of equipment, the application deposits area for the screen recording distribution dynamic of talk on the journey to west game Domain, also, the frame per second recorded and/or bit rate are reduced to the acquisition service of the screen recording of talk on the journey to west game, such as by frame per second 18 (fps) are adjusted to from 25 (fps), bit rate is adjusted to 320 (bps) from 400 (bps), to reduce the screen of talk on the journey to west game The data that curtain is recorded.
Preferably, system further includes storage unit:It is determined in basic storage region according to dynamic configuration file to running number According to the size per sub-regions in multiple subregions when carrying out fragmented storage.Preferably, application further includes, and obtains service to fortune Each segmentation in multiple segmentations of row data carries out segmentation recording using identical or different frame per second and/or bit rate, and Each segmentation basic unit of storage corresponding with multiple basic units of storage is associated.In the application, place is treated for convenience It ought to be handled with the operation data of acquisition, by the way of fragmented storage, be placed the data in multiple basic after segmentation In storage unit.The basic storage region of 1G is such as divided into 100M, the segmentation of 100M, 200M, 200M, 200M ..., wherein, The frame per second of screen recording and bit rate can be identical or different in every section of corresponding basic unit of storage, and And establish incidence relation of each segmentation with corresponding basic unit of storage.
Preferably, acquiring unit is additionally operable to:Obtain service to different video data using identical or different frame per second and/or Bit rate is recorded, and each video data subregion corresponding with multiple subregions is associated.In the application, obtain Different video data are recorded in service using identical or different frame per second and/or bit rate, wherein frame per second and/or bit rate Setting with record screen data importance and memory space residual capacity size it is related, in the application, each video counts It is associated according to subregion corresponding with multiple subregions.
Preferably, acquiring unit is additionally operable to:The service of acquisition can carry out content recognition to acquired video data, when true When the video data determined in particular sub-area is with being run in user equipment using unrelated data, video data is deleted.This In application, the operation data of acquisition is identified by obtaining service, i.e., the screen that talk on the journey to west in the application is played is recorded The content of data processed is identified, when finding in basic unit of storage, the screen recording data and talk on the journey to west of the first subregion The data of game running are unrelated, are such as ad data, then delete the screen recording data of the first subregion.
Preferably, acquiring unit is additionally operable to:The service of acquisition can carry out content recognition to acquired video data, when true When frame data relevant with the application that is run in user equipment can be converted to by determining the video data in particular sub-area, delete Video data.In the application, the operation data of acquisition is identified by obtaining service, such as the screen to talk on the journey to west game Data recording carries out content recognition, if it is determined that specific basic unit of storage, such as basic unit of storage of the 5th subregion store Screen recording data be screen recording data, i.e. basic unit of storage storage when game does not carry out any operation big talk west Trip record screen data, can be converted to frame data, therefore, delete the screen recording of the basic unit of storage storage of the 5th subregion Data.
Preferably, acquiring unit is additionally operable to:Obtain the video counts serviced to being stored in subregion arbitrary in multiple subregions According to progress data compression.In the application, by obtaining the content serviced to being stored in any one subregion in multiple segmentations Data compression is carried out, the record screen data that talk on the journey to west game is stored in the second subregion are such as subjected to compression processing, to save The memory space of data.
Generation unit 1304, the generation that video data acquisition is directed in response to receiving indicates, is regarded based on acquired Data are presented for carrying out the dynamic of dynamic content presentation according to generation in frequency.In the application, the talk on the journey to west of acquisition is played Screen recording data generate and data are presented for carrying out the dynamic of dynamic content presentation.
Dynamic is presented data according to data link and is transmitted to network site, to carry out dynamic content by display unit 1305 It presents.The dynamic of the talk on the journey to west of generation according to data link, is presented data and is transmitted to network site, to carry out by the application Dynamic content is presented, i.e., the screen recording content of talk on the journey to west is presented in network site into Mobile state.
Another embodiment of the present invention provides a kind of mobile terminal, and video counts are based on as above-mentioned including or for perform According to the system for carrying out dynamic content presentation.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as What subsidiary Patent right requirement was limited, in addition to the present invention other embodiments disclosed above are equally fallen the present invention's In the range of.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one of described device, component etc. example is construed to, unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.

Claims (10)

1. a kind of obtain the method for operation data based on memory capacity, the method includes:
Loading in response to startup and the system service of user equipment is completed, and runs the operation number for obtaining the user equipment According to acquisition service;
To it is pre-set storage information parse, with determine for store the operation data and with basis storage The basic storage region of capacity;
It is multiple when determining to carry out the operation data in the basic storage region fragmented storage according to dynamic configuration file The size of each basic unit of storage in basic unit of storage, and determine to use when the basic memory capacity of the basic storage region The storage rule of dynamic memory is carried out when to the greatest extent;And
The remaining memory capacity of the basic storage region is monitored in real time, when the remaining memory capacity is less than threshold value When, storage warming-up exercise associated with dynamic memory is carried out, and when the basic memory capacity according to the storage rule Dynamic memory is carried out according to the storage rule when using up.
2. it according to the method described in claim 1, further includes:In response to the startup of user equipment, chip guide function is from read-only Memory reads bootstrap and will be in the boot program loads to memory.
3. according to the method described in claim 2, after by the boot program loads to random access memory, the guiding journey The required storehouse of ordered pair operation kernel program and hardware device are initialized.
4. according to the method described in claim 3, after the initialization, kernel program is run, the kernel program setting is slow It deposits, protected storage, setting list of schedules and load driver, and loading system service is set.
5. according to the method described in claim 1, the user equipment pre-sets the storage information according to user's input And storing information described in user equipment memory storage.
6. a kind of obtain the system of operation data based on memory capacity, the system comprises:
Initialization unit, the loading in response to startup and the system service of user equipment are completed, run to obtain the user The acquisition service of the operation data of equipment;
Resolution unit parses pre-set storage information, to determine for storing the operation data and have There is the basic storage region of basic memory capacity;
Unit of memory allocation determines to be segmented the operation data in the basic storage region according to dynamic configuration file The size of each basic unit of storage in multiple basic units of storage during storage, and determine when the base of the basic storage region The storage rule of dynamic memory is carried out when plinth memory capacity is used up;And
Storage control unit monitors the remaining memory capacity of the basic storage region in real time, when the remaining storage When capacity is less than threshold value, storage warming-up exercise associated with dynamic memory is carried out, and when described according to the storage rule Dynamic memory is carried out according to the storage rule when basic memory capacity is used up.
7. system according to claim 6, the initialization unit is additionally operable to:In response to the startup of user equipment, guiding Chip functions read bootstrap from read-only memory and will be in the boot program loads to memory.
8. system according to claim 7, the initialization unit is additionally operable to:By the boot program loads to random After in memory, the bootstrap initializes the required storehouse of operation kernel program and hardware device.
9. system according to claim 8, the initialization unit is additionally operable to:After the initialization, kernel journey is run Sequence, the kernel program setting caching, setting protected storage, setting list of schedules and load driver, and load and be System service.
10. system according to claim 6, further includes setting unit:The user equipment is according to user's input come in advance The storage information is set and is storing information described in user equipment memory storage.
CN201711483363.5A 2017-12-29 2017-12-29 Method and system for acquiring operation data based on storage capacity Active CN108228477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483363.5A CN108228477B (en) 2017-12-29 2017-12-29 Method and system for acquiring operation data based on storage capacity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483363.5A CN108228477B (en) 2017-12-29 2017-12-29 Method and system for acquiring operation data based on storage capacity

Publications (2)

Publication Number Publication Date
CN108228477A true CN108228477A (en) 2018-06-29
CN108228477B CN108228477B (en) 2021-05-07

Family

ID=62647284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483363.5A Active CN108228477B (en) 2017-12-29 2017-12-29 Method and system for acquiring operation data based on storage capacity

Country Status (1)

Country Link
CN (1) CN108228477B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144723A (en) * 2018-07-23 2019-01-04 北京轻元科技有限公司 A kind of method and terminal for distributing memory space
CN109240987A (en) * 2018-08-18 2019-01-18 王梅 The method and system that data pre-fetching is carried out based on the time for mobile Internet
CN109271352A (en) * 2018-08-18 2019-01-25 王梅 The method and system that file prefetches are carried out according to status information in mobile Internet
CN112732189A (en) * 2021-01-07 2021-04-30 Oppo广东移动通信有限公司 Data storage method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100699A1 (en) * 2008-10-20 2010-04-22 Jason Caulkins Method for Controlling Performance Aspects of a Data Storage and Access Routine
CN104679649A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Software fluency testing method and device
CN106303331A (en) * 2016-08-18 2017-01-04 腾讯科技(深圳)有限公司 video recording method, terminal and system
CN106375696A (en) * 2016-09-30 2017-02-01 腾讯科技(深圳)有限公司 Screen recording method and device
CN107277607A (en) * 2017-06-09 2017-10-20 努比亚技术有限公司 A kind of screen picture method for recording, terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100699A1 (en) * 2008-10-20 2010-04-22 Jason Caulkins Method for Controlling Performance Aspects of a Data Storage and Access Routine
CN104679649A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Software fluency testing method and device
CN106303331A (en) * 2016-08-18 2017-01-04 腾讯科技(深圳)有限公司 video recording method, terminal and system
CN106375696A (en) * 2016-09-30 2017-02-01 腾讯科技(深圳)有限公司 Screen recording method and device
CN107277607A (en) * 2017-06-09 2017-10-20 努比亚技术有限公司 A kind of screen picture method for recording, terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
祝翘楚: "Android平台视频嗅探下载软件的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144723A (en) * 2018-07-23 2019-01-04 北京轻元科技有限公司 A kind of method and terminal for distributing memory space
CN109144723B (en) * 2018-07-23 2022-11-11 北京轻元科技有限公司 Method and terminal for allocating storage space
CN109240987A (en) * 2018-08-18 2019-01-18 王梅 The method and system that data pre-fetching is carried out based on the time for mobile Internet
CN109271352A (en) * 2018-08-18 2019-01-25 王梅 The method and system that file prefetches are carried out according to status information in mobile Internet
CN109271352B (en) * 2018-08-18 2021-10-22 上海豹云网络信息服务有限公司 Method and system for prefetching files in mobile internet according to state information
CN109240987B (en) * 2018-08-18 2021-10-22 上海豹云网络信息服务有限公司 Method and system for prefetching data based on time for mobile internet
CN112732189A (en) * 2021-01-07 2021-04-30 Oppo广东移动通信有限公司 Data storage method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108228477B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN108228477A (en) It is a kind of that the method and system of operation data are obtained based on memory capacity
CN106487781A (en) Based on live resource data processing method, device and system
CN105577777B (en) message processing method, device and system
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
US20140344286A1 (en) Method and apparatus for displaying webcast roomss
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
US20080313230A1 (en) System and method for managing evolving user preferences
CN110708571B (en) Video clip playing control method and related product
CN108600850B (en) Video sharing method, client, server and storage medium
CN108108294A (en) A kind of method and system that customization operation data are obtained according to fiducial time
CN108121640A (en) A kind of method and system for the operation data of acquisition application automatically
KR101783431B1 (en) Method for providing funding and consulting information related with entertainment by crowd funding system
CN115004672B (en) Information pushing method, device, server and storage medium
CN109618176A (en) A kind of processing method of live broadcast service, equipment and storage medium
CN112766945A (en) Virtual resource allocation processing method, device, equipment and storage medium
CN107508914A (en) A kind of accurate method for pushing of message and system based on cloud computing analysis
CN108282668B (en) Video acquisition method and system
CN108174245A (en) A kind of method and system that dynamic content presentation is carried out based on video data
CN109151600B (en) Special effect missing compensation method and device, server and storage medium
KR101401961B1 (en) System for sharing augmented reality contents and method thereof
CN105872634A (en) Video data sharing method and device
CN106507195A (en) Method based on the intelligent television application handover management of linux system
US8291004B2 (en) Remotely controlling playback of media content on a wireless communication device
CN112016280B (en) File editing method and device and computer readable medium
US20120059873A1 (en) Download Logic for Web Content

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
GR01 Patent grant
GR01 Patent grant