Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flow chart of a data display method according to an embodiment of the present invention is shown, where the method includes:
s101, receiving a floating window clicking instruction for triggering floating window display of first service data in a first mobile application;
specifically, the first mobile application may be an APP for providing a live network video, for example, a user may watch a live game video through the first mobile application. The first mobile application can also be a viewer client and is applied to a mobile terminal; the spectator client may be a rich media client that integrates functions including group chat, live video, channel karaoke, online gaming, online movie and the like, and may operate on user devices including, but not limited to, mobile phones, mobile computers, tablet computers, Personal Digital Assistants (PDAs), media players, smart televisions, smart watches, smart glasses, smart bracelets, and the like. The mobile terminal may receive, in a first mobile application, a floating window click instruction for triggering floating window display of first service data in the first mobile application, that is, a user may receive the floating window click instruction by clicking a preset floating window key.
S102, converting a full-screen window of the first mobile application into a floating window according to the floating window clicking instruction;
specifically, the mobile terminal may convert a full-screen window of the first mobile application into a floating-window according to the floating-window click instruction; the floating window is smaller than the full-screen window and contains the first service data. The full-screen window is an existing interface mode of the first mobile application, that is, the first mobile application can display the first service data and other text interaction data in a full-screen mode through the full-screen window, and the first service data may be live video stream data; and the floating window may only contain the first service data, that is, the first mobile application may display the first service data in a local area of a terminal screen through the floating window.
S103, fixedly arranging the floating window in a target area of a terminal screen, and arranging the floating window in a display layer on the uppermost layer, so that second service data of the first mobile application and/or related service data of the second mobile application are displayed in a non-target area of the terminal screen while the first service data are displayed in the floating window;
specifically, after the mobile terminal obtains the floating window, the floating window may be fixedly disposed in a target area of a terminal screen, where a length and a width of the target area are the same as those of the floating window, and a position of the target area on the terminal screen may be preset, for example, the target area may be located in any one of an uppermost area, a middle area, and a lowermost area of the terminal screen. Meanwhile, the mobile terminal also sets the floating window on the display layer on the uppermost layer, so that the floating window is always displayed on the terminal screen, namely, as long as the first mobile application does not exit, the floating window can be always fixed in the target area for displaying, and the mobile terminal displays the floating window and simultaneously can display the second service data of the first mobile application and/or the related service data of the second mobile application in the non-target area of the terminal screen. Wherein, the second service data of the first mobile application can be obtained by the mobile terminal when the first mobile application is started again in the non-target area, and the second service data can be the same as or different from the first service data.
Referring to fig. 1a, an interface diagram for displaying multiple applications simultaneously according to an embodiment of the present invention is shown. Fig. 1a shows an interface diagram of a terminal screen of a mobile terminal, a floating window corresponding to a first mobile application (live video application) is displayed in a target area 100 of the terminal screen, a video is live in the floating window, and related service data of a second mobile application can be displayed in all areas outside the target area 100, that is, the related service data can be displayed in a non-target area, and it can be known from fig. 1a that the second mobile application is an instant messaging application, so that the mobile terminal can simultaneously display the live video application and the instant messaging application, and the live video application displays the live video and the instant messaging application, and the mobile terminal can also allow a user to operate the instant messaging application.
According to the embodiment of the invention, by receiving the floating window click instruction for triggering the floating window display of the first service data in the first mobile application, the full-screen window of the first mobile application can be converted into the floating window according to the floating window click instruction, then the floating window is fixedly arranged in the target area of the terminal screen, and the floating window is arranged on the display layer at the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application can be displayed in the non-target area of the terminal screen while the first service data is displayed in the floating window, and therefore, the effect that a user can watch a plurality of APPs simultaneously can be realized, and the complicated operation brought to the user due to frequent switching of the APPs by the user can be avoided.
Referring to fig. 2, a schematic flow chart of another data display method according to an embodiment of the present invention is shown, where the method includes:
s201, in a first mobile application, receiving a floating window click instruction for triggering floating window display of first service data in the first mobile application;
specifically, the first mobile application may be an APP for providing a live network video, for example, a user may watch a live game video through the first mobile application. The first mobile application can also be a viewer client and is applied to a mobile terminal; the spectator client may be a rich media client that integrates functions including group chat, live video, song on channel, online game, online movie and television, and may operate on user equipment including, but not limited to, a mobile phone, a mobile computer, a tablet computer, a personal digital assistant, a media player, a smart tv, a smart watch, smart glasses, a smart band, and the like. The mobile terminal may receive, in a first mobile application, a floating window click instruction for triggering floating window display of first service data in the first mobile application, that is, a user may receive the floating window click instruction by clicking a preset floating window key.
S202, acquiring the width of the terminal screen and a preset target length according to the floating window clicking instruction;
specifically, the mobile terminal can acquire the width of the terminal screen and a preset target length according to the floating window click instruction; wherein the target length is smaller than the length of the terminal screen.
S203, exiting the full screen window of the first mobile application, creating the floating window according to the width of the terminal screen and a preset target length, and adding the first service data to the floating window;
specifically, after obtaining the width and the target length of the terminal screen, the mobile terminal may exit from the full-screen window of the first mobile application, and create the floating window according to the width and the preset target length of the terminal screen, that is, set the width of the floating window as the width of the terminal screen, and set the length of the floating window as the target length. After the floating window is created, the first service data may be added to the floating window, so that the floating window may display the first service data. The full-screen window is an existing interface mode of the first mobile application, that is, the first mobile application can display the first service data and other text interaction data in a full-screen mode through the full-screen window, and the first service data may be live video stream data; and the floating window may only contain the first service data, that is, the first mobile application may display the first service data in a local area of a terminal screen through the floating window.
S204, fixedly arranging the floating window in a target area of a terminal screen, and arranging the floating window in a display layer on the uppermost layer;
specifically, after the mobile terminal obtains the floating window, the floating window may be fixedly disposed in a target area of a terminal screen, where a length and a width of the target area are the same as those of the floating window, and a position of the target area on the terminal screen may be preset, for example, the target area may be located in any one of an uppermost area, a middle area, and a lowermost area of the terminal screen. Meanwhile, the mobile terminal also sets the floating window on the display layer on the uppermost layer, so that the floating window is always displayed on the terminal screen, namely, as long as the first mobile application does not exit, the floating window can be always fixed in the target area for displaying, and the mobile terminal displays the floating window and simultaneously can display the second service data of the first mobile application and/or the related service data of the second mobile application in the non-target area of the terminal screen. Wherein, the second service data of the first mobile application can be obtained by the mobile terminal when the first mobile application is started again in the non-target area, and the second service data can be the same as or different from the first service data.
S205, when the second mobile application is started, setting the second mobile application on a display layer on a second layer, controlling the display layers on the second layer and the uppermost layer to display simultaneously, and setting a function capable of responding to user operation for a non-target area in the display layer on the second layer;
specifically, when the mobile terminal starts the second mobile application, the second mobile application may be set on a display layer located on a second layer, and the display layers located on the second layer and an uppermost layer are controlled to be displayed simultaneously, that is, while the terminal screen displays the first service data in the floating window in the target area, the terminal screen may also display related service data of the second mobile application in the non-target area; wherein the interface data of the second mobile application, which is also located in the target area, is to be covered by the floating window. Further, the mobile terminal may further set a function capable of responding to a user operation for the non-target area in the display layer of the second layer, that is, the non-target area may respond to a touch screen operation of a user, so that the second mobile application located in the non-target area may respond according to the user operation. Therefore, the mobile terminal can simultaneously display the first mobile application and the second mobile application, and can also enable a user to operate the second mobile application while displaying the first service data through the floating window.
S206, when a recovery click command for recovering the full-screen window is received, converting the floating window into the full-screen window according to the recovery click command; the full screen window at least comprises the first service data;
specifically, a recovery key may be preset on the floating window, and when a user clicks the recovery key, the mobile terminal may receive a recovery click instruction for recovering the full-screen window, and at this time, the mobile terminal may convert the floating window into the full-screen window according to the recovery click instruction, where a specific conversion process may be: and exiting the floating window, recalling the full-screen window in the first mobile application, and controlling the full-screen window to display the first service data and other text interaction data.
Optionally, when a dragging click instruction for performing dragging operation on the floating window is received, the mobile terminal may drag the floating window according to the dragging click instruction, determine an area where the dragged floating window is located as an updated target area, and fixedly set the floating window in the updated target area again; and displaying second service data of the first mobile application and/or related service data of the second mobile application in other areas except the updated target area in the terminal screen.
Optionally, when an adjustment click instruction for performing an adjustment operation on the floating window is received, the mobile terminal may adjust the length and/or the width of the floating window according to the adjustment click instruction, determine an area where the adjusted floating window is located as an updated target area, and fixedly set the floating window in the updated target area again; and displaying second service data of the first mobile application and/or related service data of the second mobile application in other areas except the updated target area in the terminal screen.
According to the embodiment of the invention, by receiving the floating window click instruction for triggering the floating window display of the first service data in the first mobile application, the full-screen window of the first mobile application can be converted into the floating window according to the floating window click instruction, then the floating window is fixedly arranged in the target area of the terminal screen, and the floating window is arranged on the display layer at the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application can be displayed in the non-target area of the terminal screen while the first service data is displayed in the floating window, and therefore, the effect that a user can watch a plurality of APPs simultaneously can be realized, and the complicated operation brought to the user due to frequent switching of the APPs by the user can be avoided.
Referring to fig. 3, which is a schematic structural diagram of a data display device according to an embodiment of the present invention, the data display device 1 may be applied to a mobile terminal, and the data display device 1 may include: the device comprises an instruction receiving module 10, a conversion module 20 and a first setting module 30;
the instruction receiving module 10 is configured to receive, in a first mobile application, a floating window click instruction for triggering floating window display of first service data in the first mobile application;
specifically, the first mobile application may be an APP for providing a live network video, for example, a user may watch a live game video through the first mobile application. The first mobile application can also be a viewer client and is applied to a mobile terminal; the spectator client may be a rich media client that integrates functions including group chat, live video, channel karaoke, online gaming, online movie and the like, and may operate on user devices including, but not limited to, mobile phones, mobile computers, tablet computers, Personal Digital Assistants (PDAs), media players, smart televisions, smart watches, smart glasses, smart bracelets, and the like. The instruction receiving module 10 may receive, in a first mobile application, a floating window click instruction for triggering floating window display of first service data in the first mobile application, that is, a user may receive the floating window click instruction by clicking a preset floating window button.
The conversion module 20 is configured to convert the full-screen window of the first mobile application into a floating-window according to the floating-window click instruction; the floating window is smaller than the full-screen window and contains the first service data;
specifically, the conversion module 20 may convert the full-screen window of the first mobile application into the floating-window according to the floating-window click instruction; the floating window is smaller than the full-screen window and contains the first service data. The full-screen window is an existing interface mode of the first mobile application, that is, the first mobile application can display the first service data and other text interaction data in a full-screen mode through the full-screen window, and the first service data may be live video stream data; and the floating window may only contain the first service data, that is, the first mobile application may display the first service data in a local area of a terminal screen through the floating window.
The first setting module 30 is configured to fixedly set the floating window in a target area of a terminal screen, and set the floating window in a display layer on an uppermost layer, so that while the first service data is displayed in the floating window, the second service data of the first mobile application and/or the related service data of the second mobile application are displayed in a non-target area of the terminal screen;
specifically, after obtaining the floating window, the first setting module 30 may fixedly set the floating window in a target area of the terminal screen, where the length and width of the target area are the same as those of the floating window, and the position of the target area on the terminal screen may be preset, for example, the target area may be located in any one of an uppermost area, a middle area, and a lowermost area of the terminal screen. Meanwhile, the first setting module 30 further sets the floating window on the display layer on the uppermost layer, so that the floating window is always displayed on the terminal screen, that is, as long as the first mobile application does not exit, the floating window may be always fixed in the target area for display, and the data display device 1 displays the floating window, and simultaneously may display the second service data of the first mobile application and/or the related service data of the second mobile application in the non-target area of the terminal screen. Wherein, the second service data of the first mobile application can be obtained by the mobile terminal when the first mobile application is started again in the non-target area, and the second service data can be the same as or different from the first service data.
Further, referring to fig. 4 again, the conversion module 20 in the embodiment corresponding to fig. 3 is described above, where the conversion module 20 may include: an acquisition unit 201 and a creation unit 202;
the obtaining unit 201 is configured to obtain the width of the terminal screen and a preset target length according to the floating window click instruction; the target length is smaller than the length of the terminal screen;
the creating unit 202 is configured to exit a full-screen window of the first mobile application, create the floating window according to the width of the terminal screen and a preset target length, and add the first service data to the floating window;
specifically, after the obtaining unit 201 obtains the width and the target length of the terminal screen, the creating unit 202 may exit from a full screen window of the first mobile application, and create the floating window according to the width and a preset target length of the terminal screen, that is, the creating unit 202 sets the width of the floating window as the width of the terminal screen, and sets the length of the floating window as the target length. After creating the floating window, the creating unit 202 may add the first service data to the floating window, so that the floating window may display the first service data. The full-screen window is an existing interface mode of the first mobile application, that is, the first mobile application can display the first service data and other text interaction data in a full-screen mode through the full-screen window, and the first service data may be live video stream data; and the floating window may only contain the first service data, that is, the first mobile application may display the first service data in a local area of a terminal screen through the floating window.
According to the embodiment of the invention, by receiving the floating window click instruction for triggering the floating window display of the first service data in the first mobile application, the full-screen window of the first mobile application can be converted into the floating window according to the floating window click instruction, then the floating window is fixedly arranged in the target area of the terminal screen, and the floating window is arranged on the display layer at the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application can be displayed in the non-target area of the terminal screen while the first service data is displayed in the floating window, and therefore, the effect that a user can watch a plurality of APPs simultaneously can be realized, and the complicated operation brought to the user due to frequent switching of the APPs by the user can be avoided.
Referring to fig. 5 again, it is a schematic structural diagram of another data display device provided in an embodiment of the present invention, where the data display device 1 may be applied to a mobile terminal, and the data display device 1 may include the instruction receiving module 10, the converting module 20, and the first setting module 30 in the embodiment corresponding to fig. 3, and further, the data display device 1 further includes: a dragging module 40, an adjusting module 50, a second setting module 60, and a restoring module 70;
the dragging module 40 is configured to, when a dragging click instruction for performing a dragging operation on the floating window is received, drag the floating window according to the dragging click instruction, determine an area where the dragged floating window is located as an updated target area, and fixedly set the floating window in the updated target area again;
the adjusting module 50 is configured to, when an adjustment click instruction for performing an adjustment operation on the floating window is received, adjust the length and/or the width of the floating window according to the adjustment click instruction, determine an area where the adjusted floating window is located as an updated target area, and fixedly set the floating window in the updated target area again;
after the dragging module 40 or the adjusting module 50 re-fixes the floating window in the updated target area, the other areas of the terminal screen except the updated target area may still display the second service data of the first mobile application and/or the related service data of the second mobile application.
The second setting module 60 is configured to, when the second mobile application is started, set the second mobile application on the display layer on the second layer, control the display layers on the second layer and the uppermost layer to be displayed simultaneously, and set a function that can respond to a user operation for a non-target area in the display layer on the second layer;
specifically, when the second mobile application is started, the second setting module 60 may set the second mobile application on a display layer located on a second layer, and control the display layers located on the second layer and an uppermost layer to display simultaneously, that is, while the terminal screen displays the first service data in the floating window in the target area, the terminal screen may also display related service data of the second mobile application in the non-target area; wherein the interface data of the second mobile application, which is also located in the target area, is to be covered by the floating window. Further, the second setting module 60 may set a function, which is capable of responding to a user operation, for the non-target area in the display layer of the second layer, that is, the non-target area may respond to a touch screen operation of a user, so that the second mobile application located in the non-target area may respond according to the user operation. Therefore, the mobile terminal can simultaneously display the first mobile application and the second mobile application, and can also enable a user to operate the second mobile application while displaying the first service data through the floating window.
The restoring module 70 is configured to, when a restoring click instruction for restoring the full-screen window is received, convert the floating window into the full-screen window according to the restoring click instruction; the full screen window at least comprises the first service data;
specifically, a recovery key may be preset on the floating window, and when the user clicks the recovery key, the recovery module 70 may receive a recovery click instruction for recovering the full-screen window, at this time, the recovery module 70 may convert the floating window into the full-screen window according to the recovery click instruction, where a specific conversion process may be: the recovery module 70 exits the floating window, recalls the full-screen window in the first mobile application, and controls the full-screen window to display the first service data and other text interaction data.
According to the embodiment of the invention, by receiving the floating window click instruction for triggering the floating window display of the first service data in the first mobile application, the full-screen window of the first mobile application can be converted into the floating window according to the floating window click instruction, then the floating window is fixedly arranged in the target area of the terminal screen, and the floating window is arranged on the display layer at the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application can be displayed in the non-target area of the terminal screen while the first service data is displayed in the floating window, and therefore, the effect that a user can watch a plurality of APPs simultaneously can be realized, and the complicated operation brought to the user due to frequent switching of the APPs by the user can be avoided.
Fig. 6 is a schematic structural diagram of another data display device according to an embodiment of the present invention. The data display apparatus 1000 may include a processor 1001, a communication interface 1002, and a memory 1003 (the number of the processors 1001 in the data display apparatus 1000 may be one or more, and one processor is taken as an example in fig. 6). In some embodiments of the present invention, the processor 1001, the communication interface 1002 and the memory 1003 may be connected by a communication bus or other methods, wherein fig. 6 is taken as an example of the connection by the communication bus.
The memory 1003 is used for storing programs;
the processor 1001 is configured to execute the program to implement
Receiving a floating window clicking instruction for triggering floating window display of first service data in a first mobile application in the first mobile application;
converting a full-screen window of the first mobile application into a floating window according to the floating window clicking instruction; the floating window is smaller than the full-screen window and contains the first service data;
and fixedly setting the floating window in a target area of a terminal screen, and setting the floating window in a display layer on the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application are displayed in a non-target area of the terminal screen while the first service data is displayed in the floating window.
In an embodiment, when the processor 1001 executes the floating window click instruction to convert the full-screen window of the first mobile application into the floating window, specifically, the processor is configured to:
acquiring the width of the terminal screen and a preset target length according to the floating window clicking instruction; the target length is smaller than the length of the terminal screen;
exiting the full screen window of the first mobile application, creating the floating window according to the width of the terminal screen and a preset target length, and adding the first service data to the floating window;
and the width of the floating window is the width of the terminal screen, and the length of the floating window is the target length.
In one embodiment, after the processor 1001 performs the fixing of the floating window to the target area of the terminal screen and the setting of the floating window to the uppermost display layer, the processor is further configured to:
when a dragging click instruction for dragging the floating window is received, dragging the floating window according to the dragging click instruction, determining the area where the dragged floating window is located as an updated target area, and fixedly setting the floating window in the updated target area again; or,
when an adjusting click command for adjusting the floating window is received, adjusting the length and/or the width of the floating window according to the adjusting click command, determining the area where the adjusted floating window is located as an updated target area, and fixedly setting the floating window in the updated target area again.
In one embodiment, after the processor 1001 performs the fixing of the floating window to the target area of the terminal screen and the setting of the floating window to the uppermost display layer, the processor is further configured to:
and when the second mobile application is started, setting the second mobile application on the display layer at the second layer, controlling the display layers at the second layer and the uppermost layer to display simultaneously, and setting a function capable of responding to user operation for the non-target area in the display layer at the second layer.
In one embodiment, after the processor 1001 performs the fixing of the floating window to the target area of the terminal screen and the setting of the floating window to the uppermost display layer, the processor is further configured to:
when a recovery click instruction for recovering the full screen window is received, converting the floating window into the full screen window according to the recovery click instruction; the full screen window at least comprises the first service data.
According to the embodiment of the invention, by receiving the floating window click instruction for triggering the floating window display of the first service data in the first mobile application, the full-screen window of the first mobile application can be converted into the floating window according to the floating window click instruction, then the floating window is fixedly arranged in the target area of the terminal screen, and the floating window is arranged on the display layer at the uppermost layer, so that the second service data of the first mobile application and/or the related service data of the second mobile application can be displayed in the non-target area of the terminal screen while the first service data is displayed in the floating window, and therefore, the effect that a user can watch a plurality of APPs simultaneously can be realized, and the complicated operation brought to the user due to frequent switching of the APPs by the user can be avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.