CN108156529B - Data display method, device and system - Google Patents

Data display method, device and system Download PDF

Info

Publication number
CN108156529B
CN108156529B CN201611109708.6A CN201611109708A CN108156529B CN 108156529 B CN108156529 B CN 108156529B CN 201611109708 A CN201611109708 A CN 201611109708A CN 108156529 B CN108156529 B CN 108156529B
Authority
CN
China
Prior art keywords
data
service data
service
time
time point
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.)
Active
Application number
CN201611109708.6A
Other languages
Chinese (zh)
Other versions
CN108156529A (en
Inventor
刘雄昌
郑恩阳
蔡建平
林青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611109708.6A priority Critical patent/CN108156529B/en
Publication of CN108156529A publication Critical patent/CN108156529A/en
Application granted granted Critical
Publication of CN108156529B publication Critical patent/CN108156529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4758End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for providing answers, e.g. voting
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

Abstract

The application discloses a data display method, which comprises the following steps: receiving a service data acquisition request aiming at a current program; determining a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request; acquiring service data of the current program at the time point; and returning the acquired service data to the initiator. The processing mode can provide the same service data for different live video frames under the condition that the different live video frames at the same time and the same site request the service data of the same program at different time points; therefore, the problem of inconsistent multi-screen data display can be effectively solved.

Description

Data display method, device and system
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data display method, device, and system. The application simultaneously relates to two methods and devices for requesting data presentation and three electronic devices.
Background
The online and offline multi-screen interaction is a playing method advocated by double 11 evening parties and is also a big bright spot of the evening party. The method comprises the steps that voting or praise numbers of participating users are obtained in real time on a late party site, and the trend of the play method of the late party program is determined through a large screen of a live broadcast site of the late party and the public support rate of a mobile phone client. Through the novel interactive playing method of 'people as director', the participation and the existence sense of the user on the program can be enhanced.
Please refer to fig. 1, which is a diagram illustrating a background art of the data display method of the present application. As can be seen from fig. 1, there is a delay time of about 1 minute for the live video stream of the evening party to be relayed to the television or the mobile phone client, for example, the picture displayed by the mobile phone client in 0:20 minutes is actually a picture of the evening party in 0:19 minutes. In order to enable the user to view the current user votes or praise numbers, the mobile phone client needs to send a request for obtaining the user votes or praise numbers to the server while displaying the field picture, and display the data to the user after receiving the data returned by the server.
It can be known through analysis that, in this case, when the large screen (television side) of the late meeting site and the mobile phone client display the site screen at the same time, the time points of respective data requests are different, and therefore, the data corresponding to the site screen at the same time is not consistent between the large screen of the late meeting site and the mobile phone client. For example, the data corresponding to the picture displayed by the large screen in 0:20 minutes at the evening scene is actually the data in 0:19 minutes, and the data corresponding to the picture displayed by the mobile phone client in 0:20 minutes is the data in 0:20 minutes.
In summary, the problem of inconsistent display data exists in the prior art of multi-screen data display, and how to ensure consistency of multi-screen display data becomes a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a data display method, device and system, and aims to solve the problem of inconsistent multi-screen data display in the prior art. The application additionally provides two methods and devices for requesting data presentation and three electronic devices.
The application provides a data display method, which comprises the following steps:
receiving a service data acquisition request aiming at a current program;
determining a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request;
acquiring service data of the current program at the time point;
and returning the acquired service data to the initiator.
Optionally, the manner in which the initiator uses the data includes adding the data to a video frame acquired in real time;
correspondingly, the following method is adopted according to the data using method of the initiator of the service data acquisition request and the time point of data acquisition:
and determining the time point as the current time.
Optionally, the manner in which the initiator uses the data includes displaying the data in a webpage playing a live video stream;
correspondingly, the following method is adopted according to the data using method of the initiator of the service data acquisition request and the time point of data acquisition:
and determining the time point as a time point of a preset video delay time length before the current time.
Optionally, the obtaining the service data of the current program at the time point includes:
acquiring a service index related to the current program;
and taking the data of the service index at the time point as the service data of the current program at the time point.
Optionally, the method further includes:
and in the process of updating the service data of the current program, regularly storing the real-time service data of the current program according to a preset time interval as historical service data of the current program.
Optionally, the current program is associated with a plurality of service indicators, and the obtained service data includes data of the plurality of service indicators.
Optionally, the method further includes:
receiving a data updating request aiming at a specific service index associated with the current program;
and updating the data of the specific service index according to the data updating request.
Optionally, the data update request includes a data accumulation update request;
correspondingly, the data for updating the specific service index is updated in the following way:
and performing cumulative update on the data of the specific service index according to the value to be accumulated carried by the data cumulative update request.
Optionally, the updating the data of the specific service index adopts the following manner:
and updating the data of the specific service index according to the updated data carried by the data updating request.
Optionally, after receiving a data update request for a specific service indicator associated with the current program, the method further includes:
and judging whether the data of the specific service index is allowed to be updated or not, and if so, entering the next step.
Optionally, if the determination result is negative, a prompt message for stopping updating the data is sent back to the initiator of the data updating request.
Optionally, the method further includes:
receiving a request for permission to update data for the specific business index;
marking the specific service index as allowing updating.
Optionally, the method further includes:
receiving a request for stopping updating data aiming at the specific service index;
and marking the specific service index as stop updating.
The present application additionally provides a data display device, comprising:
a receiving unit, configured to receive a service data acquisition request for a current program;
a determining unit, configured to determine a time point at which data is to be acquired according to a data usage manner of an initiator of the service data acquisition request;
an obtaining unit, configured to obtain service data of the current program at the time point;
and the loopback unit is used for loopback the acquired service data to the initiator.
The present application additionally provides an electronic device comprising:
a processor; and
a memory for storing a program for implementing the data presentation method, wherein the following steps are executed after the device is powered on and the program for implementing the data presentation method is run by the processor:
receiving a service data acquisition request aiming at a current program;
determining a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request;
acquiring service data of the current program at the time point;
and returning the acquired service data to the initiator.
The present application additionally provides a method for requesting data presentation, comprising:
acquiring a video frame to be played in a live video stream;
sending a service data acquisition request aiming at the current program to a server;
receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server;
playing the video frame; and displaying the received service data on the video frame.
Optionally, before the sending the service data acquisition request for the current program to the server, the method further includes:
judging whether the service data displayed in the video frame needs to be updated or not;
if the judgment result is yes, entering the next step;
and if the judgment result is negative, playing the video frame.
Optionally, the displaying the received service data on the video frame adopts the following method:
and displaying the received service data in the floating layer of the display page of the video frame.
Optionally, the service data includes statistical data;
the received service data is displayed on the video frame by adopting the following mode:
and displaying the received service data on the video frame in a progress bar display mode.
Optionally, the method further includes:
receiving an instruction for updating the specific service index associated with the current program, which is submitted by a user;
and sending a data updating request aiming at the specific service index to the server.
Optionally, the data update request includes a data accumulation update request, and the data accumulation update request includes a to-be-accumulated value of the specific service index.
Optionally, the data accumulation update request includes updated data of the specific service index.
The present application additionally provides an apparatus for requesting data presentation, comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a video frame to be played in a live video stream;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive service data corresponding to the acquisition time of the video frame of the current program returned by the server;
a playing unit for playing the video frame; and displaying the received service data on the video frame.
The present application additionally provides an electronic device comprising:
a processor; and
a memory for storing a program for implementing the method for requesting presentation of data, the device being powered on and executing the program for requesting presentation of data by said processor, the following steps being performed:
acquiring a video frame to be played in a live video stream;
sending a service data acquisition request aiming at the current program to a server;
receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server;
playing the video frame; and displaying the received service data on the video frame.
The present application additionally provides a method for requesting data presentation, comprising:
collecting video frames in real time;
sending a service data acquisition request aiming at the current program to a server;
receiving real-time service data of the current program returned by the server;
and adding the real-time service data into the video frame.
The present application additionally provides an apparatus for requesting data presentation, comprising:
the acquisition unit is used for acquiring video frames in real time;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive real-time service data of the current program returned by the server;
and the adding unit is used for adding the real-time service data into the video frame.
The present application additionally provides an electronic device comprising:
a processor; and
a memory for storing a program for implementing the method for requesting presentation of data, the device being powered on and executing the program for requesting presentation of data by said processor, the following steps being performed:
collecting video frames in real time;
sending a service data acquisition request aiming at the current program to a server;
receiving real-time service data of the current program returned by the server;
and adding the real-time service data into the video frame.
The present application additionally provides a data presentation system, comprising: the data presentation device, and the first device for requesting data presentation.
Optionally, the data presentation system further includes: a data processing device;
the data processing device is used for receiving a data updating permission instruction which is input by a user and aims at the service index related to the current program, and sending a data updating permission request aiming at the service index to the server; and receiving a data updating stopping instruction aiming at the business index input by the user, and sending a data updating stopping request aiming at the business index to a server.
Optionally, the data presentation system further includes: the second apparatus for requesting data presentation is described above.
Compared with the prior art, the method has the following advantages:
the data display method comprises the steps of receiving a service data acquisition request aiming at a current program, determining a time point of data acquisition according to a data using mode of a request initiator, then acquiring service data of the current program at the time point, and returning the acquired service data to the initiator; the processing mode can provide the same service data for different live video frames under the condition that the different live video frames at the same time and the same site request the service data of the same program at different time points; therefore, the problem of inconsistent multi-screen data display can be effectively solved.
Drawings
FIG. 1 is a diagram of a background art of a data presentation method provided herein;
FIG. 2 is a flow chart of an embodiment of a data presentation method provided herein;
FIG. 3 is a memory layout of an embodiment of a data presentation method provided herein;
FIG. 4 is a schematic view of an embodiment of a data presentation device provided herein;
FIG. 5 is a schematic diagram of an embodiment of an electronic device provided herein;
FIG. 6 is a flow diagram of an embodiment of a method for requesting data presentation provided herein;
FIG. 7 is a schematic diagram of an embodiment of an apparatus for requesting data presentation provided herein;
FIG. 8 is a schematic diagram of an embodiment of an electronic device provided herein;
FIG. 9 is a flow chart of an embodiment of yet another method for requesting presentation of data provided herein;
FIG. 10 is a schematic diagram of an embodiment of yet another apparatus for requesting data presentation provided herein;
FIG. 11 is a schematic diagram of an embodiment of yet another electronic device provided herein;
FIG. 12 is a schematic diagram of an embodiment of a data presentation system provided herein.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In the application, a data display method, a data display device and a data display system are provided, two methods and devices for requesting data display are provided, and three electronic devices are provided. Details are described in the following examples one by one.
The core basic idea of the data display method provided by the application is as follows: and determining the time point of the data to be acquired according to the data using mode of the initiator of the service data acquisition request, then acquiring the service data of the current program at the time point, and returning the acquired service data to the request initiator. The same service data can be provided for different live video frames at the same moment, so that the problem of inconsistent multi-screen data display can be effectively solved.
Please refer to fig. 2, which is a flowchart illustrating an embodiment of a data displaying method according to the present application. The method comprises the following steps:
step S101: a business data acquisition request for a current program is received.
The service data acquisition request may include information of a manner in which the service data is used by the requester. The data using mode of the initiator can be a using mode of adding data into a video frame collected in real time, and can also be a using mode of displaying data in a webpage playing a live video stream.
The use mode of adding the data into the video frames acquired in real time refers to that the data is directly added into the acquired video frames, so that the data is added into the video frames, and a live video stream formed by the video frames added with the data is played on a large screen (television) of a live broadcast site.
The use mode of displaying the data in the webpage playing the live video stream does not change the picture of the video frame, the video frame of the played live video stream is not added with the data, but the data is displayed in the webpage playing the live video stream, for example, when a user watches the live video stream through a mobile phone, the data corresponding to the video frame can be displayed in a floating layer of the webpage playing the live video stream.
After receiving a service data acquisition request for a current program, the method may proceed to determine a time point at which data is to be acquired according to a data usage manner of an initiator of the service data acquisition request.
Step S103: and determining the time point of acquiring the data according to the data using mode of the initiator of the service data acquisition request.
When the data is used by the initiator in a manner of adding data to a video frame acquired in real time, the real-time service data of the current program needs to be acquired, in this case, step S103 may be implemented in the following manner: and determining the time point as the current time.
When the data is used by the initiator in a manner of displaying the data in a web page playing a live video stream, since the video frame is delayed by the playing end for N minutes to be received and played, the service data of the time point at which the video frame is collected needs to be acquired, in this case, this step S103 can be implemented in the following manner: and determining the time point as a time point of a preset video delay time length before the current time.
The preset video delay time length can be set according to actual conditions, such as: may be set to 1 minute, etc.
According to the data display method provided by the application, the time point of data acquisition is determined according to the data using mode of the initiator of the service data acquisition request, so that not only the real-time service data of the current program needs to be stored in advance, but also the historical service data of the current program at different time points needs to be stored in advance.
The historical service data can be stored in the following way: and in the process of updating the service data of the current program, regularly storing the real-time service data of the current program according to a preset time interval as historical service data of the current program.
The preset time interval may be set to a second-level time interval, for example, 2 seconds, that is, the real-time service data of the current program is stored every 2 seconds, and the data is used as historical service data and needs to be stored corresponding to the actual storage time, for example, the data of 15:01:03 seconds is 1000, and the data of 15:01:05 seconds is 2125.
Please refer to fig. 3, which is a memory layout diagram of an embodiment of a data displaying method according to the present application. In this embodiment, the historical service data of the current program, i.e. the time slice data P in the figure, is recorded by a preset historical data timing storage task (e.g. a second-level timing storage task).
In addition, the historical service data of the current program to be recorded can also be realized by adopting the following mode: when a data updating request which is submitted by a user and aims at a specific service index is received, whether the time interval between the current time and the last time of storing the historical data of the specific service index reaches a preset time length or not is judged, if yes, a corresponding record between the data of the specific service index and the current time is stored and is used as the historical data of the specific service index.
After the time point of acquiring data is determined, the next step may be entered to acquire the service data of the current program at the time point.
Step S105: and acquiring the service data of the current program at the time point.
And storing the real-time service data of the current program and historical service data of a plurality of time points in a service data storage device. And reading the service data of the current program at the time point from a storage device of the service data according to the index identifier of the relevant service index of the current program.
The business data of the current program can comprise a plurality of business data, namely the current program can be associated with a plurality of business indexes, for example, a user watches double 11 evening parties through a mobile phone client, the program being played is a certain small-article program, in order to enable the user to participate in program interaction, a link for determining the development direction of the small-article scenario is designed in the evening parties through user voting, the user can vote the desired scenario development direction through the mobile phone, and the user votes of various scenario development directions can be updated in real time through a large screen on the spot in the evening parties; if two scenario development directions are designed for the showpiece program, then the program is associated with at least two service indexes, namely: the server updates the data of the two service indexes in real time according to the voting condition of the users and displays the data in a live broadcast picture (video frame).
In specific implementation, to acquire the service data of the current program at the time point, the following steps may be adopted: 1) acquiring a service index related to the current program; 2) and taking the data of the service index at the time point as the service data of the current program at the time point.
Step S107: and returning the acquired service data to the initiator.
After the service data of the current program is acquired through the above steps S101 to S105, the service data may be sent back to the initiator of the service data acquisition request.
In specific implementation, the service data of the current program may be service data formed according to interaction between a user and the program; in this case, the data display method provided by the present application may further include the following steps: 1) receiving a data updating request aiming at a specific service index associated with the current program; 2) and updating the data of the specific service index according to the data updating request. Through the two steps, a data updating request which is sent by a user client and aims at the specific service index associated with the current program can be received, and the data of the specific service index can be updated according to the data updating request.
For example, in the process of watching a currently played small program, a user may vote on a desired plot development direction through a mobile phone, if the plot development direction desired by the user is the plot development direction B, the mobile phone sends a data update request for a service index, which is the number of votes cast by the user in the plot development direction B, to a server, and the server accumulates data of the service index after receiving the request.
According to the actual service situation, the data update request may be a data accumulation update request or may be only a request for directly replacing data.
If the data update request is an update request of data accumulation, the step of updating the data of the specific service index may be implemented in the following manner: and performing cumulative update on the data of the specific service index according to the value to be accumulated carried by the update request of the data accumulation.
If the data update request is an update request for directly replacing data, the step of updating the data of the specific service index may be implemented in the following manner: and replacing and updating the data of the specific service index according to the updated data carried by the update request for directly replacing the data.
In addition, according to an actual service situation, after the receiving a data update request for a specific service index associated with the current program, the method may further include the following steps: judging whether the data of the specific service index is allowed to be updated or not, if so, executing the step of updating the data of the specific service index according to the data updating request; if the judgment result is no, the prompt message of stopping updating the data can be sent back to the initiator of the data updating request.
In specific implementation, in order to control the update operation of the specific service index, the data display method provided by the present application may further include the following steps: 1) receiving a request for permission to update data for the specific business index; 2) marking the specific service index as allowing updating. For example, when a live host takes a vote, the server will receive a request for update-allowed data for the current program and mark the program-related service indicator as update-allowed.
Correspondingly, the data display method provided by the application can further comprise the following steps: 1) receiving a request for stopping updating data aiming at the specific service index; 2) and marking the specific service index as stop updating. For example, when the live host broadcasts a stop vote, the server will receive a request for update-allowed data for the current program and mark the program-related service indicator as a stop update.
In the foregoing embodiment, a data display method is provided, and correspondingly, the present application further provides a data display apparatus. The apparatus corresponds to an embodiment of the method described above.
Please refer to fig. 4, which is a schematic diagram of an embodiment of a data display device of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The present application additionally provides a data display device, comprising:
a receiving unit, configured to receive a service data acquisition request for a current program;
a determining unit, configured to determine a time point at which data is to be acquired according to a data usage manner of an initiator of the service data acquisition request;
an obtaining unit, configured to obtain service data of the current program at the time point;
and the loopback unit is used for loopback the acquired service data to the initiator.
Optionally, the manner in which the initiator uses the data includes adding the data to a video frame acquired in real time;
correspondingly, the determining unit is specifically configured to determine the time point as the current time.
Optionally, the manner in which the initiator uses the data includes displaying the data in a webpage playing a live video stream;
correspondingly, the determining unit is specifically configured to determine the time point as a time point of a preset video delay time length before the current time.
Optionally, the obtaining unit includes:
a service index obtaining subunit, configured to obtain a service index related to the current program;
and the service data acquisition subunit is configured to use the data of the service indicator at the time point as the service data of the current program at the time point.
Optionally, the data display device further includes:
and the storage unit is used for regularly storing the real-time service data of the current program as the historical service data of the current program according to a preset time interval in the process of updating the service data of the current program.
Optionally, the current program is associated with a plurality of service indicators, and the obtained service data includes data of the plurality of service indicators.
Optionally, the data display device further includes:
a data update request receiving unit, configured to receive a data update request for a specific service indicator associated with the current program;
and the updating unit is used for updating the data of the specific service index according to the data updating request.
Optionally, the data update request includes a data accumulation update request;
correspondingly, the updating unit is specifically configured to perform cumulative update on the data of the specific service index according to the value to be accumulated carried by the data cumulative update request.
Optionally, the updating unit is specifically configured to update the data of the specific service indicator according to the updated data carried in the data update request.
Optionally, the data display device further includes:
and the judging unit is used for judging whether the data of the specific service index is allowed to be updated or not, and if so, the updating unit is started.
Optionally, if the determination result is negative, a prompt message for stopping updating the data is sent back to the initiator of the data updating request.
Optionally, the data display device further includes:
an update allowance data request receiving unit, configured to receive an update allowance data request for the specific service indicator;
and the updating permission marking unit is used for marking the specific service index as updating permission.
Optionally, the data display device further includes:
a stop update data request receiving unit, configured to receive a stop update data request for the specific service indicator;
and the updating stop marking unit is used for marking the specific service index as updating stop.
Please refer to fig. 5, which is a schematic diagram of an embodiment of an electronic device according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
An electronic device of the present embodiment includes: a processor 101; and a memory (103) for storing a plurality of data,
the memory is used for storing a program for realizing the data display method, and after the equipment is powered on and the program for realizing the data display method is run by the processor, the following steps are executed:
receiving a service data acquisition request aiming at a current program;
determining a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request;
acquiring service data of the current program at the time point;
and returning the acquired service data to the initiator.
Corresponding to the data display method, the application also provides a method for requesting data display. Please refer to fig. 6, which is a flowchart illustrating an embodiment of a method for requesting data presentation according to the present application, wherein parts of the embodiment that are the same as the first embodiment are not repeated, and please refer to corresponding parts in the first embodiment. The application provides a method for requesting data display, which comprises the following steps:
step S101: and acquiring a video frame to be played in the live video stream.
The method for requesting data display can be operated on equipment such as a smart phone and a personal computer, and for example, a user can watch live video through the smart phone. After the device watching the live video acquires the video frame to be played in the live video stream, the next step can be entered to send a service data acquisition request for the current program to the service data providing server associated with the live video.
Step S103: and sending a business data acquisition request aiming at the current program to the server.
The service data acquisition request may include information using a data mode.
It should be noted that the visual impact of two adjacent video frames of the live video stream on the user is not obvious, and if the service data of the current program needs to be acquired from the server every time a video frame is played, the computing resource of the device watching the video is greatly occupied, and a large network flow is consumed.
As an optional scheme, before sending the service data acquisition request for the current program to the server, the method may further include the following steps: judging whether the service data displayed in the video frame needs to be updated or not; if the judgment result is yes, executing a step of sending a service data acquisition request aiming at the current program to the server; and if the judgment result is negative, directly playing the video frame. By adopting the processing mode, the consumption of computing resources and network flow can be effectively reduced.
In specific implementation, a task of updating service data at regular time may be deployed in a device for watching a live video, and a service data acquisition request for a current program is sent to a server according to a preset time interval.
In addition, before sending the service data acquisition request for the current program to the server, the method may further include the following steps: judging whether the service data need to be displayed in the video frame; if the judgment result is yes, executing a step of sending a service data acquisition request aiming at the current program to the server; and if the judgment result is negative, directly playing the video frame. By adopting the processing mode, the current program without the service data does not request the service data from the server; thus, the consumption of computing resources and network traffic may be further reduced.
Step S105: and receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server.
And after receiving the service data acquisition request, the server returns service data corresponding to the acquisition time of the video frame to be played of the current program.
Step S107: playing the video frame; and displaying the received service data on the video frame.
After receiving the service data corresponding to the acquisition time of the video frame to be played of the current program returned by the server, the video frame to be played can be played in the playing page of the live video stream, and the received service data is displayed on the video frame.
If the device for watching the live video stream is a smart phone, the received service data is displayed on the video frame, and the method can be realized by adopting the following mode: and displaying the received service data in the floating layer of the display page of the video frame.
It should be noted that the service data of the current program may be statistical service data (e.g., user votes), or may include non-statistical service data. If the service data is statistical data, the displaying of the received service data on the video frame can be implemented in the following manner: displaying the received service data on the video frame in a progress bar display mode; the processing mode enables the user to intuitively feel the progress process of the business data; therefore, the user experience can be effectively improved.
In addition, when the user watches the direct video stream, the user can also send a request like user voting to the server, so the method for requesting data presentation provided by the application can further comprise the following steps: 1) receiving an instruction for updating the specific service index associated with the current program, which is submitted by a user; 2) and sending a data updating request aiming at the specific service index to the server.
For example, the program being played is a certain minor program, a link for determining the development direction of a minor scenario through user voting is designed at night, and the user can vote for the desired development direction of the minor scenario through a mobile phone.
If the business data of the current program is statistical business data, the data updating request is a data accumulation updating request, and the data accumulation updating request can comprise the value of the number to be accumulated of the specific business index, for example, the user can vote three times at a time.
And if the business data of the current program is non-statistical business data, the data accumulation updating request comprises updated data of the specific business index.
In the above embodiments, a method for requesting data presentation is provided, and correspondingly, the present application also provides an apparatus for requesting data presentation. The apparatus corresponds to an embodiment of the method described above.
Please refer to fig. 7, which is a schematic diagram of a device embodiment for requesting data presentation of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
An apparatus for requesting data presentation according to this embodiment includes:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a video frame to be played in a live video stream;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive service data corresponding to the acquisition time of the video frame of the current program returned by the server;
a playing unit for playing the video frame; and displaying the received service data on the video frame.
Optionally, the apparatus for requesting data presentation further includes:
the judging unit is used for judging whether the service data displayed in the video frame needs to be updated or not;
if the judgment result is yes, starting the receiving unit;
and if the judgment result is negative, playing the video frame.
Optionally, the playing unit is specifically configured to display the received service data in a floating layer of the display page of the video frame.
Optionally, the service data includes statistical data;
the playing unit is specifically configured to display the received service data on the video frame in a progress bar display manner.
Optionally, the apparatus for requesting data presentation further includes:
the updating instruction receiving unit is used for receiving an instruction which is submitted by a user and used for updating the specific service index associated with the current program;
and the updating request sending unit is used for sending a data updating request aiming at the specific service index to the server.
Optionally, the data update request includes a data accumulation update request, and the data accumulation update request includes a to-be-accumulated value of the specific service index.
Optionally, the data accumulation update request includes updated data of the specific service index.
Please refer to fig. 8, which is a diagram illustrating an embodiment of an electronic device according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
An electronic device of the present embodiment includes: a processor 101; and a memory (103) for storing a plurality of data,
the memory is used for storing a program for implementing the method for requesting data presentation, and after the device is powered on and the program for requesting data presentation is run by the processor, the following steps are executed:
acquiring a video frame to be played in a live video stream;
sending a service data acquisition request aiming at the current program to a server;
receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server;
playing the video frame; and displaying the received service data on the video frame.
Corresponding to the data display method, the application also provides another method for requesting data display. Please refer to fig. 9, which is a flowchart illustrating another embodiment of a method for requesting data presentation according to the present application, wherein parts of the embodiment that are the same as the first embodiment are not repeated, please refer to corresponding parts in the first embodiment. The application provides a method for requesting data presentation, which comprises the following steps:
step S101: video frames are collected in real time.
In specific implementation, the images of the live broadcast site can be collected in real time through the camera device to form individual video frames, and the video frames can form live broadcast video streams. When a video frame is acquired, the next step can be entered, and a service data acquisition request for the current program of the live broadcast site is sent to the server.
Step S103: and sending a business data acquisition request aiming at the current program to the server.
The service data acquisition request may include information on a manner of using the service data, which is to add the service data to a video frame collected in real time.
Step S105: and receiving the real-time service data of the current program returned by the server.
Step S107: and adding the real-time service data into the video frame.
After receiving the real-time service data of the current program returned by the server, the data can be directly added into the video frames acquired in real time, the video frames are added with the data, and a live video stream formed by the video frames added with the data is played on a live scene large screen.
In the above embodiments, a further method for requesting data presentation is provided, and correspondingly, a further apparatus for requesting data presentation is provided. The apparatus corresponds to an embodiment of the method described above.
Please refer to fig. 10, which is a schematic diagram of yet another device embodiment for requesting data presentation of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
Another apparatus for requesting data presentation according to this embodiment includes:
the acquisition unit is used for acquiring video frames in real time;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive real-time service data of the current program returned by the server;
and the adding unit is used for adding the real-time service data into the video frame.
Please refer to fig. 11, which is a diagram illustrating an embodiment of an electronic device according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
An electronic device of the present embodiment includes: a processor 101; and a memory (103) for storing a plurality of data,
the memory is used for storing a program for implementing the method for requesting data presentation, and after the device is powered on and the program for requesting data presentation is run by the processor, the following steps are executed:
collecting video frames in real time;
sending a service data acquisition request aiming at the current program to a server;
receiving real-time service data of the current program returned by the server;
and adding the real-time service data into the video frame.
An embodiment of the present application further provides a data presentation system, as shown in fig. 12, the system includes the data presentation device 101 according to the above embodiment and at least one first device 102 for requesting data presentation according to the above embodiment. The data presentation apparatus 101 is usually deployed in a server, but is not limited to the server, and may be any device capable of implementing the data presentation method; the first device for requesting data presentation is usually deployed in terminal devices such as mobile communication devices, personal computers, PADs, ipads, and the like.
For example, a plurality of first devices for requesting data display are respectively deployed on different smart phones, and can acquire a video frame to be played in a live video stream and send a service data acquisition request for a current program to a server; the data display device is deployed on a server, determines a time point of data acquisition by receiving a service data acquisition request aiming at a current program and according to a data use mode of an initiator of the service data acquisition request, then acquires service data of the current program at the time point, and returns the acquired service data to the initiator; each first device for requesting data display plays the video frame to be played after receiving the service data corresponding to the acquisition time of the video frame of the current program returned by the server, and displays the received service data on the video frame.
In specific implementation, the data presentation system provided by the application may further include a data processing device. The data processing device is usually deployed in terminal equipment such as mobile communication equipment, personal computers, PADs, ipads and the like.
The data processing device is used for receiving a data updating permission instruction which is input by a user and aims at the service index related to the current program, and sending a data updating permission request aiming at the service index to the server; and receiving a data updating stopping instruction aiming at the business index input by the user, and sending a data updating stopping request aiming at the business index to a server.
In addition, the data display system provided by the present application may further include the second apparatus for requesting data display, and the apparatus is generally deployed in terminal devices such as mobile communication devices, personal computers, PADs, ipads, and the like.
The second device for requesting data presentation can collect a video frame in real time, send a service data acquisition request for a current program to a server in which the data presentation device is deployed, and add real-time service data to the video frame after receiving the real-time service data of the current program returned by the server.
According to the data display method, the data display device and the data display system, a service data acquisition request for a current program is received, a time point of data acquisition is determined according to a data use mode of a request initiator, then service data of the current program at the time point is acquired, and the acquired service data are sent back to the initiator; the processing mode can provide the same service data for different live video frames under the condition that the different live video frames at the same time and the same site request the service data of the same program at different time points; therefore, the problem of inconsistent multi-screen data display can be effectively solved.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (28)

1. A method for displaying data, comprising:
receiving a service data acquisition request aiming at a current program;
determining a time point of data acquisition according to a data using mode of an initiator of the service data acquisition request, wherein if the service data is added into a video frame collected in real time, the time point is determined as the current time; if the service data are displayed in a webpage playing a live video stream, determining the time point as a time point of a preset video delay time length before the current time;
acquiring service data of the current program at the time point;
and returning the acquired service data to the initiator.
2. The data presentation method of claim 1, wherein the obtaining of the service data of the current program at the time point comprises:
acquiring a service index related to the current program;
and taking the data of the service index at the time point as the service data of the current program at the time point.
3. The data presentation method of claim 1, further comprising:
and in the process of updating the service data of the current program, regularly storing the real-time service data of the current program according to a preset time interval as historical service data of the current program.
4. The data presentation method of claim 1, wherein the current program is associated with a plurality of service indicators, and the obtained service data comprises data of the plurality of service indicators.
5. The data presentation method of claim 1, further comprising:
receiving a data updating request aiming at a specific service index associated with the current program;
and updating the data of the specific service index according to the data updating request.
6. The data presentation method of claim 5, wherein the data update request comprises a data accumulation update request;
correspondingly, the data for updating the specific service index is updated in the following way:
and performing cumulative update on the data of the specific service index according to the value to be accumulated carried by the data cumulative update request.
7. The method according to claim 5, wherein the updating the data of the specific service index is performed by:
and updating the data of the specific service index according to the updated data carried by the data updating request.
8. The data presentation method of claim 5, wherein after receiving the data update request for the specific service indicator associated with the current program, further comprising:
and judging whether the data of the specific service index is allowed to be updated or not, and if so, entering the next step.
9. The data presentation method according to claim 8, wherein if the determination result is negative, a prompt message to stop updating the data is sent back to the originator of the data update request.
10. The data presentation method of claim 8, further comprising:
receiving a request for permission to update data for the specific business index;
marking the specific service index as allowing updating.
11. The data presentation method of claim 10, further comprising:
receiving a request for stopping updating data aiming at the specific service index;
and marking the specific service index as stop updating.
12. A data presentation device, comprising:
a receiving unit, configured to receive a service data acquisition request for a current program;
a determining unit, configured to determine a time point at which data is to be acquired according to a data usage manner of an initiator of the service data acquisition request;
an obtaining unit, configured to obtain service data of the current program at the time point;
a loopback unit, configured to loopback the obtained service data to the initiator;
if the service data is added into a video frame collected in real time, determining the time point as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
13. An electronic device, comprising:
a processor; and
a memory for storing a program for implementing the data presentation method, wherein the following steps are executed after the device is powered on and the program for implementing the data presentation method is run by the processor: receiving a service data acquisition request aiming at a current program; determining a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request; acquiring service data of the current program at the time point; returning the obtained service data to the initiator;
if the service data is added into a video frame collected in real time, determining the time point as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
14. A method for requesting presentation of data, comprising:
acquiring a video frame to be played in a live video stream;
sending a service data acquisition request aiming at the current program to a server, wherein the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; if the service data are displayed in a webpage playing a live video stream, determining the time point as a time point of a preset video delay time length before the current time;
receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server;
playing the video frame; and displaying the received service data on the video frame.
15. The method for requesting data presentation according to claim 14, before said sending a service data acquisition request for a current program to a server, further comprising:
judging whether the service data displayed in the video frame needs to be updated or not;
if the judgment result is yes, entering the next step;
and if the judgment result is negative, playing the video frame.
16. The method for requesting data presentation according to claim 14, wherein the presenting the received service data on the video frame is performed by:
and displaying the received service data in the floating layer of the display page of the video frame.
17. The method for requesting presentation of data according to claim 14, wherein said business data comprises statistical-type data;
the received service data is displayed on the video frame by adopting the following mode:
and displaying the received service data on the video frame in a progress bar display mode.
18. The method for requesting presentation of data according to claim 14, further comprising:
receiving an instruction for updating the specific service index associated with the current program, which is submitted by a user;
and sending a data updating request aiming at the specific service index to the server.
19. The method for requesting data presentation according to claim 18, wherein the data update request comprises a data accumulation update request, and the data accumulation update request comprises a to-be-accumulated value of the specific service indicator.
20. The method for requesting presentation of data as claimed in claim 18, wherein the request for cumulative update of data includes updated data for the specific business metric.
21. An apparatus for requesting presentation of data, comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a video frame to be played in a live video stream;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive service data corresponding to the acquisition time of the video frame of the current program returned by the server;
a playing unit for playing the video frame; and displaying the received service data on the video frame;
the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
22. An electronic device, comprising:
a processor; and
a memory for storing a program for implementing the method for requesting presentation of data, the device being powered on and executing the program for requesting presentation of data by said processor, the following steps being performed: acquiring a video frame to be played in a live video stream; sending a service data acquisition request aiming at the current program to a server; receiving service data corresponding to the acquisition time of the current program in the video frame returned by the server; playing the video frame; and displaying the received service data on the video frame;
the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
23. A method for requesting presentation of data, comprising:
collecting video frames in real time;
sending a service data acquisition request aiming at the current program to a server, wherein the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; if the service data are displayed in a webpage playing a live video stream, determining the time point as a time point of a preset video delay time length before the current time;
receiving real-time service data of the current program returned by the server;
and adding the real-time service data into the video frame.
24. An apparatus for requesting presentation of data, comprising: a
The acquisition unit is used for acquiring video frames in real time;
a sending unit, configured to send a service data acquisition request for a current program to a server;
a receiving unit, configured to receive real-time service data of the current program returned by the server;
the adding unit is used for adding the real-time service data into the video frame;
the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
25. An electronic device, comprising:
a processor; and
a memory for storing a program for implementing the method for requesting presentation of data, the device being powered on and executing the program for requesting presentation of data by said processor, the following steps being performed: collecting video frames in real time; sending a service data acquisition request aiming at the current program to a server; receiving real-time service data of the current program returned by the server; adding the real-time service data to the video frame;
the server determines a time point of data acquisition according to a data use mode of an initiator of the service data acquisition request, and if the service data is added into a video frame acquired in real time, the time point is determined as the current time; and if the service data are displayed in a webpage playing the live video stream, determining the time point as a time point of a preset video delay time length before the current time.
26. A data presentation system, comprising: a data presentation device as claimed in claim 12 and a device for requesting data presentation as claimed in claim 21.
27. The data presentation system of claim 26, further comprising: a data processing device;
the data processing device is used for receiving a data updating permission instruction which is input by a user and aims at the service index related to the current program, and sending a data updating permission request aiming at the service index to the server; and receiving a data updating stopping instruction aiming at the business index input by the user, and sending a data updating stopping request aiming at the business index to a server.
28. The data presentation system of claim 26, further comprising: the apparatus for requesting presentation of data according to claim 24.
CN201611109708.6A 2016-12-02 2016-12-02 Data display method, device and system Active CN108156529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611109708.6A CN108156529B (en) 2016-12-02 2016-12-02 Data display method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611109708.6A CN108156529B (en) 2016-12-02 2016-12-02 Data display method, device and system

Publications (2)

Publication Number Publication Date
CN108156529A CN108156529A (en) 2018-06-12
CN108156529B true CN108156529B (en) 2021-06-04

Family

ID=62467825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611109708.6A Active CN108156529B (en) 2016-12-02 2016-12-02 Data display method, device and system

Country Status (1)

Country Link
CN (1) CN108156529B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284163A (en) * 2018-09-20 2019-01-29 中国银行股份有限公司 Interface method for pushing, device for service terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080250131A1 (en) * 2007-04-04 2008-10-09 Ching-Kang Lee Server and related method for inserting data into streaming data for a network system
CN104363257B (en) * 2014-10-11 2018-02-23 广州华多网络科技有限公司 A kind of user interface data method for refreshing and equipment
CN104918124B (en) * 2015-05-11 2017-12-08 腾讯科技(北京)有限公司 Living broadcast interactive system, method for sending information, message receiving method and device
CN104954879A (en) * 2015-06-17 2015-09-30 北京奇艺世纪科技有限公司 Video interaction content display method and device

Also Published As

Publication number Publication date
CN108156529A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
US9787487B2 (en) Facilitating media streaming with social interaction
CN109089154B (en) Video extraction method, device, equipment and medium
CN102905170B (en) Screen popping method and system for video
CN109089127B (en) Video splicing method, device, equipment and medium
CN108632632B (en) Live webcast data processing method and device
TWI768220B (en) Method and device for pushing video content object, and electronic device
CN108174233A (en) A kind of live broadcasting method, device, server and medium
CN108635863B (en) Live webcast data processing method and device
CN109874047B (en) Live broadcast interaction method, device and system
CN105721813A (en) Automatic video track forming method and system
CN102378059A (en) Internet TV and streaming media multibreak play method thereof
CN111147911A (en) Video clipping method and device, electronic equipment and storage medium
CN108174267A (en) The sending device of interactive information, method and computer readable storage medium in live streaming
CN112714329A (en) Display control method and device for live broadcast room, storage medium and electronic equipment
CN111050204A (en) Video clipping method and device, electronic equipment and storage medium
CN114025185A (en) Video playback method and device, electronic equipment and storage medium
CN108156529B (en) Data display method, device and system
CN112770172A (en) Live broadcast monitoring method and device, computer equipment and storage medium
CN105872756B (en) A kind of method, apparatus and system for sharing information of televising
CN106488295A (en) A kind of method for information display and device
CN108449646B (en) Method, equipment and medium for establishing social relationship through barrage
CN109194971A (en) A kind of generation method and device for multimedia file
CN113727125B (en) Live broadcast room screenshot method, device, system, medium and computer equipment
CN112954380B (en) Video playing processing method and device
CN110891200B (en) Bullet screen based interaction method, device, equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1256833

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant