CN111988669B - Video interaction data processing method and device, electronic equipment and storage medium - Google Patents

Video interaction data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111988669B
CN111988669B CN202010859952.4A CN202010859952A CN111988669B CN 111988669 B CN111988669 B CN 111988669B CN 202010859952 A CN202010859952 A CN 202010859952A CN 111988669 B CN111988669 B CN 111988669B
Authority
CN
China
Prior art keywords
interactive
data
video
identifier
field
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
CN202010859952.4A
Other languages
Chinese (zh)
Other versions
CN111988669A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010859952.4A priority Critical patent/CN111988669B/en
Publication of CN111988669A publication Critical patent/CN111988669A/en
Application granted granted Critical
Publication of CN111988669B publication Critical patent/CN111988669B/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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a processing method, a device, an electronic device and a storage medium of video interaction data, wherein the method comprises the following steps: acquiring interactive data generated by interactive operation implemented aiming at a video tag, wherein the video tag corresponds to a target video displayed by a client and at least one data item; determining a target data item in at least one data item, wherein a plurality of interactive fields contained in the target data item are matched with interactive data, and updating field values of interactive content fields in the interactive fields according to the interactive data; and according to at least one preset statistical dimension, counting field values of interactive content fields in at least one data item corresponding to the target video to obtain interactive statistical data, wherein the interactive statistical data is used for displaying in a client.

Description

Video interaction data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method and an apparatus for processing video interaction data, an electronic device, and a storage medium.
Background
With the rapid development of network technologies, the functions provided by video services are increasingly abundant, and the interactive operations performed by users for videos are gradually diversified.
In the related art, a user is generally allowed to perform interactive operation on a video, and corresponding video interaction data and the video are subjected to single-dimensional association storage. However, when the same video corresponds to a plurality of video tags, only allowing the user to perform interactive operation on the video itself will undoubtedly affect the interactive experience of the user; further, when the video and the video tag corresponding to the video have a multidimensional correspondence, it is often inconvenient to perform comprehensive statistics on the video or the video tag from multiple dimensions by only performing single-dimensional association storage on the video interaction data and the video.
Disclosure of Invention
The present disclosure provides a method and apparatus for processing video interaction data, an electronic device, and a storage medium, to at least solve the technical problems in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing video interaction data is provided,
acquiring interactive data generated by interactive operation implemented aiming at a video tag, wherein the video tag corresponds to a target video displayed by a client and at least one data item;
determining a target data item in the at least one data item, wherein a plurality of interactive fields contained in the target data item are matched with the interactive data, and updating field values of interactive content fields in the interactive fields according to the interactive data;
and according to at least one preset statistical dimension, counting field values of interactive content fields in at least one data item corresponding to the target video to obtain interactive statistical data, wherein the interactive statistical data is used for being displayed in the client.
Optionally, the acquiring the interaction data generated by the interactive operation performed on the video tag includes:
receiving a second interactive message which is sent by a data management platform and contains a virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to a first interactive message sent by the client; the first interactive message comprises the virtual identifier and the operation type identifier, or the first interactive message comprises the virtual identifier and is sent to the data management platform by the client through a transmission channel corresponding to the operation type identifier;
and extracting the virtual identifier and the operation type identifier from the second interactive message, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the receiving the second interactive message sent by the data management platform and including the virtual identifier and the operation type identifier includes:
after receiving the second interactive message, adding the second interactive message to the end of a local message queue;
and after the field values of the interactive content fields in the interactive fields are updated, returning an interactive response message aiming at the second interactive message to the data management platform.
Optionally, the method further includes:
splicing the target video identification and the video label identification into the virtual identification;
and issuing the virtual identifier to the client so that the client sends the first interactive message containing the virtual identifier to the data management platform based on the interactive operation.
Optionally, the acquiring the interaction data generated by the interactive operation performed on the video tag includes:
extracting a virtual identifier and the operation type identifier from a third interactive message sent by a client, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data; alternatively, the first and second electrodes may be,
receiving a virtual identifier sent by the client through a preset transmission channel, determining the operation type identifier according to a predefined mapping relation between the transmission channel and the operation type, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the interactive data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interactive operation; the plurality of interaction fields include a video identification field, a tag identification field, and an operation type field, and the determining a target data item of the at least one data item includes:
determining the target video identifier, the video tag identifier and the operation type identifier contained in the interactive data;
and if the value of the video identification field contained in any table entry in a preset interactive data table is equal to the target video identification, the value of the tag identification field is equal to the video tag identification, and the value of the operation type field is equal to the operation type identification, determining any table entry as a target data entry matched with the interactive data.
Optionally, the updating, according to the interactive data, field values of interactive content fields in the multiple interactive fields includes:
if a target data item matched with the interactive data does not exist in a preset interactive data table, creating the target data item matched with the interactive data in the interactive data table, and setting the value of an interactive content field of the target data item as interactive content contained in the interactive data;
and if the target data item matched with the interactive data exists in the interactive data table, writing interactive contents contained in the interactive data into an interactive content field of the target data item.
Optionally, any data item in the interactive data table where the target data item is located includes a video identification field, a tag identification field, and an operation type field, and the counting field values of the interactive content field in at least one data item corresponding to the target video according to at least one preset statistical dimension to obtain interactive statistical data includes:
establishing independent identification indexes respectively corresponding to the video identification field, the label identification field and the operation type field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination consisting of the video identification field, the label identification field and the operation type field;
receiving a data query request containing request identification information;
when the request identification information is matched with any one of the video identification field, the tag identification field and the operation type field, calling a corresponding independent identification index to inquire a corresponding field value of the any field in the interactive data table; when the request identification information is matched with a field combination consisting of a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding association identification index to inquire field values of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information.
According to a second aspect of the embodiments of the present disclosure, an apparatus for processing video interaction data is provided, including:
the data acquisition module is configured to acquire interactive data generated by interactive operation carried out aiming at a video tag, wherein the video tag corresponds to a target video displayed by a client and at least one data item;
a data item determination module configured to determine a target data item in the at least one data item, where a plurality of interaction fields included in the target data item are matched with the interaction data, and update field values of interaction content fields in the plurality of interaction fields according to the interaction data;
and the data statistics module is configured to count field values of interactive content fields in at least one data item corresponding to the target video according to at least one preset statistics dimension to obtain interactive statistics data, and the interactive statistics data are used for being displayed in the client.
Optionally, the interactive data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interactive operation, and the data obtaining module is further configured to:
receiving a second interactive message which is sent by a data management platform and contains a virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to a first interactive message sent by the client; the first interactive message comprises the virtual identifier and the operation type identifier, or the first interactive message comprises the virtual identifier and is sent to the data management platform by the client through a transmission channel corresponding to the operation type identifier;
and extracting the virtual identifier and the operation type identifier from the second interactive message, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the second interactive message is a queue message, and the data obtaining module is further configured to:
after receiving the second interactive message, adding the second interactive message to the end of a local message queue;
and after the field values of the interactive content fields in the interactive fields are updated, returning an interactive response message aiming at the second interactive message to the data management platform.
Optionally, the method further includes:
an identifier stitching module configured to stitch the target video identifier and the video tag identifier as the virtual identifier;
and the identifier issuing module is configured to issue the virtual identifier to the client, so that the client sends the first interaction message containing the virtual identifier to the data management platform based on the interaction operation.
Optionally, the interactive data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interactive operation, and the data obtaining module is further configured to:
extracting a virtual identifier and the operation type identifier from a third interactive message sent by a client, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data; alternatively, the first and second electrodes may be,
receiving a virtual identifier sent by the client through a preset transmission channel, determining the operation type identifier according to a predefined mapping relation between the transmission channel and the operation type, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the interactive data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interactive operation; the plurality of interaction fields includes a video identification field, a tag identification field, and an operation type field, the data item determination module further configured to:
determining the target video identifier, the video tag identifier and the operation type identifier contained in the interactive data;
and if the value of the video identification field contained in any table entry in a preset interactive data table is equal to the target video identification, the value of the tag identification field is equal to the video tag identification, and the value of the operation type field is equal to the operation type identification, determining any table entry as a target data entry matched with the interactive data.
Optionally, the data item determination module is further configured to:
if a target data item matched with the interactive data does not exist in a preset interactive data table, creating the target data item matched with the interactive data in the interactive data table, and setting the value of an interactive content field of the target data item as interactive content contained in the interactive data;
and if the target data item matched with the interactive data exists in the interactive data table, writing interactive contents contained in the interactive data into an interactive content field of the target data item.
Optionally, any data item in the interactive data table where the target data item is located includes a video identification field, a tag identification field, and an operation type field, and the data statistics module is further configured to:
establishing independent identification indexes respectively corresponding to the video identification field, the label identification field and the operation type field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination consisting of the video identification field, the label identification field and the operation type field;
receiving a data query request containing request identification information;
when the request identification information is matched with any one of the video identification field, the tag identification field and the operation type field, calling a corresponding independent identification index to inquire a corresponding field value of the any field in the interactive data table; when the request identification information is matched with a field combination consisting of a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding association identification index to inquire field values of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information.
According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing video interaction data as described in any of the embodiments of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for processing video interaction data according to any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the embodiment of the disclosure, on one hand, the user is allowed to execute corresponding interactive operation aiming at the video tag contained in the target video, so that the interactive modes related to the target video are enriched, and the interactive experience of the user is improved to a certain extent. On the other hand, through carrying out multi-dimensional statistics on field values of the interactive content fields in at least one data item corresponding to the target video, the interactive statistical data obtained through statistics can reflect comprehensive information of multiple dimensions corresponding to the target video, and further, related statistical information of interactive operation can be conveniently displayed for users from more dimensions.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow chart illustrating a method for processing video interaction data according to an embodiment of the present disclosure;
FIG. 2 is an interaction diagram illustrating a method for processing video interaction data according to an embodiment of the present disclosure;
fig. 3 is an interaction diagram illustrating another method of processing video interaction data according to an embodiment of the present disclosure;
FIG. 4 is a block diagram illustrating a processing apparatus for video interaction data according to an embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the rapid development of network technology, the functions provided by video services are increasingly abundant, and the interactive operations performed by users for videos are gradually diversified.
In the related art, a user is generally allowed to perform interactive operation on a video, and corresponding video interaction data and the video are subjected to single-dimensional association storage. However, when the same video corresponds to a plurality of video tags, only allowing the user to perform interactive operation on the video itself will undoubtedly affect the interactive experience of the user; furthermore, when the video and the video tag corresponding to the video have a multidimensional corresponding relationship, it is often inconvenient to perform comprehensive statistics on the video or the video tag from multiple dimensions by only performing single-dimensional association storage on the video interaction data and the video.
In order to solve the above problems, the present disclosure provides a method for processing video interaction data, where the method may be executed by a background server, and the background server is used to cooperate with a client to implement the method, and the method may be a physical server including an independent host, a virtual server borne by a host cluster, a cloud server, and the like. Correspondingly, the client may be an application installed in the front-end electronic device, which may be a mobile phone, a tablet computer, a wearable device, a personal computer, a personal digital assistant, a cloud computing device, or a web application integrated in a browser. After a user using a client carries out interactive operation on the contained video tags, the client and the background server are mutually matched to carry out multi-dimensional storage and update on the times of the interactive operation, so that the background server carries out different-dimensional statistics on the stored times of the interactive operation after receiving a data query request and returns corresponding statistical values to a request initiator.
Fig. 1 is a flowchart illustrating a method for processing video interaction data according to an embodiment of the present disclosure. The method is applied to a background server and can comprise the following steps:
in step 102, interaction data generated by an interaction operation performed on a video tag is obtained, wherein the video tag corresponds to a target video displayed by a client and at least one data item.
First, it should be noted that the target video played by the client may have various forms, for example, may be a short video in the form of a video clip, a short episode, or a long video in the form of a movie, a television episode, or the like. Correspondingly, the video tag can also have various forms, such as an element tag of a picture, a character, an expression, a special effect animation, a website link, a two-dimensional code and the like, and a classification tag matched with video content; the video tag can be a plug-in element having an association relation with the target video, or an embedded element integrated in the target video. In addition, a certain target video may contain one or more video tags, and a certain video tag may correspond to only a certain target video or to multiple target videos at the same time. The present disclosure does not limit the specific presentation forms of the target video and the video tags, and the number correspondence between the target video and the video tags.
The target video identifier of the target video may be a video ID of the target video, a distribution account and a distribution time of the target video, or may be in other forms. The video tag identifier of the video tag may be a tag ID of the video tag, a keyword of the video tag, or the like, or of course, may be in other forms. The specific forms of the target video identifier and the video tag identifier are not limited in the present disclosure, and only the target video identifier and the video tag identifier can respectively and uniquely represent the corresponding target video and the corresponding video tag.
After the client displays the target video and the video tags, the user can perform interactive operation aiming at the video tags contained in the target video. Similarly, the interactive operation may have various forms, such as approval, forwarding, collection, directed skip, and the like, and may also be comments, but the present disclosure only focuses on the number of comments and does not focus on the contents of the comments, and thus, details are not described again. After the user executes the interactive operation, the client triggers to send the corresponding interactive data to the background server.
At present, a background server is often connected with a front-end service through a data management platform, and a more typical data management platform has a data center system. The data management platform is used for performing unified management, calling, configuration, checking and other operations on the service data corresponding to each service module and each background server, so that repeated or invalid processing on the service data is avoided, and efficient management on the service data related to software is facilitated.
In an embodiment, the interactive data may include a target video identifier of a target video, a video tag identifier of a video tag, and an operation type identifier of an interactive operation, and at this time, the background server may receive interactive data corresponding to the interactive operation, which is sent by the data management platform: receiving a second interactive message which is sent by the data management platform and contains the virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to the first interactive message sent by the client; the first interactive message may include a virtual identifier and an operation type identifier, or the first interactive message may include a virtual identifier and the first interactive message is sent by the client to the data management platform through a transmission channel corresponding to the operation type identifier; then, the background server may extract the virtual identifier and the operation type identifier from the second interactive message, and analyze the virtual identifier to obtain a target video identifier and a video tag identifier, and finally obtain the interactive data. It can be seen that, if the first interactive message includes the virtual identifier and the operation type identifier, the data management platform may directly forward the first interactive message to the background server, and at this time, the message content of the second interactive message is the same as that of the first interactive message. If the first interactive message comprises the virtual identifier and the first interactive message is sent to the data management platform by the client through the transmission channel corresponding to the operation type identifier, at this time, the data management platform can extract the virtual identifier from the first interactive message, determine the operation type identifier according to the transmission channel corresponding to the first interactive message and the predefined mapping relation between the transmission channel and the operation type, generate a second interactive message according to the virtual identifier and the operation type identifier and send the second interactive message to the background server. The different transmission channels may be different physical ports, virtual ports, links, or the like, which is not limited in this disclosure.
The data management platform can perform uniform processing on the received data sent by the client. The virtual identifier sent by the data management platform to the background server may be formed by splicing a target video identifier and a video tag identifier, and therefore the virtual identifier formed by splicing the target video identifier and the video tag identifier is sent to the data management platform, because the data management platform usually only supports operation on one key value (key). At this time, the data management platform with a relatively stronger interactive service processing function directly receives the first interactive message which is sent by the front-end client and takes the virtual identifier as the key value, and sends the corresponding second interactive message to the background server, so that the existing data management platform is effectively utilized, and the service pressure possibly brought by the background server for directly processing the service of the client is reduced. And the existing data management platform and the background server are used for transmitting the interactive data, so that the program development task amount in the interactive data transmission process is effectively reduced, and the service development efficiency is improved.
In an embodiment, the background server may splice the target video identifier and the video tag identifier into a virtual identifier, and then issue the virtual identifier to the client, so that the client sends the first interaction message including the virtual identifier to the data management platform based on the interaction operation. After receiving the virtual identifier sent by the background server, the client can store the virtual identifier, and send a first interaction message corresponding to the virtual identifier to the data management platform when judging that the target video and the video tag corresponding to the interaction operation are matched with the virtual identifier. The background server splices the target video identification and the video label identification to form the virtual identification, and uniformly issues the virtual identification to the client, so that consistency of the virtual identifications from different clients finally received by the background server can be ensured, the computing and operating capacity of the background server can be effectively utilized, and the operating pressure of the client is reduced. Of course, the target video identifier and the video tag identifier may also be spliced by the data management platform as a virtual identifier, and then the virtual identifier is issued to the client and uploaded to the background server, which is not described any further.
In an embodiment, the second interactive message sent by the data management platform to the backend server may be a queue message. At this time, the background server may add the second interactive message to the end of the local message queue after receiving the second interactive message, so as to ensure sequential and efficient processing of the second interactive message; and then after the field value of the interactive content field in the interactive fields is updated, an interactive response message aiming at the second interactive message can be returned to the data management platform. The queue message may be a kafka queue message, a RabbitMQ queue message, an ActiveMQ queue message, or a rocktmmq queue message, which is not limited by this disclosure.
In an embodiment, in a case that the interactive data includes a target video identifier of a target video, a video tag identifier of a video tag, and an operation type identifier of an interactive operation, the background server may also receive a third interactive message corresponding to the interactive operation, where the third interactive message is directly sent by the client. As an exemplary embodiment, the background server may receive a third interactive message sent by the client and containing the virtual identifier and the operation type identifier, then extract the virtual identifier and the operation type identifier from the third interactive message, and analyze the virtual identifier to obtain the target video identifier and the video tag identifier, thereby obtaining the interactive data. The client determines the operation type identifier of the interactive operation, so that the background server is prevented from determining the operation type identifier, and the processing pressure of the background server on the interactive data is reduced.
As another exemplary embodiment, after receiving the virtual identifier sent by the client through the preset transmission channel, the background server may also determine the operation type identifier according to a predefined mapping relationship between the transmission channel and the operation type, and analyze the virtual identifier to obtain the target video identifier and the video tag identifier, thereby obtaining the interactive data. At the moment, the client is allowed to send the virtual identifier to the background server through the predefined transmission channel, and the background server determines the corresponding operation type identifier according to the actual transmission channel of the virtual identifier. The virtual identifications corresponding to different interactive operations are sent through different transmission channels, so that the virtual identifications can be used when the transmission channels are limited or the number of the interactive operations is small, channel congestion possibly caused by the fact that the same transmission channel is used by all types of interactive operations is avoided, the virtual identifications sent by the client can reach a background server as soon as possible, and quick response to the virtual identifications or the virtual identifications and the operation type identifications sent by the client is further ensured.
Under the condition that the data management platform does not exist or is not used, the normal transmission of the interactive data can still be realized between the client and the background server by using the method of the embodiment, so that the processing process of the interactive data can be normally finished when the data management platform is not used.
In step 104, a target data item in the at least one data item is determined, a plurality of interaction fields included in the target data item are matched with the interaction data, and a field value of an interaction content field in the plurality of interaction fields is updated according to the interaction data.
After the interactive data is acquired, a target data item corresponding to the interactive data can be inquired in a preset interactive data table. In an embodiment, the operation content in the preset interactive data table is stored according to the multiple dimensions: video identification, tag identification and operation type, so that any data item in the interactive data table comprises a video identification field, a tag identification field, an operation type field and an interactive content field. The field values corresponding to multiple dimensions such as the fields can be uniquely positioned to the values of the corresponding interactive content fields, so that the aim of performing one-dimensional or multi-dimensional query on the current field values of the interactive content fields from multiple different dimensions can be fulfilled. The target data item corresponding to the interactive data in the interactive data table is a data item matching a target video identifier corresponding to the target video identifier, a target video identifier corresponding to the video tag identifier, and an operation type identifier corresponding to the operation type identifier.
The preset interactive data table is stored in a database, the database may be a relational database such as MYSQL, DB2, Oracle, SQLSever, SyBase, Access, SQLife, or a non-relational database capable of implementing the storage logic, and the type of the database corresponding to the storage location of the interactive data table is not limited in the present disclosure.
In an embodiment, the value of the interactive content field in the target data item may be updated according to whether the target data item corresponding to the interactive data exists in the interactive data table: if the target data item does not exist in the interactive data table, the target data item can be created in the interactive data table, and the value of the interactive content field in the target data item is set as the interactive content contained in the interactive data; otherwise, if the target data item exists in the interactive data table, the interactive content contained in the interactive data is written into the interactive content field of the target data item. Through the updating operation, the value of the target data item corresponding to the interactive content field in the interactive data table is updated. The interactive content updated in the interactive content field may include the number of times of the interactive operation, the comment content of the comment operation, the praise account information corresponding to the praise, the account information of the forwarding both parties corresponding to the forwarding operation, and the like, and is not described again;
the operation times identify the accumulated times of interactive operations which have been performed by all users related to the current user aiming at the video tags contained in the target video. Actually, the above-mentioned update data of the operation times may be accumulated by predefined time increments, such as 1, 2, 10, etc., or may be predefined other values, and by predefining the above-mentioned time increments, the accumulation effect of the service level is facilitated.
And 106, counting field values of interactive content fields in at least one data item corresponding to the target video according to at least one preset statistical dimension to obtain interactive statistical data, wherein the interactive statistical data is used for being displayed in the client.
In an embodiment, first, independent identification indexes respectively corresponding to a video identification field, a tag identification field and an operation type field may be established for an interactive data table, and associated identification indexes respectively corresponding to each field combination composed of the video identification field, the tag identification field and the operation type field may be established; the independent identification index and the associated identification index can be established after the interactive data table is established, so that the value of the operation content field in the interactive data table can be conveniently inquired and counted in multiple dimensions. Then, a data query request including the request identification information may be received, and a sender of the data query request may be any device, such as a client, a data management platform (actually, a network device connected to the backend server in the data management platform), or of course, other network devices connected to the backend server, which is not limited in this disclosure. Finally, inquiring the field or field combination matched with the request identification information, and calling a corresponding independent identification index to inquire a corresponding field value (namely single-dimensional inquiry) of any field in the interactive data table when the request identification information is matched with any field of the video identification field, the label identification field and the operation type field; when the request identification information is matched with a field combination formed by a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding associated identification index to query field values (namely multi-dimensional query) of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information. In addition, after the interactive content is queried, the interactive content can be returned to the account of the initiator of the data query request so as to be displayed in the corresponding client. In the embodiment, the independent identification indexes corresponding to the identification fields and the associated identification indexes corresponding to the field combinations corresponding to the identification fields are established, so that one-dimensional or multi-dimensional query and statistics of the operation content fields stored in the interactive data table are facilitated, the statistical modes of different interactive events or different dimensions are enriched, and various statistical effects and corresponding display effects are conveniently displayed for a user.
Through the embodiment of the disclosure, on one hand, the user is allowed to execute corresponding interactive operation aiming at the video label contained in the target video, so that the interactive modes related to the target video are enriched, and the interactive experience of the user is improved to a certain extent. On the other hand, through carrying out multi-dimensional statistics on field values of interactive content fields in at least one data item corresponding to the target video, the interactive statistical data obtained through statistics can reflect comprehensive information of multiple dimensions corresponding to the target video, and further, related statistical information of interactive operation can be conveniently shown for users from more dimensions.
In the following, with reference to the interactive diagram of the processing method for video interactive data shown in fig. 2, taking praise operation as an example, a process of processing interactive data corresponding to praise operation of a user by a background server through the technical solution of the present disclosure is described in detail. As shown in fig. 2, processing of the target video praise data may be implemented by a data management platform, and logically this embodiment may be divided into a preparation stage, an interactive data processing stage, and a statistical stage. The method is applied to a background server, and the interaction process of the method can comprise the following steps:
[ PREPARATION STAGE ]
Step 202, the background server generates a virtual key.
Since the data management platform generally supports only one key, it is necessary to ensure that the client sends only one key to the data management platform, so that a virtual key for uniquely representing the target video and the video tag needs to be generated before using the data management platform.
In the present embodiment, the target video and the video tag may be represented using the target video ID and the video tag ID. Correspondingly, a virtual key can be generated according to the target video ID and the video tag ID, and the virtual key can be used for uniquely representing the target video and the video tag.
The specific generation process may be in a variety of ways, and the present disclosure is not limited thereto. For example, the target video ID and the video tag ID may be spliced with a preset format in a preset order, or the target video ID and the video tag ID may be stored in an associated manner, or the same virtual identifier may be added to the target video ID and the video tag ID.
In this embodiment, the background server may generate a virtual key and send the generated virtual key to the client. Of course, the first interactive message may also be simultaneously sent to the data management platform, so that the data management platform verifies the virtual key included in the first interactive message after receiving the first interactive message sent by the client, thereby ensuring the operation validity and validity of the client. At this time, the background server may generate a corresponding virtual key for any video and the video tag included therein after determining any video and the video tag included therein (e.g., after receiving a newly uploaded video or adding a tag to the newly uploaded video); or after receiving a video acquisition request of the client and determining the corresponding target video, generating a corresponding virtual key for the target video and the video tag, and sending the virtual key to the client corresponding to the video acquisition request.
The virtual key may also be generated by other devices such as a data management platform or a client. If the client generates the virtual key, the client needs to upload the generated virtual key to the background server, and of course, the virtual key can also be uploaded to the data management platform at the same time. At this time, the client may generate a corresponding virtual key for the target video and the video tag after receiving the target video and the video tag included in the target video sent by the background server; or generating corresponding virtual keys for the target video and the video label after receiving the interactive operation of the user on the video label. Of course, the data management platform may also generate a corresponding virtual key, which is not described in detail.
The client can display the target video and the video label. Actually, the background server generates virtual keys corresponding to the target videos and the video labels and sends the virtual keys to the client, and the client acquires and displays the target videos and the video labels from the background server without a necessary sequence, so that the virtual keys can be adjusted according to actual conditions.
[ Interactive data processing stage ]
In step 204, the client receives the approval operation of the user on the video tag contained in the target video.
After the client displays the target video and the video tags contained in the target video, the user can perform interactive operation aiming at the video tags, and the specific interactive operation can be like approval, forwarding, collection, directional skip and the like. In this embodiment, the specific operation mode complied by the user, the display mode complied with the control, and the like may be preset in the application layer corresponding to the client, and this disclosure does not limit this.
The client determines a virtual key corresponding to the target video ID of the target video corresponding to the operation approval and the video tag ID corresponding to the video tag, and then generates a first interactive message based on the virtual key and sends the first interactive message to the data management platform.
The first interactive message may be generated in a plurality of ways, and correspondingly, the sending way of the first interactive message is also different:
in an embodiment, the client may directly use the virtual key as the first interactive message, or use the message generated according to the virtual key as the first interactive message. Correspondingly, the client side can send the first interaction message to the data management platform through the approval channel corresponding to the approval operation identification. The preset corresponding relation between the operation type and the transmission channel is the consensus between the client and the data management platform before the client sends the first interactive message, and the specific consensus process is not repeated. The different transmission channels may be different physical ports, virtual ports, links, or the like.
In another embodiment, the client may determine an approval operation identifier corresponding to an operation performed by the user after detecting that the operation is approved for a video tag included in the target video, and then generate the first interaction message based on the virtual key corresponding to the target video and the video tag and the approval operation identifier. Correspondingly, the client can directly send the first interactive message to the data management platform.
At step 206, the data management platform determines the type of operation.
And after receiving the first interactive message sent by the client, the data management platform determines the operation type according to the first interactive message. Specifically, if the first interactive message only includes the virtual key, the data management platform may determine the corresponding operation type based on the first transmission channel that receives the first interactive message and the preset correspondence between the operation type and the transmission channel. In this embodiment, since the first interactive message is received from the complimentary channel, it can be determined that the operation type of the interactive operation corresponding to the virtual key included in the first interactive message is the complimentary operation.
If the first interactive message contains the virtual key and the like operation identifier, the data management platform may determine that the operation type of the interactive operation is the like operation based on the like operation identifier contained in the first interactive message.
In fact, one of the two manners may be preselected between the client and the data management platform, or an information identifier indicating whether the first interactive message carries the target operation type identifier may be added to the first interactive message by the client, and if the information identifier is added to the received first interactive message, it indicates that the first interactive message carries the target operation type identifier, and at this time, the data management platform may directly forward the first interactive message to the background server, or directly forward the second interactive message to the background server based on the message content included in the first interactive message. Otherwise, if the received first interactive message is not added with the information identifier, it indicates that the first interactive message does not carry the target operation type identifier, and at this time, the data management platform may obtain a virtual key from the first interactive message, and then generate a second interactive message based on the virtual key and the operation type identifier determined according to the sending channel of the first interactive message, and forward the second interactive message to the background server.
In an embodiment, the second interaction message may be a kafka queue message, and after the data management platform sends the kafka queue message to the backend server, the backend server may add the kafka queue message to the end of the local message queue, and then may return an interaction response message for the kafka queue message to the data management platform after updating the field value of the interaction content field in the multiple interaction fields. Therefore, even under the condition that the data management platform sends a large amount of second interactive messages (a large amount of interactive operations are executed by a plurality of users corresponding to a plurality of clients in a short time) to the background server, the quick and effective response of the interactive operations made by any user can be ensured.
And step 208, the background server analyzes the second information to obtain the interactive data.
After receiving the second interactive message sent by the data management platform, the background server may extract the virtual key and the like operation identifier from the second interactive message, and analyze the virtual key to obtain the target video ID and the video tag ID, so as to obtain complete interactive data.
Step 210, the background server updates the value of the operation content field.
A pre-created interaction data table is stored in a local memory of the background server or other storage spaces associated with the local memory, wherein the interaction data table can be a data table in a structured database such as MYSQL or Oracle, and the data table stores values of operation content fields corresponding to the interaction operation from multiple dimensions such as video identifiers, label identifiers, operation types and the like. Correspondingly, any data item in the interactive data table comprises a video identification field, a label identification field, an operation type field and an operation content field, so that the field values corresponding to the three dimensions can be uniquely positioned to the values of the corresponding operation content fields, and one-dimensional or multi-dimensional query of the current values of the operation content fields from a plurality of different dimensions can be realized. A plurality of fields of a target data item corresponding to interactive data in the interactive data table are respectively matched with a target video identifier corresponding to the target video identifier, a target video identifier corresponding to the video label identifier and an operation type identifier corresponding to the operation type identifier.
And the background server searches a target data item matched with the target video ID, the video tag ID and the like operation identification in a preset interactive data information table based on the complete interactive data acquired in the steps, and then updates the value of the operation content field in the target data item.
Specifically, if a target data item matching the target video ID, the video tag ID, and the like operation identifier is not found in the interactive data table, the target data item may be created in the interactive data table, and the interactive content included in the interactive data may be written into the operation content field in the target data item (i.e., the value of the operation content field is set as the interactive content included in the interactive data); otherwise, if the target data item matched with the target video ID, the video tag ID and the like operation identification is found in the interactive data table, the interactive content contained in the interactive data is written into the interactive content field of the target data item. The interactive content field may further include an operation number field, the process of updating the field is a process of accumulating the values corresponding to the operation content field in the data item according to a predefined number increment (corresponding to step 410), and the accumulated current value indicates the accumulated number of times of the approval operation performed by all the users for the video tag.
At this point, for a praise operation made by the user for the video tag contained in the target video, the background server completes updating the value of an operation content field subjected to the operation.
[ statistical stages ]
The interactive data processing stage of this embodiment is described by taking as an example only one approval operation performed by the user for a certain video tag included in a certain target video. Actually, users corresponding to multiple clients can perform multiple interactive operations on different video tags contained in different target videos, and each interactive operation is processed through the above process to obtain an interactive data table composed of multiple dimensional information including a video identifier, a tag identifier, an operation type identifier, and the like, where a value of an operation content field of any data item in the table indicates an accumulated number of times of feature interactive operations performed by the user on a specific tag of a feature video corresponding to the data item.
Because each data item in the interactive data table is stored according to multiple dimensions such as video identifiers, tag identifiers, operation type identifiers and the like, single-dimension query and statistics can be performed on the data stored in the interactive data according to multiple dimensions, and multi-dimension query and statistics can also be performed according to combinations of the data.
It can be understood that the interval time between the interactive data processing stage and the statistical stage is not limited strictly, and may be adjusted according to actual situations, or even a plurality of threads of the background server may perform the operations of the interactive data processing stage and the statistical stage simultaneously.
In step 212, the background server generates an independent ID index or an associated ID index.
Before querying, establishing independent identification indexes respectively corresponding to a target video ID field, a video tag ID field and an operation type ID field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination composed of the target video ID field, the video tag ID field and the operation type ID field, where the field combinations may include a combination of the target video ID field and the target video ID field, a combination of the target video ID field and the operation type ID field, a combination of the video tag ID field and the operation type ID field, and a combination of the target video ID field, the video tag ID field and the operation type ID field.
In fact, the independent ID index or the associated ID index may be temporarily established before querying, or may be pre-established when the interactive data table is generated, so as to reduce the waiting time for data querying and improve the user experience of the client side.
In step 214, the background server calls the value of the index query operation content field and counts the occurrence frequency of the event.
The background server may receive a data query request containing request identification information from a client, a data management platform, or even other devices, and this embodiment is described by taking receiving a data query request from a client as an example. After receiving the request, the background server may query a field or a field combination matching the request identification information in the interactive data information table.
In an embodiment, when the request identification information matches any one of the target video ID field, the video tag ID field, and the operation type ID field, a corresponding independent identification index may be called to perform a one-dimensional query on the interactive data table.
The following description takes the operation number query corresponding to the operation number field in the interactive content field as an example: as an exemplary embodiment, if the request identification information matches the target video ID field ID _ P1, the value S of each operation number field corresponding to ID _ P1 in the interactive data table is queried according to ID _ P1iP1, and then summing the values to obtain the number S _ P1 of all the interactive operations corresponding to the target video P1, which indicates all the interactions performed by the user on the target videoThe total number of interoperations is S _ P1, and then S _ P1 may be returned to the client.
As another exemplary embodiment, if the request identification information matches the video tag ID field ID _ L1, the value S of each operation number field corresponding to ID _ L1 in the interactive data table is queried according to ID _ L1iL1, and then summing the values to obtain the total number of interactions S _ L1 corresponding to video tag L1, which indicates that the total number of interactions performed by the user on all videos belonging to the video tag is S _ L1, and then S _ L1 can be returned to the client.
In another embodiment, when the request identification information is matched with a field combination formed by a plurality of fields in the target video ID field, the video tag ID field and the operation type ID field, the corresponding association identification index is called to perform multidimensional query on the interactive data table so as to obtain the operation times statistic corresponding to the request identification information.
As an exemplary embodiment, if the request identification information matches the field combination ID _ P1 formed by the target video ID field ID _ P1 and the video tag ID field ID _ L1&L1, inquiring the value S of each operation frequency field simultaneously corresponding to the ID _ P1 and the ID _ L1 in the interactive data table according to the ID _ P1 and the ID _ L1i_P1&L1, wherein each value respectively corresponds to the interactive operation times of different interactive operations executed by the user on the video tag L1 contained in the target video P1; then, the values can be returned to the client respectively, or S _ P1 obtained by summing the values can be obtained&L1 returns to the client. At this time, the above field combination ID _ P1&L1 corresponds to the virtual key, so the query and statistics can be performed according to the virtual key.
As an exemplary embodiment, if the request identification information matches a field combination ID _ P1& L1& T1 formed by the target video ID field ID _ P1, the video tag ID field ID _ L1 and the target operation type ID field ID _ T1, querying a value S _ P1& L1& T1 of an operation content field simultaneously corresponding to the ID _ P1, the ID _ L1 and the ID _ T1 in the interaction data table according to the ID _ P1, the ID _ L1 and the ID _ T1, and if the T1 corresponds to the approval operation, the number of times of the approval operation performed by the user on the video tag L1 included in the target video P1 is S _ P1& L1& T1; the value may be returned to the client.
As can be seen, the video ID, the tag ID and the event type ID are respectively split into different dimensions and stored in the same interactive data table, so that the interactive content in the interactive data table can be conveniently queried in a single dimension or multiple dimensions by establishing an independent identification index and an associated identification index; and the query dimension supports various free combination modes, so that the method is more flexible and convenient, the query efficiency of the interactive data is effectively improved, and the possibility is provided for the multi-dimensional flexible display of the interactive data.
In the following, with reference to another interactive data processing method interactive diagram shown in fig. 3, taking the praise operation as an example, a process of processing the interactive data corresponding to the praise operation of the user by the background server through the technical solution of the present disclosure is described in detail. As shown in fig. 3, the client may directly implement processing on the target video data, and in the same way, the embodiment may be logically divided into a preparation stage, an interactive data processing stage, and a statistical stage. The method is applied to a background server, and the interaction process of the method can comprise the following steps:
[ PREPARATION STAGE ]
Step 302, the client displays the target video and the video tag.
After the client receives the target video and the video tag sent by the background server, the target video and the video tag can be displayed to the user, so that the user can perform interactive operation on the video tag contained in the target video. The specific process of the client receiving the target video and the video tag sent by the background server may take part in the content disclosed in the related art, which is not limited by the present disclosure.
In step 304, the client receives the user's approval operation on the video tag included in the target video.
After the client displays the target video and the video tags contained in the target video, the user can perform interactive operation aiming at the video tags, and the specific interactive operation can be like approval, forwarding, collection, qualitative skipping and the like. In this embodiment, the specific operation mode complied by the user, the display mode complied with the relevant space, and the like may be preset in the application layer corresponding to the client, and the disclosure is not limited.
[ Interactive data processing stage ]
In this embodiment, the background server receives the third interactive message directly sent by the client, and determines the interactive data accordingly.
And step 306, the background server receives the third interactive message sent by the client.
After receiving the approval operation of the user, the client determines a corresponding target video ID according to the currently displayed target video, determines a corresponding video tag ID according to the video tag corresponding to the approval operation, and then generates a third interactive message based on the target video ID and the video tag ID. Specifically, the generation manner and the sending manner of the third interactive message may be multiple:
in an embodiment, the client may directly use the message generated according to the target video ID and the video tag ID as the third interactive message. Correspondingly, the third interactive message can be generated based on the target video ID and the video tag ID, and because the client can determine that the interactive operation is the like operation according to the information such as the user operation position, the client can send the third interactive message to the background server through a like channel corresponding to the like operation. The preset corresponding relation between the operation type and the transmission channel is that the client terminal and the background server are identified before the client terminal sends the third interactive message, and the specific identification process is not repeated. The different transmission channels may be different physical ports, virtual ports, links, or the like.
In another embodiment, the client may obtain a target video ID corresponding to the target video and a video tag ID corresponding to the video tag after detecting that the user performs a praise operation on the video tag included in the target video, then determine that the interactive operation is the praise operation according to information such as a user operation position, obtain a praise operation ID corresponding to the praise operation, and finally generate a third interactive message based on the target video ID, the video tag ID, and the praise operation ID, and send the third interactive message to the backend server.
And 308, the background server acquires the interactive data based on the third transaction information.
After receiving the third interactive message, the background server analyzes the third interactive message and judges:
if the third interactive message only includes the target video ID and the video tag ID, the background server may determine the corresponding operation type based on a third transmission channel for receiving the third interactive message and a preset correspondence between the operation type and the transmission channel. In this embodiment, since the third interactive message is received from the approval channel, it can be determined that the operation type of the interactive operation corresponding to the target video ID and the video tag ID included in the third interactive message is an approval operation. So that the target video ID, the video tag ID, and the approval operation ID corresponding to the approval operation can be determined as complete interactive data at this time.
If the third interactive message contains the target video ID, the video tag ID and the like operation ID, the target video ID, the video tag ID and the like operation ID can be directly used as complete interactive data.
In step 310, the background server updates the value of the operation content field.
[ statistical stages ]
In step 312, the background server generates an independent ID index or an associated ID index.
In step 314, the background server calls the value of the index query operation content field and counts the occurrence frequency of the event.
The specific implementation manner of the steps 310-314 is not substantially different from that of the steps 210-214, and therefore reference is made to the above description, which is not repeated herein.
Correspondingly to the foregoing embodiment of the method for processing interactive data, the present disclosure also proposes an embodiment of a device for processing interactive data.
Fig. 4 is a block diagram illustrating a processing device of one or more interaction data according to one or more exemplary embodiments of the present disclosure. The processing apparatus for interactive data shown in this embodiment may be applicable to a background server, where the background server may be an independent server device or a server cluster, and is used to implement the method in cooperation with a client. Correspondingly, the client may be an application installed in the front-end electronic device, which may be a mobile phone, a tablet computer, a wearable device, a personal computer, a personal digital assistant, a cloud computing device, or a web application integrated in a browser. The video played by the client may be a short video, such as a video clip, a scene short play, or a long video, such as a movie or a tv show.
As shown in fig. 4, the processing device of the interaction data may include:
a data obtaining module 401 configured to obtain interactive data generated by an interactive operation performed on a video tag, where the video tag corresponds to a target video displayed by a client and at least one data item;
a data item determining module 402, configured to determine a target data item in the at least one data item, where a plurality of interaction fields included in the target data item match the interaction data, and update field values of interaction content fields in the plurality of interaction fields according to the interaction data;
a data statistics module 403, configured to count, according to at least one preset statistics dimension, field values of an interactive content field in at least one data item corresponding to the target video to obtain interactive statistics data, where the interactive statistics data is used for displaying in the client.
Optionally, the interaction data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and the data obtaining module 401 is further configured to:
receiving a second interactive message which is sent by a data management platform and contains a virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to the first interactive message sent by the client; the first interactive message comprises the virtual identifier and the operation type identifier, or the first interactive message comprises the virtual identifier and is sent to the data management platform by the client through a transmission channel corresponding to the operation type identifier;
and extracting the virtual identifier and the operation type identifier from the second interactive message, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the second interactive message is a queue message, and the data obtaining module 401 is further configured to:
after receiving the second interactive message, adding the second interactive message to the end of a local message queue;
and after the field values of the interactive content fields in the interactive fields are updated, returning an interactive response message aiming at the second interactive message to the data management platform.
Optionally, the method further includes:
an identity stitching module 404 configured to stitch the target video identity and the video tag identity as the virtual identity;
an identifier issuing module 405 configured to issue the virtual identifier to the client, so that the client sends the first interaction message including the virtual identifier to the data management platform based on the interaction operation.
Optionally, the interaction data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and the data obtaining module 401 is further configured to:
extracting a virtual identifier and the operation type identifier from a third interactive message sent by a client, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data; alternatively, the first and second electrodes may be,
receiving a virtual identifier sent by the client through a preset transmission channel, determining the operation type identifier according to a predefined mapping relation between the transmission channel and the operation type, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
Optionally, the interactive data includes a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interactive operation; the plurality of interaction fields includes a video identification field, a tag identification field, and an operation type field, the data item determination module 402 is further configured to:
determining the target video identifier, the video tag identifier and the operation type identifier contained in the interactive data;
and if the value of the video identification field contained in any table entry in a preset interactive data table is equal to the target video identification, the value of the tag identification field is equal to the video tag identification, and the value of the operation type field is equal to the operation type identification, determining any table entry as a target data entry matched with the interactive data.
Optionally, the data item determination module 402 is further configured to:
if a target data item matched with the interactive data does not exist in a preset interactive data table, creating the target data item matched with the interactive data in the interactive data table, and setting the value of an interactive content field of the target data item as interactive content contained in the interactive data;
and if the target data item matched with the interactive data exists in the interactive data table, writing interactive contents contained in the interactive data into an interactive content field of the target data item.
Optionally, any data item in the interactive data table where the target data item is located includes a video identification field, a tag identification field, and an operation type field, and the data statistics module 403 is further configured to:
establishing independent identification indexes respectively corresponding to the video identification field, the label identification field and the operation type field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination consisting of the video identification field, the label identification field and the operation type field;
receiving a data query request containing request identification information;
when the request identification information is matched with any one of the video identification field, the tag identification field and the operation type field, calling a corresponding independent identification index to inquire a corresponding field value of the any field in the interactive data table; when the request identification information is matched with a field combination consisting of a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding association identification index to inquire field values of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information.
An embodiment of the present disclosure also provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing video interaction data according to any of the above embodiments.
Embodiments of the present disclosure also provide a storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for processing video interaction data according to any of the above embodiments.
Embodiments of the present disclosure further provide a computer program product configured to execute the method for processing video interaction data according to any of the above embodiments.
Fig. 5 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 530 to execute instructions to perform all or a portion of the steps of the above-described method of processing video interaction data. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 may detect an open/closed state of the electronic device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, orientation or acceleration/deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, for performing the above-mentioned video interactive data processing method.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 530 of the electronic device 500 to perform the above-described method for processing video interaction data is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It is 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. 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 method and apparatus provided by the embodiments of the present disclosure are described in detail above, and the principles and embodiments of the present disclosure are explained herein by applying specific examples, and the above description of the embodiments is only used to help understanding the method and core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

Claims (16)

1. A statistical method of video interaction data, comprising:
acquiring interactive data generated by interactive operation implemented aiming at a video tag, wherein the video tag corresponds to a target video displayed by a client and at least one data item;
determining a target data item of the at least one data item, the target data item comprising a plurality of interaction fields that match the interaction data;
updating field values of interactive content fields in the interactive fields according to the interactive data, wherein the field values comprise: if a target data item matched with the interactive data does not exist in a preset interactive data table, creating the target data item matched with the interactive data in the interactive data table, and setting the value of an interactive content field of the target data item as interactive content contained in the interactive data; if a target data item matched with the interactive data exists in the interactive data table, writing interactive contents contained in the interactive data into an interactive content field of the target data item;
and according to at least one preset statistical dimension, counting field values of interactive content fields in at least one data item corresponding to the target video to obtain interactive statistical data, wherein the interactive statistical data is used for being displayed in the client.
2. The method of claim 1, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and wherein the obtaining interaction data generated by the interaction operation performed on the video tag comprises:
receiving a second interactive message which is sent by a data management platform and contains a virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to a first interactive message sent by the client; the first interactive message comprises the virtual identifier and the operation type identifier, or the first interactive message comprises the virtual identifier and is sent to the data management platform by the client through a transmission channel corresponding to the operation type identifier;
and extracting the virtual identifier and the operation type identifier from the second interactive message, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
3. The method of claim 2, wherein the second interactive message is a queue message, and the receiving the second interactive message sent by the data management platform and including the virtual identifier and the operation type identifier comprises:
after receiving the second interactive message, adding the second interactive message to the end of a local message queue;
and after the field values of the interactive content fields in the interactive fields are updated, returning an interactive response message aiming at the second interactive message to the data management platform.
4. The method of claim 2, further comprising:
splicing the target video identification and the video label identification into the virtual identification;
and issuing the virtual identifier to the client so that the client sends the first interactive message containing the virtual identifier to the data management platform based on the interactive operation.
5. The method of claim 1, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and wherein the obtaining interaction data generated by the interaction operation performed on the video tag comprises:
extracting a virtual identifier and the operation type identifier from a third interactive message sent by a client, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data; alternatively, the first and second electrodes may be,
receiving a virtual identifier sent by the client through a preset transmission channel, determining the operation type identifier according to a predefined mapping relation between the transmission channel and the operation type, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
6. The method of claim 1, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation; the plurality of interaction fields include a video identification field, a tag identification field, and an operation type field, and the determining a target data item of the at least one data item includes:
determining the target video identifier, the video tag identifier and the operation type identifier contained in the interactive data;
and if the value of the video identification field contained in any table entry in a preset interactive data table is equal to the target video identification, the value of the tag identification field is equal to the video tag identification, and the value of the operation type field is equal to the operation type identification, determining any table entry as a target data entry matched with the interactive data.
7. The method according to claim 1, wherein any data item in the interactive data table where the target data item is located includes a video identification field, a tag identification field, and an operation type field, and the counting field values of an interactive content field in at least one data item corresponding to the target video according to at least one preset statistical dimension to obtain interactive statistical data includes:
establishing independent identification indexes respectively corresponding to the video identification field, the label identification field and the operation type field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination consisting of the video identification field, the label identification field and the operation type field;
receiving a data query request containing request identification information;
when the request identification information is matched with any one of the video identification field, the tag identification field and the operation type field, calling a corresponding independent identification index to inquire a corresponding field value of the any field in the interactive data table; when the request identification information is matched with a field combination consisting of a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding association identification index to inquire field values of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information.
8. A video interaction data statistics apparatus, comprising:
the data acquisition module is configured to acquire interactive data generated by interactive operation carried out aiming at a video tag, wherein the video tag corresponds to a target video displayed by a client and at least one data item;
a data item determination module configured to determine a target data item in the at least one data item, where a plurality of interaction fields included in the target data item are matched with the interaction data, and update field values of interaction content fields in the plurality of interaction fields according to the interaction data;
the data item determination module is further configured to: if a target data item matched with the interactive data does not exist in a preset interactive data table, creating the target data item matched with the interactive data in the interactive data table, and setting the value of an interactive content field of the target data item as interactive content contained in the interactive data; if a target data item matched with the interactive data exists in the interactive data table, writing interactive contents contained in the interactive data into an interactive content field of the target data item;
and the data statistics module is configured to count field values of interactive content fields in at least one data item corresponding to the target video according to at least one preset statistical dimension to obtain interactive statistical data, and the interactive statistical data are used for being displayed in the client.
9. The apparatus of claim 8, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and wherein the data acquisition module is further configured to:
receiving a second interactive message which is sent by a data management platform and contains a virtual identifier and the operation type identifier, wherein the second interactive message is generated by the data management platform according to the first interactive message sent by the client; the first interactive message comprises the virtual identifier and the operation type identifier, or the first interactive message comprises the virtual identifier and is sent to the data management platform by the client through a transmission channel corresponding to the operation type identifier;
and extracting the virtual identifier and the operation type identifier from the second interactive message, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
10. The apparatus of claim 9, wherein the second interaction message is a queue message, and wherein the data acquisition module is further configured to:
after receiving the second interactive message, adding the second interactive message to the end of a local message queue;
and after the field values of the interactive content fields in the interactive fields are updated, returning an interactive response message aiming at the second interactive message to the data management platform.
11. The apparatus of claim 9, further comprising:
an identifier stitching module configured to stitch the target video identifier and the video tag identifier as the virtual identifier;
and the identifier issuing module is configured to issue the virtual identifier to the client, so that the client sends the first interaction message containing the virtual identifier to the data management platform based on the interaction operation.
12. The apparatus of claim 8, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation, and wherein the data acquisition module is further configured to:
extracting a virtual identifier and the operation type identifier from a third interactive message sent by a client, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data; alternatively, the first and second electrodes may be,
receiving a virtual identifier sent by the client through a preset transmission channel, determining the operation type identifier according to a predefined mapping relation between the transmission channel and the operation type, and analyzing the virtual identifier to obtain the target video identifier and the video tag identifier so as to obtain the interactive data.
13. The apparatus of claim 8, wherein the interaction data comprises a target video identifier of the target video, a video tag identifier of the video tag, and an operation type identifier of the interaction operation; the plurality of interaction fields includes a video identification field, a tag identification field, and an operation type field, the data item determination module further configured to:
determining the target video identifier, the video tag identifier and the operation type identifier contained in the interactive data;
and if the value of the video identification field contained in any table entry in a preset interactive data table is equal to the target video identification, the value of the tag identification field is equal to the video tag identification, and the value of the operation type field is equal to the operation type identification, determining any table entry as a target data entry matched with the interactive data.
14. The apparatus of claim 8, wherein any data item in the interactive data table in which the target data item is located comprises a video identification field, a tag identification field, and an operation type field, and wherein the data statistics module is further configured to:
establishing independent identification indexes respectively corresponding to the video identification field, the label identification field and the operation type field for the interactive data table, and establishing associated identification indexes respectively corresponding to each field combination consisting of the video identification field, the label identification field and the operation type field;
receiving a data query request containing request identification information;
when the request identification information is matched with any one of the video identification field, the tag identification field and the operation type field, calling a corresponding independent identification index to inquire a corresponding field value of the any field in the interactive data table; when the request identification information is matched with a field combination consisting of a plurality of fields in the video identification field, the tag identification field and the operation type field, calling a corresponding association identification index to inquire field values of the plurality of fields corresponding to the field combination in the interactive data table so as to obtain an operation number statistical value corresponding to the request identification information.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a statistical method of video interaction data according to any one of claims 1 to 7.
16. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a statistical method of video interaction data as claimed in any one of claims 1 to 7.
CN202010859952.4A 2020-08-24 2020-08-24 Video interaction data processing method and device, electronic equipment and storage medium Active CN111988669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010859952.4A CN111988669B (en) 2020-08-24 2020-08-24 Video interaction data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010859952.4A CN111988669B (en) 2020-08-24 2020-08-24 Video interaction data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111988669A CN111988669A (en) 2020-11-24
CN111988669B true CN111988669B (en) 2022-06-03

Family

ID=73443067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010859952.4A Active CN111988669B (en) 2020-08-24 2020-08-24 Video interaction data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111988669B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114329230B (en) * 2021-12-30 2023-01-31 北京百度网讯科技有限公司 Information generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731737A (en) * 2013-12-19 2014-04-16 乐视网信息技术(北京)股份有限公司 Video information updating method and electronic device
CN103997691A (en) * 2014-06-02 2014-08-20 合一网络技术(北京)有限公司 Method and system for video interaction
CN109120954A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Video messaging method for pushing, device, computer equipment and storage medium
CN110413114A (en) * 2019-07-22 2019-11-05 北京达佳互联信息技术有限公司 Interaction control method and device under video scene, server, readable storage medium storing program for executing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595218B2 (en) * 2008-06-12 2013-11-26 Intellectual Ventures Holding 67 Llc Interactive display management systems and methods
US10282375B2 (en) * 2015-12-22 2019-05-07 Microsoft Technology Licensing Llc Analyzing user interactions with a video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731737A (en) * 2013-12-19 2014-04-16 乐视网信息技术(北京)股份有限公司 Video information updating method and electronic device
CN103997691A (en) * 2014-06-02 2014-08-20 合一网络技术(北京)有限公司 Method and system for video interaction
CN109120954A (en) * 2018-09-30 2019-01-01 武汉斗鱼网络科技有限公司 Video messaging method for pushing, device, computer equipment and storage medium
CN110413114A (en) * 2019-07-22 2019-11-05 北京达佳互联信息技术有限公司 Interaction control method and device under video scene, server, readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN111988669A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN111783001A (en) Page display method and device, electronic equipment and storage medium
EP3316527A1 (en) Method and device for managing notification messages
CN112131410A (en) Multimedia resource display method, device, system and storage medium
CN113099262B (en) Information display method and device, electronic equipment and storage medium
CN112416219B (en) Target object processing method, device and system, electronic equipment and storage medium
CN113094378B (en) Data processing method, device, electronic equipment and storage medium
CN113254784A (en) Information display method and device, electronic equipment and storage medium
CN112131466A (en) Group display method, device, system and storage medium
CN111988669B (en) Video interaction data processing method and device, electronic equipment and storage medium
CN113365099B (en) Bullet screen issuing method, bullet screen receiving method, bullet screen issuing device, electronic equipment and storage medium
CN114237784A (en) User interface generation method and device, electronic equipment and storage medium
CN112000840B (en) Business object display method and device
EP3958575A1 (en) Method and apparatus for pushing information in live broadcast room
CN112862349B (en) Data processing method, device and equipment based on ABS service data
CN112333233B (en) Event information reporting method and device, electronic equipment and storage medium
CN114417133A (en) Business data processing method and device, electronic equipment and computer storage medium
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN110866147B (en) Method, apparatus and storage medium for classifying live broadcast application
CN111526084A (en) Information processing method, device, equipment and storage medium
CN112988822A (en) Data query method, device, equipment, readable storage medium and product
CN107168693B (en) Display method and device of screen locking interface
CN112182455B (en) Page display method, device, electronic equipment and storage medium
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN111984865B (en) Method and device for inquiring account number, electronic 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
GR01 Patent grant
GR01 Patent grant