Summary of the invention
One of technical problem that the application is intended to solve in correlation technique the most to a certain extent.
To this end, the first of the application purpose is to propose a kind of record screen method, the method achieve the record screen literary composition of acquisitionIn part, both include the interface treating record screen application, include again the picture of camera collection, enrich the quantity of information of record screen file, fullThe foot user demand to record screen file difference purposes, improves Consumer's Experience.
Second purpose of the application is to propose a kind of record screen device.
For reaching above-mentioned purpose, the application first aspect embodiment proposes a kind of record screen method, including: determining that record screen is openedAfter beginning, obtain the camera information of terminal;Utilize described camera information, control target photographic head and open;Target is imagedThe picture that head gathers shows in preset window on a terminal screen, so that both including the interface treating record screen application on terminal screenInclude again the picture of target camera collection.
In a kind of possible way of realization of first aspect, described utilize described camera information, control target shootingHead is opened, including:
Call photographic head run function, control the photographic head corresponding with target camera information and open.
In the alternatively possible way of realization of first aspect, described utilize described camera information, control target and take the photographBefore opening as head, also include:
Type according to terminal, the mark treating record screen application and/or the setting of user, determine target camera information.
In the alternatively possible way of realization of first aspect, the described picture by target camera collection showed at endBefore in preset window on end screen, also include:
According to default rule, described terminal screen creates described preset window.
In another possible way of realization of first aspect, the rule that described basis is preset, at described terminal screenThe described preset window of upper establishment, including:
According to default rule, the described interface treating record screen application creates described default window;
Or, according to default rule, on described terminal screen and treat record screen application interface outside create described pre-If window.
In another possible way of realization of first aspect, also include:
Receive user's touch control operation to described preset window;
According to described touch control operation, described preset window is moved, closes, zooms in or out process.
The record screen method of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, abundantThe quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience.
For reaching above-mentioned purpose, the application second aspect embodiment proposes a kind of record screen device, including: acquisition module, useIn after determining that record screen starts, obtain the camera information of terminal;Control module, is used for utilizing described camera information, controlTarget photographic head processed is opened;Display module, for showing default window on a terminal screen by the picture of target camera collectionIn Kou, so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection.
In a kind of possible way of realization of second aspect, described control module, specifically for:
Call photographic head run function, control the photographic head corresponding with target camera information and open.
In the alternatively possible way of realization of second aspect, also include:
Determine module, for the type according to terminal, treat that mark and/or the setting of user of application are shielded in record, determine targetCamera information.
In the alternatively possible way of realization of second aspect, also include:
Creation module, for according to the rule preset, creating described preset window on described terminal screen.
In another possible way of realization of second aspect, described creation module, specifically for:
According to default rule, the described interface treating record screen application creates described default window;
Or, according to default rule, on described terminal screen and treat record screen application interface outside create described pre-If window.
In another possible way of realization of second aspect, also include:
Receiver module, for receiving user's touch control operation to described preset window;
Processing module, for according to described touch control operation, moves described preset window, close, zooms in or outProcess.
The record screen device of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, abundantThe quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience.
Detailed description of the invention
Embodiments herein is described below in detail, and the example of described embodiment is shown in the drawings, the most from start to finishSame or similar label represents same or similar element or has the element of same or like function.Below with reference to attachedThe embodiment that figure describes is exemplary, it is intended to be used for explaining the application, and it is not intended that restriction to the application.
Below with reference to the accompanying drawings the record screen method and device of the embodiment of the present application is described.
Fig. 1 is the schematic flow sheet of the record screen method of one embodiment of the application.
As it is shown in figure 1, this record screen method includes:
Step 101, after determining that record screen starts, obtains the camera information of terminal.
Concrete, that the executive agent of the record screen method that the present embodiment provides provides for the embodiment of the present application record screen device,This record screen device can be configured in any has photographic head or can be in the terminal of external camera, for the screen to terminalOn the operation that carries out carry out recording screen and process.
It should be noted that the type of terminal can have multiple, it is such as mobile phone, computer or Intelligent worn device etc..
Wherein, the information of photographic head, can include in following information is any one or more: the position of photographic head, take the photographAs the sequence number of head, model and pixel etc..
Concrete, record screen device can obtain the camera information of terminal in several ways.Such as, can be according to userInput, obtain camera information, or record screen device can also be by recursive call terminalCamera.getCameraInfo function, obtains the information of photographic head.
It is understood that record screen device is after getting the camera information of terminal, this locality can be stored that information in,Directly to use during record screen next time.
Step 102, utilizes described camera information, controls target photographic head and opens.
Wherein, target photographic head can by user setup, or can also be that record screen device is according to the rule presetDetermining, this is not construed as limiting by the present embodiment.
Concrete, record screen device, can open by sending the request opening target photographic head to the control system of terminalOpen target photographic head.Or, it is also possible to by calling the photographic head run function (Camera.open) in terminal, start meshMark photographic head, accordingly, above-mentioned steps 102, including:
Call photographic head run function, control the photographic head corresponding with described target camera information and open.
If during it is understood that photographic head run function controls photographic head startup, the parameter of utilization is camera positionInformation, then record screen device needs to obtain the positional information of target photographic head, so that what photographic head run function imaged according to targetPositional information, opens target photographic head;If photographic head run function controls photographic head startup, the parameter of utilization is photographic head sequenceNumber, then record screen device needs to obtain the sequence number of target photographic head, so that the sequence number that photographic head run function images according to target, opensOpen target photographic head.
Step 103, shows the picture of target camera collection in preset window on a terminal screen, so that end panelNot only include on curtain treating the interface of record screen application but also including the picture of target camera collection.
Concrete, the picture of camera collection, after opening target photographic head, can be shown at end panel by record screen deviceOn curtain, so that in record screen picture, both include the interface treating record screen application, include again the picture of target camera collection, fromAnd add the quantity of information comprised in record screen file.
It is understood that the size being smaller in size than terminal screen of preset window, and the position of preset window, permissibleAccording to treating that record screen application determines.
Such as, if treating, the main display interface of record screen application is positioned at the center of whole display interface, then can treatOther position outside the main display interface of record screen application creates preset window, i.e. creates pre-on the interface treating record screen applicationIf window.
Or, it is also possible to the interface treating record screen application is reduced, shields application interface the most on a terminal screen and waiting to recordOutside create described preset window.Wherein, treat the display interface of record screen application and the dimension scale of the picture of camera collection, canDetermine with the image content according to the type and camera collection treating record screen application.Such as, if treating, record screen application should for music classWith, the facial expression of the operator recorded for utilizing this application to carry out of camera collection and mouth pronunciation, then treat that record screen shouldInterface and camera collection picture can by 1:1,1:1.5, or 2:1 ratio split terminal screen area;If orIn record screen file, it is desirable to highlight the application interface treating record screen, then wait that the picture recording the interface of screen application and camera collection is permissibleTerminal screen area is split in the ratio of 4:1 or 5:1 etc..
The record screen method of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, abundantThe quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience.
By above-mentioned analysis, record screen device, can determine that target is taken the photograph according to the rule arranging or presetting of userAs head, then control target photographic head and open, below in conjunction with Fig. 2, record screen device is determined that the process that target images is carried out in detailExplanation.
Fig. 2 is the schematic flow sheet of the record screen method of another embodiment of the application.
As in figure 2 it is shown, this record screen method, including:
Step 201, after determining that record screen starts, obtains the camera information of terminal.
Step 202, according to the type of terminal, the mark treating record screen application and/or the setting of user, determines target photographic headInformation.
For example, if terminal is desktop computer, photographic head may be by what USB port was connected with terminal, accordinglyThe camera information obtained potentially includes USB interface information, accordingly, when selecting target photographic head, then can connect according to USBThe information of mouth determines target photographic head.
Or, if according to mark or the setting of user for the treatment of that record screen is applied, determining that needs obtain in terminal display screen frontThe facial expression of operator or limb action, then can determine target photographic head according to the position of photographic head, such as determineTarget photographic head is the front-facing camera of terminal.
Or, can be in record screen device, the most preset application identities and the mapping relations table of camera identification so that recordScreen device, can determine mark or the position of target photographic head according to the mark of current record screen application by inquiry mapping relations tablePut, and then according to the information of the target photographic head selecting correspondence from the camera information obtained.
Step 203, calls photographic head run function, controls the photographic head corresponding with described target camera information and opens.
Step 204, according to default rule, creates described preset window on described terminal screen.
Wherein, the rule preset, can be that user is arranged in advance, it is also possible to be that record screen device is according to treating record screen applicationFeature generates.
Concrete, above-mentioned steps 204 can be realized by following various ways.
Example one:
According to default rule, the described interface treating record screen application creates described default window.
Example two:
According to default rule, on described terminal screen and outside treating record screen application interface, create described default windowMouthful.
For example, user can be arranged in record screen device in advance, and different treats the preset window that record screen application is correspondingAttribute, the size of such as preset window, its position in terminal screen and the response etc. to event, then record screen deviceAfter determining record screen starts, both can search the corresponding relation of preset window attribute and application identities, so that it is determined that with currently record screenThe attribute of the preset window that application is corresponding, and according to the attribute of preset window, create preset window on a terminal screen.
Concrete, a top-level windows can be created as preset window, so by calling WindowManager serviceAfter call WindowManager.LayoutParams to arrange window attribute, recall WindowManager.addView ()These forms are added on terminal screen.
It should be noted that the window preset created can be shown by the form of top-level windows is treating record screen application circleThe ad-hoc location in face, ratio is as shown in the upper left corner or lower right corner for the treatment of record screen application interface etc..Or, the window preset of establishmentMouthful can also with treat record screen application interface be displayed side by side on a terminal screen.This is not construed as limiting by the present embodiment.
In a kind of possible way of realization, it is also possible to create multiple preset window on a terminal screen, show differenceThe different pictures of target camera collection, or the picture of same target camera collection is shown difference on a terminal screenPosition etc., this is not construed as limiting by the present embodiment.
Step 205, shows the picture of target camera collection in preset window on a terminal screen.
The record screen method of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfterwards according to type, the mark arranging or treating record screen application of user of terminal, determine target camera information, then call and take the photographAs head run function, control the target photographic head corresponding with target camera information and open, and by the picture of target camera collectionFace shows in preset window on a terminal screen, so that not only including the interface waiting to record screen application but also include target on terminal screenThe picture of camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again shootingThe picture that head gathers, enriches the quantity of information of record screen file, meets user's demand to record screen file difference purposes, improvesConsumer's Experience.
Fig. 3 is the schematic flow sheet of the record screen method of another embodiment of the application.
As it is shown on figure 3, on the basis of based on this record screen method shown in above-mentioned Fig. 1, this record screen method, also include:
Step 301, receives user's touch control operation to described preset window;
Step 302, according to described touch control operation, moves described preset window, close, zooms in or out process.
Concrete, if the preset window created accepts event, then user can be during record screen, at any time to preset windowOperate, such as move the position of preset window, close preset window, or minimized etc..
If it is understood that the preset window created does not accepts event, then after preset window once creates, disappearingBefore, user cannot carry out torr and move, closes or scaling process preset window, and preset window can only be according to default termination conditionTerminating, while such as record screen terminates, preset window also terminates display, or after photographic head stops gathering picture, presets windowMouth terminates display etc., and this is not limited by the present embodiment.
The record screen method of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection,And after receiving user's touch control operation to preset window, according to the touch control operation of user, preset window is carried out corresponding positionReason.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, richThe rich quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience, and rootAccording to the operation of user, preset window is closed, moves or scaling process, further improve Consumer's Experience.
In order to realize above-described embodiment, the application also proposes a kind of record screen device.
Fig. 4 is the structural representation of the record screen device of one embodiment of the application.
As shown in Figure 4, this record screen device includes:
Acquisition module 41, for, after determining that record screen starts, obtaining the camera information of terminal;
Control module 42, is used for utilizing described camera information, controls target photographic head and opens;
Display module 43, for the picture of target camera collection is shown in preset window on a terminal screen, withMake on terminal screen not only to include treating the interface of record screen application but also including the picture of target camera collection.
Concrete, described control module 42, specifically for:
Call photographic head run function, control the photographic head corresponding with target camera information and open.
It should be noted that the aforementioned explanation to record screen embodiment of the method is also applied for the record screen dress of this embodimentPutting, here is omitted.
The record screen device of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, abundantThe quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience.
Fig. 5 is the structural representation of the record screen device of another embodiment of the application.As it is shown in figure 5, based on shown in Fig. 4Embodiment, this record screen device, also include:
Determine module 51, for the type according to terminal, treat that mark and/or the setting of user of application are shielded in record, determine meshMark camera information.
In a kind of possible way of realization, this record screen device, also include:
Creation module 52, for according to the rule preset, creating described preset window on described terminal screen.
Further, above-mentioned creation module 52, specifically for:
According to default rule, the described interface treating record screen application creates described default window;
Or, according to default rule, on described terminal screen and treat record screen application interface outside create described pre-If window.
It should be noted that the aforementioned explanation to record screen embodiment of the method is also applied for the record screen dress of this embodimentPutting, here is omitted.
The record screen device of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfterwards according to type, the mark arranging or treating record screen application of user of terminal, determine target camera information, then call and take the photographAs head run function, control the target photographic head corresponding with target camera information and open, and by the picture of target camera collectionFace shows in preset window on a terminal screen, so that not only including the interface waiting to record screen application but also include target on terminal screenThe picture of camera collection.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again shootingThe picture that head gathers, enriches the quantity of information of record screen file, meets user's demand to record screen file difference purposes, improvesConsumer's Experience.
Fig. 6 is the structural representation of the record screen device of another embodiment of the application, as shown in Figure 6, based on real shown in Fig. 4On the basis of executing example, this device, also include:
Receiver module 61, for receiving user's touch control operation to described preset window;
Processing module 62, for according to described touch control operation, moves described preset window, close, reduces or putsBig process.
It should be noted that the aforementioned explanation to record screen embodiment of the method is also applied for the record screen dress of this embodimentPutting, here is omitted.
The record screen device of the embodiment of the present application, after determining that record screen starts, first obtains the camera information of terminal, soAfter utilize camera information, control target photographic head and open, and the picture of target camera collection is shown on a terminal screenPreset window in so that not only including on terminal screen treating the interface of record screen application but also including the picture of target camera collection,And after receiving user's touch control operation to preset window, according to the touch control operation of user, preset window is carried out corresponding positionReason.Thus so that in the record screen file of acquisition, both include the interface treating record screen application, include again the picture of camera collection, richThe rich quantity of information of record screen file, meets user's demand to record screen file difference purposes, improves Consumer's Experience, and rootAccording to the operation of user, preset window is closed, moves or scaling process, further improve Consumer's Experience.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically showExample " or the description of " some examples " etc. means to combine this embodiment or example describes specific features, structure, material or spyPoint is contained at least one embodiment or the example of the application.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importanceOr the implicit quantity indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express orImplicitly include at least one this feature.
In flow chart or at this, any process described otherwise above or method description are construed as, and expression includesOne or more is for realizing the module of code, fragment or the portion of the executable instruction of the step of specific logical function or processPoint, and the scope of the preferred implementation of the application includes other realization, wherein can not by shown or discuss suitableSequence, including according to involved function by basic mode simultaneously or in the opposite order, performs function, and this should be by the applicationEmbodiment person of ordinary skill in the field understood.
Should be appreciated that each several part of the application can realize by hardware, software, firmware or combinations thereof.Above-mentionedIn embodiment, the software that multiple steps or method in memory and can be performed by suitable instruction execution system with storageOr firmware realizes.Such as, if realized with hardware, with the most the same, available well known in the art underAny one or their combination in row technology realize: have the logic gates for data signal realizes logic functionDiscrete logic, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), on-the-spotProgrammable gate array (FPGA) etc..
Those skilled in the art are appreciated that and realize all or part of step that above-described embodiment method is carriedSuddenly the program that can be by completes to instruct relevant hardware, and described program can be stored in a kind of computer-readable storage mediumIn matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
Storage medium mentioned above can be read only memory, disk or CD etc..Although having shown that above and retouchingState embodiments herein, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the applicationSystem, above-described embodiment can be changed, revise, replace and become in scope of the present application by those of ordinary skill in the artType.