CN111866572A - Data display method and device - Google Patents

Data display method and device Download PDF

Info

Publication number
CN111866572A
CN111866572A CN202010738321.7A CN202010738321A CN111866572A CN 111866572 A CN111866572 A CN 111866572A CN 202010738321 A CN202010738321 A CN 202010738321A CN 111866572 A CN111866572 A CN 111866572A
Authority
CN
China
Prior art keywords
interface
data
video data
interfaces
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010738321.7A
Other languages
Chinese (zh)
Inventor
喻巍
罗叶飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan MgtvCom Interactive Entertainment Media Co Ltd
Original Assignee
Hunan MgtvCom Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan MgtvCom Interactive Entertainment Media Co Ltd filed Critical Hunan MgtvCom Interactive Entertainment Media Co Ltd
Priority to CN202010738321.7A priority Critical patent/CN111866572A/en
Publication of CN111866572A publication Critical patent/CN111866572A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a data display method and device, wherein an acquisition request is sent to a video source server through at least two interfaces corresponding to an application program; monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to an acquisition request fed back by a video source server is received or not; if the data interface status indicates that at least one of the at least two interfaces receives video data, the currently received video data is displayed in the application interface of the application program, so that the video data received by the interface can be directly displayed in the application interface after any interface receives the video data, and the purpose of refreshing one display strip by one strip and refreshing one display strip by one strip is realized without waiting for other interfaces, thereby displaying the video data received by the interface in time and improving the display efficiency of the video data.

Description

Data display method and device
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a data display method and device.
Background
The playing interface of a video type application program (video type APP for short) comprises two areas: the first area is loaded with the video player, the video is played through the video player, the second area is used for loading content related to the currently played video of the video player, for example, a catkin video of the currently played video and a video clip of the currently played video are loaded in the second area, and a content rolling control can be provided in the second area, so that the displayed content in the second area can be refreshed according to the rolling of the content rolling control, an entry for switching videos in the video player is provided, and the conversion rate of related videos is improved.
However, the video APP may consume a long time in the process of performing video display in the second area, so that the content in the second area cannot be displayed in time.
Disclosure of Invention
In view of the above, an object of the present application is to provide a data display method and apparatus for improving the display efficiency of video data.
In one aspect, the present application provides a data display method, including:
sending an acquisition request to a video source server through at least two interfaces corresponding to an application program;
monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received or not;
if the data interface status indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in an application interface of the application program.
Optionally, the method further includes: acquiring a data display sequence between interfaces which are arranged for receiving the video data;
if the data interface status indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in the application interface of the application program includes:
if the data interface state indicates that at least one of the at least two interfaces receives the video data, acquiring identification information of the interface currently receiving the video data;
determining a display position corresponding to an interface currently receiving the video data according to the data display sequence and the identification information;
and displaying the video data currently received by the interface according to the display position corresponding to the interface.
Optionally, the method further includes: acquiring a data display style of a set interface for receiving the video data;
the displaying the currently received video data in the application interface of the application program comprises: and displaying the video data received by the current interface in the application interface of the application program according to the data display style of the interface which receives the video data currently.
Optionally, the method further includes: acquiring a data type of a set interface for receiving the video data, wherein the data type is carried in the acquisition request to indicate the video source server to feed back the video data matched with the data type;
or
The method further comprises the following steps: acquiring a data type of a set interface for receiving the video data, wherein the data type is not carried in the acquisition request;
the displaying the currently received video data in the application interface of the application program comprises: and selecting target video data matched with the data type of the interface from the video data currently received by the interface, and displaying the target video data in the application interface.
Optionally, the method further includes: acquiring a preset corresponding relation between an interface and a data display mode, wherein the corresponding relation is used for indicating at least one of a data display sequence, a data display style and a data type corresponding to the interface of video data received by the interface;
the displaying the currently received video data in the application interface of the application program comprises: and displaying the video data currently received by the interface in the application interface according to the corresponding relation between the interface and the data display mode.
Optionally, if the data interface status indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in the application interface of the application program includes:
if the data interface condition indicates that the at least one interface receives video data but other interfaces do not receive video data, according to a data display sequence among the interfaces, positions corresponding to the interfaces are arranged in a layout template, the position relation corresponding to the interfaces corresponds to the data display sequence among the interfaces, an area occupied by the interface receiving the video data in the layout template is obtained according to the video data received by the interface, the interface not receiving the video data occupies a layout space in the layout template, and the data in the layout space is empty;
rendering the layout template into an application interface to display the video data in the application interface, wherein the layout placeholder is not visible in the application interface after the layout template is rendered into the application interface.
In another aspect, the present application provides a data presentation device, the device comprising:
the sending unit is used for sending an acquisition request to the video source server through at least two interfaces corresponding to the application program;
the monitoring unit is used for monitoring the data receiving condition of any interface of the at least two interfaces, and the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received or not;
and the display unit is used for displaying the currently received video data in an application interface of the application program if the data interface status indicates that at least one interface of the at least two interfaces receives the video data.
Optionally, the apparatus further comprises: an acquisition unit configured to acquire at least one of a data presentation order between the set interfaces for receiving the video data and a data presentation style of the set interface for receiving the video data;
the display unit is specifically configured to, if the data interface status indicates that at least one of the at least two interfaces receives the video data, obtain identification information of an interface that currently receives the video data; determining a display position corresponding to an interface currently receiving the video data according to the data display sequence and the identification information; and displaying the video data currently received by the interface according to the display position corresponding to the interface, and displaying at least one of the video data received by the current interface in the application interface of the application program according to the data display style of the interface currently receiving the video data.
Optionally, the apparatus further comprises: the acquisition unit is used for acquiring a data type of a set interface used for receiving the video data, and the acquisition request carries the data type so as to indicate the video source server to feed back the video data matched with the data type;
or
The device further comprises: an obtaining unit, configured to obtain a data type of a set interface used for receiving the video data, where the data type is not carried in the obtaining request;
the display unit is specifically configured to select target video data matched with the data type of the interface from video data currently received by the interface, and display the target video data in the application interface.
Optionally, the display unit is specifically configured to, if the data interface status indicates that the at least one interface receives video data but other interfaces do not receive video data, layout, according to a data display sequence between the interfaces, positions corresponding to the interfaces in a layout template, where a position relationship corresponding to each interface corresponds to the data display sequence between the interfaces, where an area occupied by the interface receiving the video data in the layout template is obtained according to the video data received by the interface, and the interface not receiving the video data occupies a layout space in the layout template, where data in the layout space is empty;
rendering the layout template into an application interface to display the video data in the application interface, wherein the layout placeholder is not visible in the application interface after the layout template is rendered into the application interface.
According to the data display method and device, the acquisition request is sent to the video source server through at least two interfaces corresponding to the application program; monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to an acquisition request fed back by a video source server is received or not; if the data interface status indicates that at least one of the at least two interfaces receives video data, the currently received video data is displayed in the application interface of the application program, so that the video data received by the interface can be directly displayed in the application interface after any interface receives the video data, and the purpose of refreshing one display strip by one strip and refreshing one display strip by one strip is realized without waiting for other interfaces, thereby displaying the video data received by the interface in time and improving the display efficiency of the video data.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a data presentation method provided in an embodiment of the present application;
FIG. 2 is a diagram illustrating an application interface and layout template according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of another data presentation method provided by an embodiment of the present application;
FIG. 4 is a flowchart of another data displaying method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a video data presentation provided by an embodiment of the present application;
FIG. 6 is a flowchart of another data displaying method provided by an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a data display apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another data display device provided in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
Referring to fig. 1, a flowchart of a data presentation method provided in an embodiment of the present application is shown, which may include the following steps:
101: and sending an acquisition request to the video source server through at least two interfaces corresponding to the application program. It can be understood that: the obtaining request is used for requesting video data from the video source server, at least two interfaces corresponding to the application program can be interfaces distributed to the application program by the electronic equipment running the application program, and the obtaining request is sent to the video source server through the at least two interfaces corresponding to the application program, so that the application program can directly obtain the video data requested by the obtaining request from the video source server.
The method for sending the acquisition request to the video source server through at least two interfaces corresponding to the application program is as follows: the source identifier obtaining request is sent to the background server through an interface corresponding to the application program, where the interface may be an interface multiplexing an interface used for sending the obtaining request to the video source server, or an interface independent of the interface used for sending the obtaining request, and the source identifier obtaining request is used for obtaining a source identifier of a video source server to which the currently requested video data belongs, such as an address of the video source server, so as to send the obtaining request to the corresponding video source server based on the source identifier, thereby obtaining the currently requested video data from the corresponding video source server.
For example, the electronic device currently requests video data of a 'little yellow man', allocates an interface 1 to an interface N for an application program, wherein the value of N is more than or equal to 2, wherein one of the interfaces 1 to N is communicated with the background server, the other of the interfaces 1 to N or 1 to N except the interface communicated with the background server is communicated with the video source server, sending a source identification acquisition request carrying content (such as keyword-little yellow man) indicating the currently requested video data to the background server through an interface communicated with the background server, searching the address of the video source server storing the currently requested video data by the background server, and then sending an acquisition request to the video source server pointed by the address through an interface communicated with the video source server, and receiving video data fed back by the video source server.
In the related art, a background server can communicate with a video source server through a plurality of interfaces, after a source identifier of the video source server is determined, an acquisition request is sent to the video source server pointed by the source identifier, video data fed back by the video source server is received, and the background server forwards the video data to electronic equipment running an application program. For the backend server, for each acquisition request of the application program, the acquisition request needs to be forwarded to the video source server through multiple interfaces, which may cause an increase in bandwidth cost of the backend server, but if the electronic device communicates with the video source server through multiple interfaces of the electronic device running the application program, the cost of increasing the interfaces for communicating with the video source server is negligible for the electronic device, so that the cost may be reduced by using the interfaces in the electronic device running the application program as at least two interfaces corresponding to the application program.
And the video data is acquired through an interface in the electronic equipment running the application program, and the data interaction between the video source server and the background server is transferred to the data interaction between the video source server and the electronic equipment, so that the interaction times between the video source server and the background server can be reduced, the cost is reduced, and the background server only needs to feed back the source identification of the video source server to the electronic equipment, so that the interactive data quantity between the electronic equipment and the background server is reduced compared with the feedback of the video data to the electronic equipment, and the cost is further reduced.
102: and monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received.
103: and if the data interface condition indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in an application interface of the application program.
In the related art, as in the technology of forwarding video data through the background server, all interfaces of the background server forward all video data to the electronic device at one time after receiving the video data fed back by the video source server, so that the electronic device can display the video data only after receiving the video data through all interfaces of the background server.
In this embodiment, for any interface interacting with the video source server, a data receiving status of any interface is monitored, if it is monitored that any interface receives video data fed back by the video source server, the currently received video data is displayed in the application interface, which means that for the electronic device, regardless of whether all interfaces interacting with the video source server receive video data, once one interface receives video data, the received video data is displayed in the application interface, and if other interfaces receive video data in the displaying process, the application interface is refreshed, and all the previously received video data and all the currently received video data are displayed in the application interface.
In this embodiment, the video data received by each interface is stored independently, after each acquisition request is sent, each interface corresponds to an independent storage space (for example, a file, it is noted that each acquisition request corresponds to an independent storage space), before the video data is not received, the storage space corresponding to the interface is empty, and if the video data is received, data is stored in the storage space, so that the data receiving status of the interface can be determined by monitoring the storage space.
If a plurality of acquisition requests of each interface correspond to an independent storage space, the storage space is empty before a first acquisition request corresponding to the storage space is sent, but before other acquisition requests are sent, the storage space stores video data received by the acquisition request sent before, so that whether the data amount stored in the storage space is increased relative to the previous data amount needs to be monitored, and if the data amount is increased, the video data is received.
Certainly, the determination may also be made by other manners, for example, by the amount of data transmitted in the bandwidth corresponding to the interface, or in this embodiment, the interface is represented in a list form, for example, the interface represented in the list form is [1,2, … …, N ], the identification information of the interface is digitally represented, if the data receiving condition of the interface is monitored, the list corresponding to the interface may be [1a,2b, … …, Ne ], an identifier is set after the identification information of each interface, the identifier indicates the data receiving condition of the corresponding interface, before the interface does not receive the video data, the list form is [1-1,2-1, … …, N-1], "1 is used as an identifier that the video data is not received, of course, in practical applications, other symbols may also be used as identifiers that the video data is not received, if the video data is received, the corresponding identifier changes, e.g. from-1 to a, from not receiving video data to receiving video data for different interfaces, which may be on demand.
In addition, the identifier may be further configured to indicate a data display style of an interface that receives video data, that is, the data display method provided in this embodiment further includes acquiring a set data display style of an interface that receives video data, and displaying currently received video data in an application interface of an application program correspondingly includes: and displaying the video data received by the current interface in the application interface of the application program according to the data display style of the interface which receives the video data currently.
The data presentation style is used to indicate a layout manner of the video data received by the interface, for example, the data presentation style includes a plurality of large categories, such as a horizontal list layout, a vertical list layout, and the like, and each large category further includes a plurality of sub-layout manners, and the embodiment may indicate the corresponding data presentation style through the identifier.
The identifier a, b, … … e, etc. not only indicates that the video data is received but also indicates a data presentation pattern of the received video data as in the form of a list [1a,2b, … …, Ne ], and presents the video data in the corresponding data presentation pattern.
In this embodiment, the data presentation style is represented by a displayType, which indicates whether the data presentation style is according to a horizontal list layout or a vertical list layout, and the like, displaytypes of different interfaces may be the same or different, and this embodiment may preset a value of a displayType corresponding to each interface, such as a- - > horizontal list layout, b- - > vertical list layout, and the like, where the value of the displayType indicates whether to present video data, if the value of the displayType is-1, it indicates that no rendering operation is performed, which indicates that the corresponding interface does not receive video data, at this time, the interface is not presented, and if the value of the displayType is not-1, such as displayType a, a layout matching the displayType is found from the mapping file according to the value of the displayType, and the video data is rendered into the application interface according to the layout matching the displayType, so as to present the video data in the application interface.
One point to be noted here is: if one interface does not receive the video data, a layout place occupation is allocated to the interface, the data in the layout place occupation is empty, but the layout place occupation is invisible in the application interface, so that the received video data is continuously displayed in the application interface. As shown in fig. 2, three interfaces in the electronic device are used for receiving video data, where an interface 1 and an interface 3 in the three interfaces respectively receive the video data, and the video data received by the interface 1 and the interface 3 are continuously displayed in an application interface, but a layout template rendered in the background of an application program is different from the application interface, as shown by a dotted line in fig. 2, there is a layout occupancy between the video data continuously displayed by the interface 1 and the interface 3, and the layout occupancy indicates a position corresponding to the video data of the interface 2, so that the video data received by the interface 2 is displayed at the position of the layout occupancy after the interface 2 receives the video data.
Based on this, one possible way for the embodiment to display the currently received video data in the application interface of the application program is as follows:
if the data interface condition indicates that at least one interface receives video data but other interfaces do not receive the video data, according to the data display sequence among the interfaces, the positions corresponding to the interfaces are arranged in the layout template, the position relation corresponding to the interfaces corresponds to the data display sequence among the interfaces, the area occupied by the interface receiving the video data in the layout template is obtained according to the video data received by the interfaces, the interface not receiving the video data occupies a layout space in the layout template, and the data in the layout space is empty; rendering the layout template into the application interface to display the video data in the application interface, wherein the layout placeholder is invisible in the application interface after the layout template is rendered into the application interface.
The data display sequence is used to indicate a sequence in which the video data received by the interface are sequentially displayed in the application interface, for example, to indicate a sequence in which the video data corresponding to the interface are displayed, where the sequence of the identification information of the interfaces in the above list [1a,2b, … …, Ne ] indicates the data display sequence, so that the video data received by the interfaces 1 to N can be sequentially displayed. And if the value of the displayType with the request error of the interface is set to be the value corresponding to the video data which is not received, the video data of the interface is invisible to the user.
The data display method comprises the steps of sending an acquisition request to a video source server through at least two interfaces corresponding to an application program; monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to an acquisition request fed back by a video source server is received or not; if the data interface status indicates that at least one of the at least two interfaces receives video data, the currently received video data is displayed in the application interface of the application program, so that the video data received by the interface can be directly displayed in the application interface after any interface receives the video data, and the purpose of refreshing one display strip by one strip and refreshing one display strip by one strip is realized without waiting for other interfaces, thereby displaying the video data received by the interface in time and improving the display efficiency of the video data.
Referring to fig. 3, a flowchart of another data presentation method provided in the embodiment of the present application is shown, which may include the following steps:
301: and acquiring the data display sequence between the interfaces which are arranged for receiving the video data. The data display sequence is used to indicate a sequence in which the video data received by the interface is sequentially displayed in the application interface, for example, to indicate a sequence of displaying the video data corresponding to the interface, where the sequence of the identification information of the interfaces in the above list [1a,2b, … …, Ne ] indicates the data display sequence.
302: and sending an acquisition request to the video source server through at least two interfaces corresponding to the application program.
303: and monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received.
304: and if the data interface condition indicates that at least one of the at least two interfaces receives the video data, acquiring the identification information of the interface currently receiving the video data.
305: and determining a display position corresponding to the interface currently receiving the video data according to the data display sequence and the identification information.
In this embodiment, the sequence of displaying the video data by each interface of the currently received video data is determined according to the identification information and the data display sequence of all interfaces of the currently received video data, and the area occupied by the video data received by each interface can be determined according to the video data received by each interface, so that the starting position (i.e., the display position) where any interface receiving the video data displays the video data in the application interface is determined according to the sequence of displaying the video data and the area occupied by the video data received by each interface.
Taking any interface receiving video data as an example, if the identification information and the data display sequence of the interface indicate that the interface can display video data first, the corresponding display position is a starting point of an area for displaying video data in an application interface, such as the application interface shown in fig. 2, where the application interface includes a first area and a second area, the first area is used for loading a video player, the second area is used for loading content related to a video currently played by the video player, and the corresponding display position is a starting point of the second area when the interface displays video data first. If the identification information and the data display sequence of the interface indicate that the interface displays video data after the first interface displaying video data, the display position is determined according to the area occupied by the previously displayed video data, which is not described in detail in this embodiment.
306: and displaying the video data currently received by the interface according to the display position corresponding to the interface. In the process of displaying at the display position corresponding to the interface, calculating the area occupied by the video data according to the video data currently received by the interface, such as the occupied height, and rendering the video data in the occupied area, thereby realizing the display of the video data on the application interface.
In this embodiment, the display positions corresponding to the interfaces that receive the video data are determined according to the data display sequence and the identification information of the interfaces, and the video data received by each interface are displayed in the display positions, so that the positions where the video data are displayed by each interface are matched with the data display sequence of the interface, the positions where the video data are displayed are in one-to-one correspondence with the display sequence defined by the data display sequence, and the video data received by the interfaces are prevented from being disordered in the display process.
In addition to being capable of defining a data display order and a data display style, the data display method provided in this embodiment may further define a data type, and for example, the data display method provided in this embodiment may further include: the method comprises the steps of obtaining a data type of an interface which is used for receiving video data and is arranged, wherein the data type is carried in an obtaining request to indicate a video source server to feed back the video data matched with the data type, so that the video data is screened in a video data obtaining stage, the video data received by the interface is matched with the data type, and the data volume transmitted in the interface is reduced.
Or the acquisition request does not carry a data type, and when the currently received video data is displayed in an application interface of an application program: and selecting target video data matched with the data type of the interface from the video data currently received by the interface, and displaying the target video data in the application interface to realize the screening of the video data in the display stage.
The data type can be represented by dataType, the dataType of each interface can be unique and non-repeatable, and it is used as an "identity card" of the interface, representing a data type, such as a feature type, a playbill type, a playlist type, etc., to obtain different types of video data through different interfaces, such as a representation form: [1A,2B, 3C, 4D, 5E ], the identifier after the identification information of the interface indicates the data type, and of course, the data type may also be defined by other ways, which is not described in this embodiment one by one.
Referring to fig. 4, a flowchart of another data presentation method provided in an embodiment of the present application is shown, which may include the following steps:
401: the method includes the steps of obtaining a preset corresponding relationship between an interface and a data display mode, where the corresponding relationship is used to indicate at least one of a data display sequence, a data display style and a data type corresponding to the interface of video data received by the interface, and please refer to the above embodiment for the description of the data display sequence, the data display style and the data type corresponding to the interface.
402: and sending an acquisition request to the video source server through at least two interfaces corresponding to the application program.
403: and monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received.
404: if the data interface status indicates that at least one of the at least two interfaces receives video data, the video data currently received by the interface is displayed in the application interface according to the corresponding relationship between the interface and the data display mode, the purpose of refreshing one display and one display is realized, and meanwhile, the corresponding relationship between the video data of each interface can be limited, for example, the data display sequence of the video data between each interface is limited, so that the position for displaying the video data is in one-to-one correspondence with the display sequence limited by the data display sequence, and the video data received by the plurality of interfaces is prevented from being disordered in the display process.
For the above data presentation method, a schematic diagram of corresponding video data presentation is shown in fig. 5, and for example, three interfaces are used for receiving video data, the three interfaces are respectively marked as interface 1, interface 2, and interface 3, the order in which the three interfaces receive video data is interface 1, interface 3, and interface 2, but the data presentation order of the three interfaces is interface 1, interface 2, and interface 3, the video data presented on the application interface is refreshed as shown in fig. 5, the video data of interface 1 is presented on the application interface after the video data of interface 1 is received, and when the video data of interface 3 is received, the video data of interface 3 is presented after the video data of interface 1 because the video data of interface 2 is not received and the video data of interface 3 is presented after interface 1.
When the interface 2 receives the video data, because the data display sequence of the video data of the interface 2 is positioned before the interface 3, the video data of the interface 2 is inserted between the video data of the interface 1 and the interface 3, so that the 'refreshing one by one, refreshing one by one display' is completed, the display of the video data of each interface follows the requirement of the data display sequence, and the data disorder is prevented.
The following describes the data presentation method provided in this embodiment with a value of dataType and a value of displayType, where the value of dataType indicates a data type and the value of displayType indicates a data presentation style, an initial value of displayType is-1, and indicates that video data acquired by a corresponding interface is empty, and a flow of the corresponding data presentation method is shown in fig. 6, and may include the following steps:
601: and setting an interface list corresponding to the application program, wherein the interface list shows the interface corresponding to the application program and represents the type of data corresponding to the interface and the data display style corresponding to the interface.
602: before sending an acquisition request to a video source server through at least two interfaces corresponding to an application program, recording initial values of an interface list, for example, the initial values of the interface list are represented as [1a-1,2b-1, … …, Ne-1], -1 represents that video data acquired by a current interface is empty, 1 to N represent the interfaces, and a to e represent types of the data.
603: if the data interface status indicates that at least one of the at least two interfaces receives video data, the value of the displayType of the interface receiving the video data is changed into the value of the corresponding data presentation style.
604: and displaying the video data currently received by the interface in the application interface according to the data display style, and rendering the application interface according to the occupied space of the currently received video data in the display process.
605: if the data interface status indicates that no video data is received, the value of displayType of the interface is maintained, and a layout placeholder is rendered in the application interface but is not visible to the user.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Corresponding to the above method embodiment, the present application further provides a data display apparatus, the structure of which is shown in fig. 7, and the data display apparatus may include: a sending unit 10, a monitoring unit 20 and a presentation unit 30.
A sending unit 10, configured to send an acquisition request to a video source server through at least two interfaces corresponding to an application. It can be understood that: the obtaining request is used to request video data from the video source server, and the at least two interfaces corresponding to the application program may be interfaces allocated to the application program by the electronic device running the application program, and the obtaining request is sent to the video source server through the at least two interfaces corresponding to the application program, so that the application program can directly obtain the video data requested by the obtaining request from the video source server.
The monitoring unit 20 is configured to monitor a data receiving status of any interface of the at least two interfaces, where the data interface status is used to indicate whether video data corresponding to the acquisition request fed back by the video source server is received.
The presentation unit 30 is configured to present the currently received video data in an application interface of the application program if the data interface status indicates that at least one of the at least two interfaces receives the video data.
In this embodiment, for any interface interacting with the video source server, a data receiving status of any interface is monitored, if it is monitored that any interface receives video data fed back by the video source server, the currently received video data is displayed in the application interface, which means that for the electronic device, regardless of whether all interfaces interacting with the video source server receive video data, once one interface receives video data, the received video data is displayed in the application interface, and if other interfaces receive video data in the display process, the application interface is refreshed, and all the previously received video data and all the currently received video data are displayed in the application interface. For a description of whether the monitoring unit 20 receives the video data corresponding to the acquisition request fed back by the video source server, refer to the above method embodiment.
In this embodiment, the display unit 30 may obtain a preset corresponding relationship between an interface and a data display manner, where the corresponding relationship is used to indicate at least one of a data display sequence, a data display style, and a data type corresponding to the interface of video data received by the interface, and display video data currently received by the interface in an application interface according to the corresponding relationship between the interface and the data display manner, and for the data display sequence, the data display style, and the data type corresponding to the interface, reference may be made to the description in the foregoing method embodiment, which is not described again in this embodiment.
The data display device sends an acquisition request to the video source server through at least two interfaces corresponding to the application program; monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to an acquisition request fed back by a video source server is received or not; if the data interface status indicates that at least one of the at least two interfaces receives video data, the currently received video data is displayed in the application interface of the application program, so that the video data received by the interface can be directly displayed in the application interface after any interface receives the video data, and the purpose of refreshing one display strip by one strip and refreshing one display strip by one strip is realized without waiting for other interfaces, thereby displaying the video data received by the interface in time and improving the display efficiency of the video data.
Referring to fig. 8, which illustrates another structure of a data display device according to an embodiment of the present application, the data display device may further include, on the basis of fig. 7: an obtaining unit 40, configured to obtain at least one of a data presentation order between the set interfaces for receiving the video data and a data presentation style of the set interfaces for receiving the video data.
The display unit 30 is specifically configured to, if the data interface status indicates that at least one of the at least two interfaces receives video data, obtain identification information of an interface that currently receives the video data. And determining a display position corresponding to the interface currently receiving the video data according to the data display sequence and the identification information. The method comprises the steps of displaying video data currently received by an interface according to a display position corresponding to the interface, and displaying at least one of the video data received by the current interface in an application interface of an application program according to a data display style of the interface currently receiving the video data so as to control data display in the application interface through at least one of a data display sequence and a data display style.
One point to be noted here is: if one interface does not receive the video data, a layout place occupation is allocated to the interface, the data in the layout place occupation is empty, but the layout place occupation is invisible in the application interface, so that the received video data is continuously displayed in the application interface. Based on this, one possible way for the embodiment to display the currently received video data in the application interface of the application program is as follows:
if the data interface condition indicates that at least one interface receives video data but other interfaces do not receive the video data, according to the data display sequence among the interfaces, the positions corresponding to the interfaces are arranged in the layout template, the position relation corresponding to the interfaces corresponds to the data display sequence among the interfaces, the area occupied by the interface receiving the video data in the layout template is obtained according to the video data received by the interfaces, the interface not receiving the video data occupies a layout space in the layout template, and the data in the layout space is empty; rendering the layout template into the application interface to display the video data in the application interface, wherein the layout placeholder is invisible in the application interface after the layout template is rendered into the application interface.
In addition, the obtaining unit in the data display device provided in the embodiment of the application is further configured to obtain a data type of a set interface used for receiving video data, where the obtaining request carries the data type, so as to instruct the video source server to feed back the video data matched with the data type.
Or
The obtaining unit is further configured to obtain a data type of a set interface used for receiving video data, where the obtaining request does not carry the data type, and the corresponding displaying unit 30 is specifically configured to select target video data matched with the data type of the interface from video data currently received by the interface, display the target video data in the application interface, and implement partition display on different types of video data.
An embodiment of the present application further provides an electronic device, including: a processor and at least two interfaces;
wherein at least two interfaces are provided for an application run by the processor; the processor is used for sending an acquisition request to the video source server through at least two interfaces; monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to an acquisition request fed back by a video source server is received or not; if the data interface status indicates that at least one of the at least two interfaces receives video data, the currently received video data is displayed in the application interface of the application program, and for the specific execution process of the processor, please refer to the above method embodiment, which is not described again in this embodiment.
The embodiment of the application also provides a storage medium, wherein the storage medium stores computer program codes, and the computer program codes realize the data display method when being executed.
It should be noted that, various embodiments in this specification may be described in a progressive manner, and features described in various embodiments in this specification may be replaced with or combined with each other, each embodiment focuses on differences from other embodiments, and similar parts between various embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for presenting data, the method comprising:
sending an acquisition request to a video source server through at least two interfaces corresponding to an application program;
monitoring the data receiving condition of any one of the at least two interfaces, wherein the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received or not;
if the data interface status indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in an application interface of the application program.
2. The method of claim 1, further comprising: acquiring a data display sequence between interfaces which are arranged for receiving the video data;
if the data interface status indicates that at least one of the at least two interfaces receives the video data, displaying the currently received video data in the application interface of the application program includes:
if the data interface state indicates that at least one of the at least two interfaces receives the video data, acquiring identification information of the interface currently receiving the video data;
determining a display position corresponding to an interface currently receiving the video data according to the data display sequence and the identification information;
and displaying the video data currently received by the interface according to the display position corresponding to the interface.
3. The method of claim 1, further comprising: acquiring a data display style of a set interface for receiving the video data;
the displaying the currently received video data in the application interface of the application program comprises: and displaying the video data received by the current interface in the application interface of the application program according to the data display style of the interface which receives the video data currently.
4. The method of claim 1, further comprising: acquiring a data type of a set interface for receiving the video data, wherein the data type is carried in the acquisition request to indicate the video source server to feed back the video data matched with the data type;
or
The method further comprises the following steps: acquiring a data type of a set interface for receiving the video data, wherein the data type is not carried in the acquisition request;
the displaying the currently received video data in the application interface of the application program comprises: and selecting target video data matched with the data type of the interface from the video data currently received by the interface, and displaying the target video data in the application interface.
5. The method according to any one of claims 1 to 4, further comprising: acquiring a preset corresponding relation between an interface and a data display mode, wherein the corresponding relation is used for indicating at least one of a data display sequence, a data display style and a data type corresponding to the interface of video data received by the interface;
the displaying the currently received video data in the application interface of the application program comprises: and displaying the video data currently received by the interface in the application interface according to the corresponding relation between the interface and the data display mode.
6. The method according to any one of claims 1 to 4, wherein the presenting the currently received video data in the application interface of the application program if the data interface status indicates that at least one of the at least two interfaces receives the video data comprises:
if the data interface condition indicates that the at least one interface receives video data but other interfaces do not receive video data, according to a data display sequence among the interfaces, positions corresponding to the interfaces are arranged in a layout template, the position relation corresponding to the interfaces corresponds to the data display sequence among the interfaces, an area occupied by the interface receiving the video data in the layout template is obtained according to the video data received by the interface, the interface not receiving the video data occupies a layout space in the layout template, and the data in the layout space is empty;
rendering the layout template into an application interface to display the video data in the application interface, wherein the layout placeholder is not visible in the application interface after the layout template is rendered into the application interface.
7. A data presentation device, the device comprising:
the sending unit is used for sending an acquisition request to the video source server through at least two interfaces corresponding to the application program;
the monitoring unit is used for monitoring the data receiving condition of any interface of the at least two interfaces, and the data interface condition is used for indicating whether video data corresponding to the acquisition request fed back by the video source server is received or not;
and the display unit is used for displaying the currently received video data in an application interface of the application program if the data interface status indicates that at least one interface of the at least two interfaces receives the video data.
8. The apparatus of claim 7, further comprising: an acquisition unit configured to acquire at least one of a data presentation order between the set interfaces for receiving the video data and a data presentation style of the set interface for receiving the video data;
the display unit is specifically configured to, if the data interface status indicates that at least one of the at least two interfaces receives the video data, obtain identification information of an interface that currently receives the video data; determining a display position corresponding to an interface currently receiving the video data according to the data display sequence and the identification information; and displaying the video data currently received by the interface according to the display position corresponding to the interface, and displaying at least one of the video data received by the current interface in the application interface of the application program according to the data display style of the interface currently receiving the video data.
9. The apparatus of claim 7, further comprising: the acquisition unit is used for acquiring a data type of a set interface used for receiving the video data, and the acquisition request carries the data type so as to indicate the video source server to feed back the video data matched with the data type;
or
The device further comprises: an obtaining unit, configured to obtain a data type of a set interface used for receiving the video data, where the data type is not carried in the obtaining request;
the display unit is specifically configured to select target video data matched with the data type of the interface from video data currently received by the interface, and display the target video data in the application interface.
10. The apparatus according to any one of claims 7 to 9, wherein the presentation unit is specifically configured to, if the data interface status indicates that the at least one interface receives video data but other interfaces do not receive video data, lay out, according to a data presentation order between the interfaces, a position corresponding to each interface in the layout template, where a position relationship corresponding to each interface corresponds to the data presentation order between the interfaces, where an area occupied by an interface that receives video data in the layout template is obtained according to the video data received by the interface, and an interface that does not receive video data occupies a layout place in the layout template, where data in the layout place is empty;
rendering the layout template into an application interface to display the video data in the application interface, wherein the layout placeholder is not visible in the application interface after the layout template is rendered into the application interface.
CN202010738321.7A 2020-07-28 2020-07-28 Data display method and device Pending CN111866572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010738321.7A CN111866572A (en) 2020-07-28 2020-07-28 Data display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010738321.7A CN111866572A (en) 2020-07-28 2020-07-28 Data display method and device

Publications (1)

Publication Number Publication Date
CN111866572A true CN111866572A (en) 2020-10-30

Family

ID=72948884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010738321.7A Pending CN111866572A (en) 2020-07-28 2020-07-28 Data display method and device

Country Status (1)

Country Link
CN (1) CN111866572A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050800A (en) * 2021-03-31 2021-06-29 联想(北京)有限公司 Electronic equipment and processing method
CN114979748A (en) * 2022-05-24 2022-08-30 上海哔哩哔哩科技有限公司 Video processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009086629A1 (en) * 2008-01-07 2009-07-16 Smart Technologies Ulc Method and apparatus for displaying video data from multiple source computers in a multi-monitor computer system
CN107818008A (en) * 2017-11-21 2018-03-20 武汉斗鱼网络科技有限公司 page loading method and device
CN109889895A (en) * 2019-03-13 2019-06-14 浙江大华技术股份有限公司 Video broadcasting method, device, storage medium and electronic device
CN110430460A (en) * 2019-08-08 2019-11-08 上海云视科技股份有限公司 A kind of method, apparatus of display program, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009086629A1 (en) * 2008-01-07 2009-07-16 Smart Technologies Ulc Method and apparatus for displaying video data from multiple source computers in a multi-monitor computer system
CN107818008A (en) * 2017-11-21 2018-03-20 武汉斗鱼网络科技有限公司 page loading method and device
CN109889895A (en) * 2019-03-13 2019-06-14 浙江大华技术股份有限公司 Video broadcasting method, device, storage medium and electronic device
CN110430460A (en) * 2019-08-08 2019-11-08 上海云视科技股份有限公司 A kind of method, apparatus of display program, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050800A (en) * 2021-03-31 2021-06-29 联想(北京)有限公司 Electronic equipment and processing method
US11729460B2 (en) 2021-03-31 2023-08-15 Lenovo (Beijing) Co., Ltd. Electronic device and processing method and system
CN114979748A (en) * 2022-05-24 2022-08-30 上海哔哩哔哩科技有限公司 Video processing method and device
CN114979748B (en) * 2022-05-24 2024-02-23 上海哔哩哔哩科技有限公司 Video processing method and device

Similar Documents

Publication Publication Date Title
CN106487872B (en) Method and device for providing discount coupons and method for distributing and receiving virtual resources
US20200296562A1 (en) Method and device for providing service
CN111866572A (en) Data display method and device
CN113094141B (en) Page display method and device, electronic equipment and storage medium
CN107391277B (en) Information processing method and device
CN109635986A (en) Shops's method for pushing, device, equipment and storage medium
CN109525855A (en) Method and apparatus for handling information
JP2024528436A (en) Data exchange method, device, equipment and storage medium
CN112822560B (en) Virtual gift giving method, system, computer device and storage medium
CN109803008A (en) Method and apparatus for showing information
CN114938458B (en) Object information display method and device, electronic equipment and storage medium
CN112561604A (en) Advertisement pushing method and system
CN114707472A (en) Method and device for field merging and electronic equipment
CN115378901A (en) Work sending method, display method, terminal and server
CN114036429A (en) Material processing method, computing device and storage medium
CN110413165B (en) Icon configuration method and device, electronic equipment and computer readable medium
CN108966034B (en) Virtual article display method, device and storage medium
KR20100116626A (en) Content management that addresses levels of functionality
CN109804349A (en) System and method for reducing downloading request
CN112492399A (en) Information display method and device and electronic equipment
CN109348249B (en) Method and device for determining user acquisition number of digital album and storage medium
CN110061907B (en) Method and equipment for drawing resources and distributing resources
CN112637641A (en) Multi-split screen display layout and display content recommendation method, terminal and storage medium
CN112925976B (en) Method, device, server and storage medium for allocating denomination data
CN112308262A (en) Service management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030

RJ01 Rejection of invention patent application after publication