Summary of the invention
In view of this, the present invention provides a kind of data output method and device across application program, can be realized in differenceWhen switching between APP, the data of APP output before switching, such as video content, normal play are exported and are not disrupted.Technical solutionIt is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of data output method, is applied in terminal, the method packetIt includes:
In the case where detecting that the terminal switches to the second application program by the first application program, described first is answeredContinue to show in first floating layer of the top set being pre-created with the data-moving of program to the terminal;
The data of second application program are shown in the second floating layer of the terminal, and show institute in the terminalRegion and the region for the data for showing first application program for stating the data of the second application program be not be overlapped.
Optionally, described to apply journey for described first when first application program is video playback class application programContinuing display in first floating layer of the top set that the data-moving of sequence is pre-created to the terminal includes: by described first using journeyContinue to show in the broadcast window shown on the data-moving of sequence to first floating layer.
Optionally, first floating layer is the transparent floating layer of a global top set.
Optionally, the method also includes: obtain operating body on the terminal executes operate when operation information;
When the corresponding region of the operation information is the broadcast window region, according to the operation information to instituteThe data display mode or the broadcast window for stating the first application program are controlled;
When the corresponding region of the operation information be first floating layer in addition to the broadcast window regionWhen region, second application program is controlled according to the operation information.
Optionally, described when the corresponding region of the operation information is the broadcast window region, according to describedOperation information carries out control to the data display mode of first application program or the broadcast window
When the corresponding region of the operation information is the broadcast window region, determined according to the operation informationOperational order;
When the operational order shows to move the broadcast window, broadcast according to operation information determinationThe position that window will be moved to is put, and the broadcast window is moved to identified position, at identified positionContinue to show the data of first application program;
The data by second application program show to include: according to determining in the second floating layer of the terminalPosition, adjust display of the data of second application program in second floating layer.
Optionally, it is switched to when the operational order shows that the data display mode by first application program is restored toWhen display mode before the second application program, continue to show described first according to the display mode before the second application program is switched toThe data of application program;
Hide the broadcast window shown in first floating layer;
The data by second application program show to include: according to determining in the second floating layer of the terminalPosition, adjust display of the data of second application program in second floating layer.
Based on another aspect of the present invention, the present invention provides a kind of data output device, is applied in terminal, described deviceInclude:
Detection unit, for detecting whether the terminal by the first application program switches to the second application program;
Data-moving unit, for detecting that the terminal switches to second by the first application program in the detection unitIn the case where application program, the first of the top set that the data-moving of first application program to the terminal is pre-created is floatedContinue to show on layer;
Display unit, for the data of second application program to be shown in the second floating layer of the terminal, and instituteIt states the region for the data for showing second application program in terminal and shows the region of the data of first application program notOverlapping.
Optionally, when first application program is video playback class application program, the data-moving unit is specificFor that will continue to show in the broadcast window that shown on the data-moving of first application program to first floating layer.
Optionally, first floating layer is the transparent floating layer of a global top set.
Optionally, described device further include:
Acquiring unit, for obtaining operation information when operating body executes operation on the terminal;
Control unit is used for when the corresponding region of the operation information is the broadcast window region, according to instituteOperation information is stated to control the data display mode of first application program or the broadcast window;And when describedWhen the corresponding region of operation information is the region in first floating layer in addition to the broadcast window region, according to describedOperation information controls second application program.
Optionally, described when the corresponding region of the operation information is the broadcast window region, the controlUnit is specifically used for,
When the corresponding region of the operation information is the broadcast window region, determined according to the operation informationOperational order;
When the operational order shows to move the broadcast window, broadcast according to operation information determinationThe position that window will be moved to is put, and the broadcast window is moved to identified position, at identified positionContinue to show the data of first application program;
The display unit is specifically used at this time, according to identified position, adjusts the data of second application programDisplay in second floating layer.
Optionally, it is switched to when the operational order shows that the data display mode by first application program is restored toWhen display mode before the second application program, described control unit is also used to, according to switching to the display before the second application programMode continues to show the data of first application program;Hide the broadcast window shown in first floating layer;
The display unit is specifically used at this time, according to identified position, adjusts the data of second application programDisplay in second floating layer.
In data output method and device provided by the invention across application program, detecting terminal by first using journeyIn the case that sequence switches to the second application program, the of the top set that the data-moving of the first application program to terminal is pre-createdContinue to show in one floating layer, and the data of the second application program are shown in the second floating layer of terminal, and is corresponded in terminalShow the display first in the first floating layer corresponding in terminal of the region of the data of the second application program using journey in second floating layerThe region of the data of sequence is not overlapped, and in this way after terminal switches to the second application program by the first application program, terminal is secondWhile exporting the data of the second application program in floating layer, the first application program is continued to output yet by the first floating layer of top setData, the output without interrupting the first application data, therefore the present invention realizes when switching between different application,It ensure that the first application program (APP before switching) data continue to output, for example continue to play video, without interrupting dataOutput.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, it illustrates a kind of data output method across application program provided by the invention, this method is specificApplied in terminal, the terminal is specially to support the terminal of touch control, such as mobile phone, tablet computer mobile terminal, can alsoThink some non mobility large size touch control devices etc. for user experience.Method may include:
Step 101, in the case where detecting that the terminal switches to the second application program by the first application program, by instituteIt states and continues to show in the first floating layer of the top set that the data-moving of the first application program is pre-created to the terminal.
In the present invention, the first floating layer is the floating layer of a top set, and the data shown in first floating layer can be preferably displaying in endThe top layer at end.First application program, the second application program can be video playing APP, webpage APP, news APP, books and periodicals APPEtc., the first application program and the second application program in the present invention are two entirely different application programs.
As a preferred embodiment of the embodiment of the present invention, the first floating layer in the present invention is the transparent of a global top setFloating layer, wherein global refer to that the size of the transparent floating layer is identical with the size of terminal current display screen, top set indicates this thoroughlyThe level of bright floating layer is top.Because the first floating layer is the transparent floating layer of a global top set, the transparent float in the present inventionLayer is placed on the top of all floating layers in terminal, and the high priority data shown in the transparent floating layer is shown, and other in terminalThe floating layer of APP will all be located under the transparent floating layer, and it shows that data will also be hidden by the data shown in transparent floating layerGear.
Further in the present invention, when the first application program is video playback class application program, include in the transparent floating layerOne is used for the broadcast window of playing video data, and the present invention is specifically by the data-moving of the first application program to the overall situation top setContinue to show in the broadcast window shown in transparent floating layer.
In actual application of the present invention, it is complete that the present invention can pre-define a kind of new operating mode-in the terminalOffice's watching mode will automatically create the first floating layer of top set, thus detecting end after terminal enters global watching modeWhen end switches to the second application program by the first application program, by the data-moving of the first application program to terminal first floating layerOn continue to show, to guarantee that the currently playing video of terminal will not be interrupted because of the switching between different APP.
Corresponding triggering link can be pre-created in corresponding overall situation watching mode, the present invention, pass through detection user's touchingBy the triggering link so that it is determined that user opens global watching mode, thus controlling terminal opens global watching mode.Specifically,Triggering link can be a physical button, can also be a virtual key.
In view of the convenience of user's operation, the present invention can be separately provided at the terminal one for trigger unlatching terminal intoEnter the physical button of global watching mode, virtual key can also be hidden in current video playback window, when user touchesAfter video playback window, which is appeared in current video playback window.Further contemplate some video contentsBelong to the uninterested content of most users, such as the video etc. that advertisement, user had been watched under normal circumstances, then thisIt, can be direct when invention can determine that advertisement is the uninterested content of user based on the hobby behavior of the most users of statisticsThe virtual key is shown in the video playback window for playing advertisement, so that user directly touches by the virtual key, to controlTerminal opens global watching mode.
In the present invention, terminal will be received and be used for after detecting user's touching by the triggering link of global watching modeThe control instruction of global watching mode is opened, and then creates the transparent floating layer of the overall situation top set based on the control instruction.
Step 102, the data of second application program are shown in the second floating layer of the terminal, and the terminalThe region and the region for the data for showing first application program of the data of upper display second application program be not be overlapped.
Wherein the second floating layer is the next stage floating layer of the first floating layer.
The present invention is after detecting that terminal switches to the second application program by the first application program, the first floating layer of the top setThe broadcast window of upper display continues to show the data of the first application program, while the second application program is shown in the second floating layerData, and in terminal, the region of the corresponding data that the second application program is shown in the second floating layer is with corresponding in the first floating layerShow that the region of the data of the first application program is not overlapped, to guarantee the data of the second application program shown in the second floating layerIt is displayed on the terminals simultaneously with the data of the first application program shown in the first floating layer.
Data output method provided by the invention is detecting that terminal switches to the second application program by the first application programIn the case where, it will continue to show in the first floating layer of the top set that the data-moving of the first application program to terminal is pre-created, andThe data of second application program are shown in the second floating layer of terminal, and show the area of the data of the second application program in terminalDomain and the region of the data of the first application program of display be not be overlapped, in this way when terminal switches to the second application by the first application programAfter program, terminal continues while exporting the data of the second application program in the second floating layer yet by the first floating layer of top setThe data for exporting the first application program, the output without interrupting the first application data, therefore the present invention is realized notWhen with switching between application program, the first application program (APP before switching) guarantees to continue to output data, for example continues to play viewFrequently, without interrupting data output.
For the ease of data output method provided by the invention is more clearly understood, in the following embodiments of the present inventionIn, it will be described for applicant will be video APP by the first application program, the second application program is other APP.
Specifically, it is assumed that terminal is mobile phone, and the broadcast window on the current display screen of mobile phone exports video information, in conjunction with Fig. 2Shown, mobile phone currently opens some video APP, and the video APP current display page includes being located at mobile phone screen top halfVideo playback window, which is playing " Chu Qiaochuan " video and positioned at mobile phone screen lower half portionTouch display area, touch display area output have the contents such as video recommendations, feed stream, user comment.Certainly, in the present inventionThe video APP current display page may be video full-screen display mode, i.e., current phone screen is completely used for playing " Chu QiaoPass " video.
Based on above-mentioned scene, data output method provided by the invention is as shown in figure 3, may include:
Step 301, after detecting the control instruction for opening global watching mode, the transparent of a global top set is createdFloating layer.
Step 302, a broadcast window is created in the predetermined position of transparent floating layer.
Step 303, in the case where detecting that mobile phone switches to other APP by video APP, video on video APP is broadcast" Chu Qiaochuan " video data for putting window broadcasting, which is moved in the broadcast window shown in transparent floating layer, to be continued to show.
The present invention creates one for continuing in the predetermined position of the transparent floating layer first after creating a transparent floating layerPlay the broadcast window of " Chu Qiaochuan " video, the and then " Chu that video playback window on video APP (i.e. former broadcast window) is playedQiao's biography " video data is moved and continues to show in the broadcast window (i.e. new broadcast window) shown in transparent floating layer.It is wherein pre-If the top left region of for example transparent floating layer in position, lower right area, intermediate region etc..What the present invention created in transparent floating layer broadcastsThe size for putting window is determined by the preset size of research staff, has generally just been designed in product design.Specifically creatingWhen building broadcast window, the preset size of terminal direct basis generates correspondingly sized, shape broadcast window.In the present invention,The broadcast window created in transparent floating layer can be a rectangular window, circular window etc., and the present invention is to its specific performanceForm is without limitation.
It should be noted that for ease of description, being used on mobile phone display screen before the present invention will open global watching modeIt is referred to as " former broadcast window " in the window of broadcasting " Chu Qiaochuan " video, after opening global watching mode, in the transparent of top setThe window for continuing to play " Chu Qiaochuan " video created in floating layer is referred to as " new broadcast window ".
In the present invention, the new broadcast window created in the transparent floating layer of global top set is used to that former broadcast window to be replacedContinue to output video information.Preferably, the present invention obtains new broadcast window in creation, and passes through the new broadcast window outputWhen video information, while hiding former broadcast window.
For concrete example as shown in figure 4, before opening global watching mode, the upper partial region of mobile phone screen is former broadcasting windowMouthful, for playing video, lower partial region is for showing the other information in addition to video, such as user comment.Opening global seeIt sees after mode, new broadcast window rectangularity shape appears in the lower right area of mobile phone screen, and former broadcast window disappears, handRemaining region (including region shared by former broadcast window), then be completely used for the other information shown in addition to video in machine screen.
Step 304, the data of other APP are shown in the second floating layer of mobile phone, and corresponded in terminal in the second floating layerRegion " Chu Qiaochuan " video that video APP is shown in transparent floating layer corresponding in terminal of the upper data for showing other APPThe region of data is not overlapped.
In the present invention, after making mobile phone switch to other new APP by video APP by response user's operation, transparentThe broadcast window created in floating layer continues to play " Chu Qiaochuan " video data, while is removed in transparent floating layer in mobile phone and showing videoOther regions except the region of " Chu Qiaochuan " video data of APP are then completely used for other new APP's that display switches toContent of pages, as shown in Figure 5.
In the present invention, response user's operation may include: for iphone mobile phone, such as detect user double-clickHome key, and then the selection operation of some APP is selected, for android mobile phone, such as detect that user clicks menuKey, and then select the selection operation of some APP.
In the present invention, mobile phone passes through during former broadcast window exports video information, when detecting for opening the overall situationAfter the control instruction of watching mode, the transparent floating layer of a global top set is created first, and then in the default position of the transparent floating layerOne new broadcast window of place's creation is set, the video information is continued to output by the new broadcast window;So when mobile phone switchesTo other APP, mobile phone is new yet by what is shown in transparent floating layer when exporting the content of pages of other new APPBroadcast window in continue to output the video information, without break of video play, it is thus achieved that in different applicationBetween when switching, the output of video content normal play.
Further on the basis of the above embodiments, the present invention is by the data-moving of the first application program to the first floating layerContinue to show in the broadcast window of upper display, after the data of the second application program are shown in the second floating layer of terminal, thisInvention can also include: the operation information obtained when operating body executes operation on the terminal.Wherein operating body is, for example, to useFamily finger, stylus etc..Specifically:
1) when the corresponding region of the operation information is the broadcast window region, according to the operation information pairThe data display mode of first application program or the broadcast window are controlled.
2) when the corresponding region of the operation information be first floating layer in addition to the broadcast window regionRegion when, second application program is controlled according to the operation information.
Situation 1) is planted for the:
In the present invention, when executing operation on the broadcast window region that user shows in the first floating layer, terminal is obtainedThe corresponding region of the operation information got is the broadcast window region, and terminal determines that operation refers to according to operation information at this timeIt enables.
Wherein, when operational order shows to move the broadcast window, according to operation information determinationThe position that broadcast window will be moved to, and the broadcast window is moved to identified position, in identified positionContinue to show the data of first application program in place;Terminal applies journey according to identified position, adjustment described second simultaneouslyDisplay of the data of sequence in second floating layer, to guarantee the data and the second application program of the first application program of displayData are not overlapped.
In actual application of the present invention, the broadcast window created in the first floating layer can be designed as a fixed bitIt sets, immovable window, mobile window can be carried out the case where meeting preset condition by being also designed to one.
For broadcast window is fixed position, immovable window, when terminal switches between different APP, this is broadcastPut that the display position of window at the terminal is constant always, such as the new broadcast window is always positioned at the lower right area of mobile phone screenPlay video.
It is that one can carry out for mobile window the case where meeting preset condition for broadcast window, preset condition can be withThe time for pressing the broadcast window for user's finger is greater than preset time threshold.Wherein time threshold is, for example, 2.5 seconds, 3 seconds etc.,This is not limited by the present invention.So when terminal detects that user's finger presses the time of the broadcast window greater than preset time thresholdWhen value, it is mobile that the broadcast window can be dragged, until the broadcast window is dragged to specified location in user.
Wherein, it switches to second when operational order shows that the data display mode by first application program is restored to and answersWith the display mode before program, then the present invention continues to show described first according to the display mode before switching to the second application programData of application program, while hiding the broadcast window shown in first floating layer, and according to identified position, adjustment theDisplay of the data of two application programs in the second floating layer, to guarantee that the data and second of the first application program of display apply journeyThe data of sequence do not overlap.
In actual application of the present invention, such as when detecting user's finger click play window, terminal is gotOperation information, and the operational order determined according to operation information is to be restored to the data display mode of first application programDisplay mode before switching to the second application program.
More specifically, terminal determines user after such as user clicks the broadcast window in the first floating layer by clicking operationThe operational order of broadcast window is chosen, and then exits global watching mode, video information is continued to output by former broadcast window, simultaneouslyHide the broadcast window.
It should be noted that clicking operation here is identical as the user's pressing operation of broadcast window addressed above,It only difference is that user presses the time difference of broadcast window, it is, if a terminal detects that user presses broadcast windowTime be not more than preset time threshold, terminal determine the pressing operation be click play window clicking operation, when terminal examineIt measures user and presses the time of broadcast window greater than preset time threshold, it is determined that the pressing operation is dragging for mobile broadcast windowDynamic operation.
Specifically, the present invention, which continues to output video information by former broadcast window, to be, mobile phone screen is switched to full frame aobviousWhen showing mode, former broadcast window continues to output video information in a manner of being displayed in full screen, or, mobile phone screen is switched to page browsingWhen display pattern, former broadcast window continues to output video information in the fixed position of the page including former broadcast window.
The present invention supports user by clicking the broadcast window in the first floating layer, so that terminal rapidly exits the overall situation in timeWatching mode, it is easy to operate, improve the experience that user watches video.
Situation 2) is planted for the:
In the present invention, when user executes operation on other regions in addition to broadcast window region, terminal is obtainedThe corresponding region of the operation information got is region in addition to broadcast window region in the first floating layer, at this time terminal according toOperation information controls the second application program.
Wherein, by taking the second application program is specially news category application program as an example, according to operation information to the in the present inventionTwo application programs, which carry out control, may include: the data for refreshing the second application program and currently showing, page turning, chooses certain news letterIt ceases and is checked, returned etc..According to the control that operation information carries out the second application program for the second application in the present inventionThe conventional control of the had function of program itself.
Because the first floating layer in the present invention is a transparent floating layer, user is in addition to broadcast window regionThe operation executed on other regions can be transparent to the second floating layer, realize the control to the second application program, such as the second applicationProgram is currently browsing webpage, and the present invention can be instructed by transparent transmission, the operation such as realizes the page turning of webpage, clicks.
Based on a kind of data output method provided by the invention above, the present invention also provides a kind of data output devices, answerFor in terminal, as shown in fig. 6, device includes:
Detection unit 100, for detecting whether the terminal by the first application program switches to the second application program;
Data-moving unit 200, for detecting that the terminal is switched by the first application program in the detection unit 100To the second application program, top set that the data-moving of first application program to the terminal is pre-createdContinue to show in first floating layer;
Display unit 300, for the data of second application program to be shown in the second floating layer of the terminal, andThe region of the data of second application program is shown in the terminal and shows the region of the data of first application programIt is not overlapped.
Wherein, when first application program is video playback class application program, the data-moving unit 200 is specificFor that will continue to show in the broadcast window that shown on the data-moving of first application program to first floating layer.
In the present invention preferably, first floating layer is the transparent floating layer of a global top set.
Optionally, as shown in fig. 7, data output device provided by the invention can also include:
Acquiring unit 400, for obtaining operation information when operating body executes operation on the terminal;
Control unit 500 is used for when the corresponding region of the operation information is the broadcast window region, according toThe operation information controls the data display mode of first application program or the broadcast window;And work as instituteWhen to state the corresponding region of operation information be region in addition to the broadcast window region in first floating layer, according to instituteOperation information is stated to control second application program.
Wherein, when the corresponding region of the operation information is the broadcast window region, described control unit 500It is specifically used for:
When the corresponding region of the operation information is the broadcast window region, determined according to the operation informationOperational order;
When the operational order shows to move the broadcast window, broadcast according to operation information determinationThe position that window will be moved to is put, and the broadcast window is moved to identified position, at identified positionContinue to show the data of first application program;
The display unit is specifically used at this time, according to identified position, adjusts the data of second application programDisplay in second floating layer.
And second is switched to when the operational order shows that the data display mode by first application program is restored toWhen display mode before application program, described control unit 500 is also used to, according to switching to the display side before the second application programFormula continues to show the data of first application program;Hide the broadcast window shown in first floating layer;
The display unit 300 is specifically used at this time, according to identified position, adjusts the number of second application programAccording to the display in second floating layer.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weightPoint explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginsengSee the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes thatA little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article orThe intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arrangedExcept there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of data output method provided by the present invention and device are described in detail above, it is used hereinA specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand originallyThe method and its core concept of invention;At the same time, for those skilled in the art, according to the thought of the present invention, specificThere will be changes in embodiment and application range, in conclusion the content of the present specification should not be construed as to of the inventionLimitation.