CN110611839B - Interactive content processing method, device and storage medium - Google Patents

Interactive content processing method, device and storage medium Download PDF

Info

Publication number
CN110611839B
CN110611839B CN201810620374.1A CN201810620374A CN110611839B CN 110611839 B CN110611839 B CN 110611839B CN 201810620374 A CN201810620374 A CN 201810620374A CN 110611839 B CN110611839 B CN 110611839B
Authority
CN
China
Prior art keywords
interactive content
multimedia resource
file
time period
content data
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
CN201810620374.1A
Other languages
Chinese (zh)
Other versions
CN110611839A (en
Inventor
杜佳霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201810620374.1A priority Critical patent/CN110611839B/en
Publication of CN110611839A publication Critical patent/CN110611839A/en
Application granted granted Critical
Publication of CN110611839B publication Critical patent/CN110611839B/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • 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/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The disclosure relates to an interactive content processing method and device. The method comprises the following steps: when the local multimedia resources in the terminal begin to be played off line, judging whether a first interactive content file corresponding to the local multimedia resources exists in the terminal or not; and when the first interactive content file exists in the terminal and the loading condition is met, loading the interactive content data in the first interactive content file in a playing interface of the local multimedia resource. According to the interactive content processing method and the interactive content processing device, the interactive content file can be loaded when the multimedia resource is played offline, and the richness of the content during offline playing is improved.

Description

Interactive content processing method, device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing interactive content.
Background
In the related art, a user may cache video content to a terminal, and thus may play a video in a state where there is no network, but may not watch a bullet screen of the video content in a state where there is no network. The content of the barrage may contain content related to the scenario of the video, and the inability to view the barrage may reduce the interest of the video, so that the content is not rich enough, resulting in poor user experience.
Disclosure of Invention
In view of this, the present disclosure provides an interactive content processing method and apparatus.
According to an aspect of the present disclosure, there is provided an interactive content processing method, where the method is used for a terminal, and the method includes:
when a local multimedia resource in a terminal starts to be played offline, judging whether a first interactive content file corresponding to the local multimedia resource exists in the terminal or not, wherein the first interactive content file comprises interactive content data of the local multimedia resource;
and when a first interactive content file exists in the terminal and a loading condition is met, loading interactive content data in the first interactive content file in a playing interface of the local multimedia resource.
In one possible implementation, the method further includes:
sending a parameter acquisition request aiming at the interactive content of the local multimedia resource to a first server, wherein the parameter acquisition request comprises an identifier of the local multimedia resource, and the parameter acquisition request is used for acquiring a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
when a second version identification and a file address of the second interactive content file are received, judging whether the second version identification is the same as a first version identification of a first interactive content file in the terminal or not;
and when the second version identification is the same as the first version identification, judging that a loading condition is met.
In one possible implementation, the method further includes:
when the first interactive content file does not exist in the terminal or the second version identification is different from the first version identification, judging whether the network state of the terminal meets the downloading condition of the interactive content file or not;
when the network state of the terminal meets the downloading condition, sending a downloading request of a second interactive content file to a second server according to the file address, wherein the second interactive content file comprises interactive content data of the local multimedia resource;
and when the second interactive content file is received, loading the interactive content data in the second interactive content file in a playing interface of the local multimedia resource.
In one possible implementation, the method further includes:
and when the local multimedia resource is deleted, deleting the first interactive content file.
According to another aspect of the present disclosure, there is provided an interactive content processing method, where the method is applied to a first server, and includes:
when a parameter acquisition request of a terminal for interactive content of a local multimedia resource in the terminal is received, determining a second version identifier and a file address of a second interactive content file of the local multimedia resource according to the identifier of the local multimedia resource, wherein the file address comprises a storage address of the second interactive content file in a second server;
and sending the second version identification and the file address to the terminal.
In one possible implementation, the method further includes:
in a polling time period, when interactive content data are added to a multimedia resource, storing an interactive content record corresponding to the newly added interactive content data into a list, wherein the interactive content record comprises an identifier of the multimedia resource corresponding to the interactive content data and a playing time corresponding to the interactive content data, and the list is used for storing the interactive content records of a plurality of multimedia resources;
when a polling time period is finished, determining a target multimedia resource with the quantity of interactive content data larger than or equal to a quantity threshold value of the polling time period from the plurality of multimedia resources according to the list, wherein the quantity threshold value of the polling time period is associated with the quantity of the interactive content data of the plurality of multimedia resources when the polling time period is started;
and generating an interactive content file of the target multimedia resource, wherein the interactive content file comprises interactive content data of the target multimedia resource and has a unique version identifier.
In one possible implementation manner, each multimedia resource includes a plurality of playing time periods, and the interactive content data in the plurality of playing time periods respectively form a plurality of interactive content data sets, where the method further includes:
aiming at a first playing time period of a first multimedia resource, when a polling time period is finished, if newly added interactive content data exists in the first playing time period, all the interactive content data at the end of the polling time period in the first playing time period form a first interactive content data set, wherein the first multimedia resource is any one of a plurality of multimedia resources, and the first playing time period is any one of the plurality of playing time periods of the first multimedia resource;
replacing the initial interactive content data set at the beginning of the polling time period with the first interactive content data set.
In one possible implementation, the method further includes:
determining first configuration data of a first multimedia resource at the end of a polling time period according to interactive content data of a plurality of playing time periods of the first multimedia resource, wherein the first configuration data is used for representing whether each playing time period of the first multimedia resource contains interactive content data;
replacing initial configuration data at the beginning of a polling time period with the first configuration data.
In one possible implementation, the interactive content file includes a plurality of subfiles and a configuration file,
wherein generating the interactive content file of the target multimedia resource comprises:
determining a target playing time period with interactive content data in a plurality of playing time periods of the target multimedia resource according to the configuration data of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains the interactive content data;
performing format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in the target playing time period form the interactive content data set of the target playing time period;
carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
and compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
In one possible implementation, the interactive content file includes a plurality of subfiles and a configuration file,
wherein, generating the interactive content file of each target multimedia resource comprises:
format conversion is carried out on the plurality of interactive content data sets of the target multimedia resource respectively to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in a plurality of playing time periods of the target multimedia resource respectively form a plurality of interactive content data sets;
carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains interactive content data;
and compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
In one possible implementation, the method further includes:
sending the interactive content file to a second server;
and when receiving the file address sent by the second server, storing the file address.
According to another aspect of the present disclosure, there is provided an interactive content processing apparatus including:
the first judgment module is used for judging whether a first interactive content file corresponding to a local multimedia resource exists in the terminal when the local multimedia resource in the terminal starts to be played off line, wherein the first interactive content file comprises interactive content data of the local multimedia resource;
and the first loading module is used for loading the interactive content data in the first interactive content file in a playing interface of the local multimedia resource when the first interactive content file exists in the terminal and the loading condition is met.
In one possible implementation, the apparatus further includes:
a parameter obtaining request sending module, configured to send a parameter obtaining request for interactive content of the local multimedia resource to a first server, where the parameter obtaining request includes an identifier of the local multimedia resource, and the parameter obtaining request is used to obtain a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
the second judging module is used for judging whether the second version identification is the same as the first version identification of the first interactive content file in the terminal or not when the second version identification and the file address of the second interactive content file are received;
and the loading condition determining module is used for judging that the loading condition is met when the second version identification is the same as the first version identification.
In one possible implementation, the apparatus further includes:
a third determining module, configured to determine whether a network state of the terminal meets a download condition of the interactive content file when the first interactive content file does not exist in the terminal or the second version identifier is different from the first version identifier;
a download request sending module, configured to send a download request of a second interactive content file to a second server according to the file address when a network state of the terminal meets a download condition, where the second interactive content file includes interactive content data of the local multimedia resource;
and the second loading module is used for loading the interactive content data in the second interactive content file in the playing interface of the local multimedia resource when the second interactive content file is received.
In one possible implementation, the apparatus further includes:
and the deleting module is used for deleting the first interactive content file when the local multimedia resource is deleted.
According to another aspect of the present disclosure, there is provided an interactive content processing apparatus including:
the determining module is used for determining a second version identifier and a file address of a second interactive content file of the local multimedia resource according to the identifier of the local multimedia resource when a parameter acquisition request of the terminal for the interactive content of the local multimedia resource in the terminal is received, wherein the file address comprises a storage address of the second interactive content file in a second server;
and the sending module is used for sending the second version identification and the file address to the terminal.
In one possible implementation, the apparatus further includes:
the system comprises a recording module, a processing module and a processing module, wherein the recording module is used for storing interactive content records corresponding to newly-added interactive content data into a list when the interactive content data are newly added to multimedia resources in a polling time period, the interactive content records comprise identifiers of the multimedia resources corresponding to the interactive content data and playing time corresponding to the interactive content data, and the list is used for storing the interactive content records of a plurality of multimedia resources;
a target multimedia resource determining module, configured to determine, according to the list, a target multimedia resource whose number of interactive content data is greater than or equal to a number threshold of the polling time period from the multiple multimedia resources when the polling time period ends, where the number threshold of the polling time period is associated with the number of interactive content data of the multiple multimedia resources when the polling time period starts;
and the generating module is used for generating an interactive content file of the target multimedia resource, wherein the interactive content file comprises interactive content data of the target multimedia resource and has a unique version identifier.
In one possible implementation manner, each multimedia resource includes a plurality of playing time periods, and the interactive content data in the plurality of playing time periods respectively form a plurality of interactive content data sets, where the apparatus further includes:
a data set forming module, configured to, for a first play time period of a first multimedia resource, when a polling time period is ended, if new interactive content data exists in the first play time period, form a first interactive content data set from all the interactive content data at the end of the polling time period in the first play time period, where the first multimedia resource is any one of a plurality of multimedia resources, and the first play time period is any one of the plurality of play time periods of the first multimedia resource;
a first replacement module for replacing the initial interactive content data set at the beginning of the polling time period with the first interactive content data set.
In one possible implementation, the apparatus further includes:
the configuration data determining module is used for determining first configuration data of a first multimedia resource at the end of a polling time period according to interactive content data of a plurality of playing time periods of the first multimedia resource, wherein the first configuration data is used for representing whether each playing time period of the first multimedia resource contains interactive content data;
a second replacement module to replace the initial configuration data at the beginning of the polling time period with the first configuration data.
In one possible implementation, the interactive content file includes a plurality of subfiles and a configuration file,
wherein the generating module comprises:
the target playing time period determining submodule is used for determining a target playing time period with interactive content data in a plurality of playing time periods of the target multimedia resource according to the configuration data of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains the interactive content data;
the first format conversion submodule is used for carrying out format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, wherein all the interactive content data in the target playing time period form the interactive content data set of the target playing time period;
the second format conversion submodule is used for carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
and the first compression submodule is used for compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
In one possible implementation, the interactive content file includes a plurality of subfiles and a configuration file,
wherein the generating module comprises:
the third format conversion submodule is used for respectively carrying out format conversion on a plurality of interactive content data sets of the target multimedia resource to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in a plurality of playing time periods of the target multimedia resource respectively form a plurality of interactive content data sets;
the fourth format conversion submodule is used for carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains interactive content data or not;
and the second compression submodule is used for compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
In one possible implementation, the apparatus further includes:
the interactive content file sending module is used for sending the interactive content file to a second server;
and the file address storage module is used for storing the file address when receiving the file address sent by the second server.
According to another aspect of the present disclosure, there is provided an interactive content processing apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
According to the interactive content processing method and the device, whether the terminal has the first interactive content file or not can be judged when the local multimedia resource in the terminal is played offline, the first interactive content file is loaded when the loading condition is met, the interactive content file can be loaded when the multimedia resource is played offline, and the richness of the content during offline playing is improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 2 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 3 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 4 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 5 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 6 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 7 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 8 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
fig. 9 shows a flowchart of step S55 of the interactive content processing method according to an embodiment of the present disclosure;
fig. 10 illustrates a flowchart of step S55 of the interactive content processing method according to an embodiment of the present disclosure;
FIG. 11 shows a flow diagram of an interactive content processing method according to an embodiment of the present disclosure;
fig. 12 is a schematic application diagram of an interactive content processing method according to an embodiment of the present disclosure;
FIG. 13 is a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure;
FIG. 14 shows a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure;
FIG. 15 is a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure;
FIG. 16 shows a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure;
FIG. 17 shows a block diagram of an apparatus for interactive content processing according to an embodiment of the present disclosure;
fig. 18 shows a block diagram of an apparatus for interactive content processing according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 1, the method is applied to a terminal, and includes:
in step S11, when a local multimedia resource in a terminal starts to be played offline, determining whether a first interactive content file corresponding to the local multimedia resource exists in the terminal, where the first interactive content file includes interactive content data of the local multimedia resource;
in step S12, when a first interactive content file exists in the terminal and a loading condition is satisfied, loading the interactive content data in the first interactive content file in the playing interface of the local multimedia resource.
According to the interactive content processing method disclosed by the embodiment of the disclosure, whether the terminal has the first interactive content file or not can be judged when the local multimedia resource in the terminal is played offline, the first interactive content file is loaded when the terminal has the first interactive content file and the loading condition is met, the interactive content file can be loaded when the multimedia resource is played offline, and the richness of the content during offline playing is improved.
Local multimedia resources, such as video, music, text and the like, can be cached in the terminal. These multimedia assets can be downloaded to the terminal, and the multimedia assets can have corresponding interactive content data (e.g., barrage, comments, messages, etc.). If the multimedia resources are played online, the user can see the interactive content data in the playing interface, and if the multimedia resources are played offline, the user cannot view the interactive content data.
In a possible implementation manner, in step S11, when the user plays the local multimedia resource cached in the terminal offline, the terminal may determine whether the first interactive content file (profile) of the local multimedia resource exists locally. For example, the local multimedia resource may include a video cached by the user, and when the user plays the video offline, the terminal may determine whether a first interactive content file of the video exists locally, where the first interactive content file may include barrage data of the video.
In one possible implementation manner, in step S12, if a first interactive content file of the video exists in the terminal and the loading condition is satisfied, the first interactive content file may be loaded. The loading condition may include all interactive content data of the video included in the first interactive content file. In an example, the video may be played by many terminals, and users of other terminals may send barrages through the other terminals. When the terminal plays the video offline, if the local first interactive content file of the terminal contains all the barrage data (i.e. no newly added barrage data), the first interactive content file is judged to meet the loading condition, and the first interactive content file can be loaded in the playing interface of the video.
Fig. 2 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 2, the method further comprises:
in step S13, a parameter obtaining request for the interactive content of the local multimedia resource is sent to a first server, where the parameter obtaining request includes an identifier of the local multimedia resource, and the parameter obtaining request is used to obtain a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
in step S14, when the second version identifier and the file address of the second interactive content file are received, it is determined whether the second version identifier is the same as the first version identifier of the first interactive content file in the terminal;
in step S15, when the second version id is the same as the first version id, it is determined that a loading condition is satisfied.
In one possible implementation, the first server may be an application server or a WEB server. In step S13, the first server may store version identifiers and file addresses of the interactive content files of the multimedia assets in a cache (e.g., a Redis database), the interactive content files of the multimedia assets may include all the interactive content data of the multimedia assets, and the first server may periodically update the interactive content files. In an example, the interactive content data of the multimedia resource may be updated in real time, and the first server may periodically generate an interactive content file of the multimedia resource using the updated interactive content data and obtain a version identifier of the interactive content file. In an example, if the interactive content data included in the interactive content file is different, the version identification is different, for example, the interactive content file generated by using the updated interactive content data is different from the version identification of the interactive content file before the interactive data is updated.
In an example, when the terminal plays the local interactive resource, a parameter acquisition request for the interactive content of the local multimedia resource may be sent to the first server in each polling period (e.g., a time period of 15 minutes). The first server may update the interactive content file once per polling period. For example, in a polling period, if the barrage data of a certain video is updated, the interactive content file of the video may be generated by using the updated barrage data at the end of the polling period, that is, the interactive content file includes all the barrage data of the video (including the barrage data newly added in the polling time period). The version identification of the interactive content file is different from the version identification of the interactive content file generated at the end of the last polling time period. The present disclosure does not limit the length of the polling time period.
It should be noted that step S13 may be performed in parallel with step S11, or step S13 may be performed before step S11 or after step S11. That is, regardless of whether the local multimedia resource is played, the terminal may send a parameter acquisition request for the interactive content of the local multimedia resource to the first server within each polling time period.
In a possible implementation manner, for the local multimedia resource, the first server stores a second version identifier and a file address of a second interactive content file of the local multimedia resource, where the second version identifier may be a version identifier of a latest interactive content file that is updated by the first server most recently, and the file address may be a link address for downloading the latest interactive content file.
In one possible implementation manner, in step S14, the first server may send the second version identification and the file address of the second interactive content file of the local multimedia resource to the terminal. The terminal can judge whether the second version identification is the same as the first version identification of the first interactive content file in the terminal.
In one possible implementation manner, in step S15, if the second version identifier is the same as the first version identifier, the second interactive content file is consistent with the interactive content data contained in the first interactive content file. In this case, the first interactive content file is the latest interactive content file including all the interactive content data, and therefore, it can be determined that the loading condition is satisfied, and the terminal can directly load the first interactive content file.
By the method, whether the first interactive content file and the second interactive content file of the local terminal are the same or not can be judged, if yes, the interactive content data are not updated in the polling test piece period, and the first interactive content file of the local terminal can be directly loaded.
Fig. 3 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 3, the method further comprises:
in step S16, when there is no first interactive content file in the terminal or the second version identifier is different from the first version identifier, determining whether the network status of the terminal meets a download condition of the interactive content file;
in step S17, when the network status of the terminal meets the download condition, sending a download request of a second interactive content file to a second server according to the file address, where the second interactive content file includes interactive content data of the local multimedia resource;
in step S18, when the second interactive content file is received, the interactive content data in the second interactive content file is loaded in the playing interface of the local multimedia resource.
In a possible implementation manner, in step S16, the first interactive content file does not exist in the terminal, that is, the first interactive content file is not downloaded while the local multimedia resource is cached. Alternatively, the second version identification is different from the first version identification, that is, the second interactive content file is different from the interactive content data contained in the first interactive content file (newly added interactive content data). When either of the above two cases occurs, it can be judged that the loading condition is not satisfied.
In this case, it may be determined whether the network status of the terminal satisfies a download condition, where the download condition includes a network condition available for downloading the second interactive content file, for example, the terminal is connected to WIFI or a user allows downloading the second interactive content file in a state where the terminal is connected to a cellular network. If the download condition is met, a download request can be sent to the second server through the file address, the second server can be a server used for storing the interactive content file, such as a cloud storage server, a file server and the like, and the type of the second server is not limited by the disclosure.
In a possible implementation manner, in step S17, the terminal downloads the second interactive content file from the second server, and when the downloading is completed, the interactive content data in the second interactive content file may be loaded to the playing interface of the local multimedia resource. Furthermore, the first interactive content file can be replaced by the second interactive content file, that is, after the second interactive content file is downloaded, the first interactive content file can be deleted, and only the interactive content data in the second interactive content file is loaded.
By the method, whether the first interactive content file meets the loading condition or not can be judged, if not, the second interactive content file which is updated recently is downloaded from the second server under the condition that the downloading condition is met, and the newly added interactive content data of the local multimedia resource can be loaded.
Fig. 4 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 4, the method further comprises:
in step S19, when the local multimedia asset is deleted, the first interactive content file is deleted.
In one possible implementation, in step S19, the first interactive content data may be deleted when the local multimedia asset is deleted. For example, when a video is deleted, the barrage data downloaded when the video is cached is deleted at the same time, and the storage space of the terminal can be released. In an example, if the second interactive content file is downloaded and the interactive content data in the second interactive content file is loaded, the second interactive content file is deleted when the local multimedia resource is deleted.
The interactive content data of the multimedia resources are downloaded and loaded in the playing interface, so that a user can see the interactive content data in the playing interface. For example, the multimedia resource is a video, and after the video is cached, a user can download interactive content data (for example, barrage data) in a network environment in which the terminal is connected to WIFI and load the interactive content data (for example, a barrage switch is turned on), so that the interactive content data can be displayed on a playing interface of the video, and the user can view the interactive content data. And the terminal can send a parameter acquisition request to the first server within each polling time period to acquire the version identification of the interactive content file of the video in the first server to judge whether the interactive content file is updated, and if the interactive content file is updated, the latest interactive content file is downloaded to load the latest barrage data.
Fig. 5 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 5, the method is applied to a first server, and includes:
in step S51, when a parameter obtaining request for the interactive content of the local multimedia resource in the terminal is received, determining a second version identifier and a file address of a second interactive content file of the local multimedia resource according to the identifier of the local multimedia resource, where the file address includes a storage address of the second interactive content file in a second server;
in step S52, the second version id and the file address are sent to the terminal.
According to the interactive content processing method disclosed by the embodiment of the disclosure, the first server can send the file address and the second version identification of the second interactive content file to the terminal when receiving the request of the terminal, so that the terminal can judge whether the interactive content is updated, and the terminal can download the latest interactive content file.
In one possible implementation manner, in step S51, the terminal may send a parameter obtaining request for the interactive content of the local multimedia resource to the first server, where the parameter obtaining request may include an identifier of the local multimedia resource. When receiving the parameter acquisition request, the first server may determine, according to the identifier of the local multimedia resource, a second version identifier and a file address of a second interactive content file of the local multimedia resource.
In a possible implementation manner, in step S52, the first server may send the second version identifier and the file address to the terminal, so that the terminal may determine whether the first interactive content file in the terminal satisfies the loading condition according to the second version identifier, and when the first interactive content file does not satisfy the loading condition, the terminal may download the second interactive content file from the second server through the file address.
Fig. 6 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 6, the method further comprises:
in step S53, when an interactive content data is added to a multimedia resource within a polling time period, storing an interactive content record corresponding to the added interactive content data in a list, where the interactive content record includes an identifier of the multimedia resource corresponding to the interactive content data and a playing time corresponding to the interactive content data, and the list is used for storing interactive content records of a plurality of multimedia resources;
in step S54, at the end of a polling time period, determining a target multimedia resource whose amount of interactive content data is greater than or equal to a threshold amount of the polling time period from the plurality of multimedia resources according to the list, where the threshold amount of the polling time period is associated with the amount of the interactive content data of the plurality of multimedia resources at the beginning of the polling time period;
in step S55, an interactive content file of the target multimedia asset is generated, wherein the interactive content file includes interactive content data of the target multimedia asset, and the interactive content file has a unique version identifier.
In one possible implementation manner, in step S53, if the interactive content data is added newly, the interactive content record composed of the identifier (e.g., video ID) of the multimedia asset corresponding to the interactive content data and the playing time of the multimedia asset corresponding to the interactive content data (e.g., the interactive content data appears at 20 seconds in 5 minutes of the video) is saved to the list in step S53. The list may be used to maintain interactive content records for a plurality of multimedia assets.
In one possible implementation manner, in step S54, at the end of the polling time period, the target multimedia asset may be filtered according to the number of interactive content records of the multimedia assets stored in the list. In an example, the target multimedia asset may be filtered based on whether the amount of interactive content data of the multimedia asset reaches the amount threshold for the polling time period. The threshold number of polling time periods may change as the number of interactive content data of the multimedia asset increases.
In an example, the threshold number of polling time periods may be a number of nodes of 100, 500, 1000, 2000, 3000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, and 70000, etc. For example, if the number of interactive content data of a certain multimedia asset is less than 100 (e.g., 50) at the beginning of the polling time period, the number threshold is 100 during the polling time period, i.e., if the interactive content data is newly added during the polling time period so that the total number of interactive content data of the multimedia asset is greater than or equal to 100, the multimedia asset can be determined as the target multimedia asset. For example, if the number of interactive content data of a certain multimedia resource is less than 10000 and greater than 5000 (e.g., the number is 6000) at the beginning of the polling time period, the number threshold is 10000 in the polling time period, that is, if the interactive content data is newly added in the polling time period so that the total number of interactive content data of the multimedia resource is greater than or equal to 10000, the multimedia resource can be determined as the target multimedia resource. That is, the threshold number of polling time periods is associated with the number of interactive content data of the multimedia asset at the beginning of the polling time period. Further, if the number of the interactive content data of a certain multimedia resource is greater than or equal to the maximum threshold (e.g., 70000), no matter how many interactive content data are added to the multimedia resource in the polling time period, the multimedia resource is no longer used as the target multimedia resource, for example, the number of the barrage data of a certain video exceeds 70000, the video will not be used as the target multimedia resource no matter how many barrages are added to the video, and therefore the interactive content file of the video is no longer updated, so that the normal viewing of the video is not affected by the excessive number of the barrage data.
In one possible implementation manner, in step S55, an interactive content file of the target multimedia asset may be generated using all interactive content data of the target multimedia asset (including the interactive content data newly added in the polling time period), and the interactive content file has a unique version identifier.
By the method, when the number of the interactive content data of the target multimedia resource exceeds the number threshold of the polling time period, the interactive content file of the target multimedia resource can be generated, the latest interactive content data can be generated into the interactive content file for the terminal to download, and excessive interactive content files can be avoided from being generated, so that the terminal does not need to download the interactive content file every time the interactive content data is updated.
Fig. 7 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 7, each multimedia resource includes a plurality of playing time periods, and the interactive content data in the playing time periods respectively form a plurality of interactive content data sets, wherein the method further includes:
in step S56, for a first playing time segment of a first multimedia resource, at the end of a polling time period, if there is new interactive content data in the first playing time segment, then combining all the interactive content data at the end of the polling time period in the first playing time segment into a first interactive content data set, where the first multimedia resource is any one of a plurality of multimedia resources, and the first playing time segment is any one of the plurality of playing time segments of the first multimedia resource;
in step S57, the initial interactive content data set at the beginning of the polling time period is replaced with the first interactive content data set.
In one possible implementation manner, in step S56, the interactive content data of each multimedia asset is stored in the first server in the form of an interactive content data set (for example, in a cache of the first server), if a multimedia asset adds new interactive content data within the polling time period, the interactive content record of the multimedia asset can be added in the list, and the first playing time period of the new interactive content record can be determined. And inquiring all the interactive content data (including the newly-added interactive content data in the polling time period) in the first playing time period according to the list, and forming all the interactive content data in the first playing time period into a first interactive content data set of the first playing time period.
In an example, each playing period may be 1 minute, with the multimedia asset being a video. And in the polling time period, if the bullet screen data is newly added in the 20 th second of the video, all the bullet screen data in the 1 st minute of the video (including the newly added bullet screen data in the polling time period) are formed into an interactive content data set of the 1 st minute of the video. And if the bullet screen data is newly added in the 3 rd minute and 20 th second of the video within the polling time period, all the bullet screen data in the 4 th minute of the video (including the newly added bullet screen data within the polling time period) are formed into an interactive content data set of the 4 th minute of the video. In an example, the interactive content data set may be named: < video ID + bullet screen dataset for mth minute + mth minute >. The present disclosure does not limit the naming of the interactive content data set.
In one possible implementation, in step S57, the initial interactive content data set of the first playing time period at the beginning of the polling time period may be replaced with the first interactive content data set, i.e., the initial interactive content data set of the first playing time period at the beginning of the polling time period is deleted after the first interactive content data set is composed. For example, if the bullet screen data is newly added in the 3 rd minute and 20 th second of the video, all the bullet screen data in the 4 th minute of the video (including the newly added bullet screen data in the polling time period) are combined into the interactive content data set in the 4 th minute of the video, and the newly combined interactive content data set in the 4 th minute at the beginning of the polling time period is used to replace the interactive content data set in the 4 th minute at the beginning of the polling time period.
Fig. 8 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 8, the method further comprises:
in step S58, determining first configuration data of a first multimedia asset at the end of a polling time period according to interactive content data of a plurality of playing time segments of the first multimedia asset, wherein the first configuration data is used for characterizing whether each playing time segment of the first multimedia asset contains interactive content data;
in step S59, the initial configuration data at the beginning of the polling time period is replaced with the first configuration data.
In one possible implementation manner, in step S58, at the end of the polling time period, first configuration data of the first multimedia asset may be determined according to the interactive content data of a plurality of playing time segments of the first multimedia asset, where the first configuration data is used to characterize whether each playing time segment of the first multimedia asset contains interactive content data. For example, the multimedia resource is a video, the playing time period may be 1 minute, if there is barrage data in a certain minute, it is recorded as 1 in the first configuration data, otherwise it is 0. For example, 1110 … may indicate that the video has bullet screen data present in the 1 st minute, bullet screen data present in the 2 nd minute, bullet screen data present in the 3 rd minute, and bullet screen data not present in the 4 th minute, etc.
In one possible implementation, in step S59, the initial configuration data of the first playing time period at the beginning of the polling time period may be replaced with the first configuration data, i.e., the initial configuration data is deleted after the first configuration data is determined. For example, the initial configuration data is 1110 …, the 20 th second new barrage data and the 3 rd minute 20 second new barrage data of the video, the configuration data of the 1 st minute of the video remains unchanged, and the configuration data of the 4 th minute is changed from 0 to 1, that is, the first configuration data is 1111 …. Further, the first configuration data may be used in place of the initial configuration data at the beginning of the polling time period.
By the method, when the polling time period is over, the first server can store the interactive content data sets with the newly added interactive content data, so that the interactive content files can be directly formed by the interactive content data sets when the interactive content files are generated, the interactive content data do not need to be taken out from the interactive content database, and the processing efficiency is improved.
Fig. 9 shows a flowchart of step S55 of the interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 9, the interactive content file includes a plurality of subfiles and configuration files, and step S55 includes:
in step S551, determining a target playing time segment with interactive content data in a plurality of playing time segments of the target multimedia resource according to configuration data of the target multimedia resource, wherein the configuration data of the target multimedia resource is used to characterize whether each playing time segment of the target multimedia resource contains interactive content data;
in step S552, performing format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, where all the interactive content data in the target playing time period form the interactive content data set of the target playing time period;
in step S553, format conversion is performed on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
in step S554, the plurality of subfiles and the configuration file are compressed to obtain an interactive content file of the target multimedia resource, where the interactive content file has a corresponding version identifier.
In a possible implementation manner, in step S551, the configuration data of the target multimedia asset is used to characterize whether each playing time period of the target multimedia asset contains interactive content data, for example, the multimedia asset is a video, the playing time period may be 1 minute, if there is barrage data in a certain minute, it is recorded as 1 in the first configuration data, otherwise, it is 0. For example, 1110 … may indicate that the video has bullet screen data present in the 1 st minute, bullet screen data present in the 2 nd minute, bullet screen data present in the 3 rd minute, and bullet screen data not present in the 4 th minute, etc. A target playing period with interactive content data may be determined from the configuration data, e.g. 1 st minute, 2 nd minute and 3 rd minute are target playing periods, 4 th minute is not a target playing period.
In one possible implementation manner, in step S552, the interactive content data set of each target playing time period may be subjected to format conversion. In an example, the interactive content data set for the target playback time period stored in the first server (e.g., the cache of the first server) may be format converted if the interactive content data set for the target playback time period is not stored (e.g., has not been generated or the cache is cleaned) in the first server. For example, a data set consisting of all the barrage data in the 1 st minute, the 2 nd minute, and the 3 rd minute may be format-converted without format-converting the interactive content data set in the 4 th minute. In an example, the interactive content data set for each target playback time period may be converted into subfiles in json format, for example, a data set consisting of all bullet screen data for the 1 st minute may be formatted and named 1.json, a data set consisting of all bullet screen data for the 2 nd minute may be formatted and named 2.json, and a data set consisting of all bullet screen data for the 3 rd minute may be formatted and named 3. json. In an example, the multimedia asset is a video with a playing time of 9 minutes, and if the configuration data of the video indicates that the data of 1 minute, 2 minutes, 3 minutes, 6 minutes and 8 minutes is 1 and the rest is 0, the generated subfiles may include 1 json, 2 json, 3 json, 6 json and 8 json.
In one possible implementation manner, in step S553, the configuration data may be subjected to format conversion, and a configuration file may be generated. In an example, the configuration data may be converted to a json formatted file.
In one possible implementation manner, in step S554, the configuration file and the plurality of subfiles may be compressed to generate an interactive content file of the target multimedia resource. The interactive content file has a unique version identification. In an example, MD5 values generated during compression may be used as the version identification. In an example, only subfiles generated by format conversion of the interactive content data set of the target playing time period and the configuration file may be included in the interactive content file.
By the method, the interactive content data set and the configuration data of each target playing time period can be subjected to format conversion, and an interactive content file is generated, so that the interactive content file comprises the newly added interactive content data in the polling time period.
Fig. 10 shows a flowchart of step S55 of the interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 10, the interactive content file includes a plurality of subfiles and configuration files, and step S55 includes:
in step S555, format conversion is performed on the multiple interactive content data sets of the target multimedia resource, so as to obtain multiple subfiles of the target multimedia resource, where all the interactive content data in multiple playing time periods of the target multimedia resource respectively form multiple interactive content data sets;
in step S556, format conversion is performed on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, where the configuration data of the target multimedia resource is used to represent whether each playing time segment of the target multimedia resource contains interactive content data;
in step S557, the plurality of subfiles and the configuration file are compressed to obtain an interactive content file of the target multimedia resource, where the interactive content file has a corresponding version identifier.
In one possible implementation manner, in step S555, the interactive content data set for each playing time period may be subjected to format conversion. In an example, interactive content data sets for multiple playback time periods stored in a first server (e.g., a cache of the first server) can be formatted if interactive content data sets for playback time periods are not stored (e.g., have not been generated or the cache cleared) in the first server. For example, the multimedia resource is a video with a playing time of 5 minutes, each playing time period is 1 minute, and format conversion can be performed on data sets composed of all barrage data in the 1 st minute, the 2 nd minute, the 3 rd minute, the 4 th minute and the 5 th minute respectively. In an example, the interactive content data set for each play period may be converted into a subfile in json format, e.g., a data set consisting of all bullet screen data for the 1 st minute may be formatted and named 1 json, a data set consisting of all bullet screen data for the 2 nd minute may be formatted and named 2 json, etc. In an example, the generated subfiles may include 1.json, 2.json, 3.json, 4.json, and 5. json.
In one possible implementation manner, in step S556, the configuration data may be subjected to format conversion, and a configuration file is generated. In an example, the configuration data may be converted to a json formatted file.
In one possible implementation manner, in step S557, the configuration file and the plurality of subfiles may be compressed to generate an interactive content file of the target multimedia resource. The interactive content file has a unique version identification. In an example, MD5 values generated during compression may be used as the version identification. In an example, the interactive content file may include subfiles generated by format conversion of the interactive content data set of all playing time periods of the target multimedia asset and a configuration file.
By the method, the interactive content data set and the configuration data of each playing time period of the target multimedia resource can be subjected to format conversion, and an interactive content file is generated, so that the interactive content file comprises the newly added interactive content data in the polling time period.
Fig. 11 shows a flowchart of an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 11, the method further comprises:
in step S61, sending the interactive content file to a second server;
in step S62, when the file address sent by the second server is received, the file address is stored.
In one possible implementation manner, in step S61, the first server may send the interactive content file to the second server to store the interactive content file in the second server.
In one possible implementation manner, when the first server stores the interactive content file in the second server in step S62, a file address, i.e., a link address for downloading the interactive content file, may be obtained, and the file address may correspond to an identifier of the multimedia resource, for example, the file address may correspond to a video ID. The first server may store the file address, and when receiving a parameter acquisition request of the terminal for the interactive content of the local multimedia resource in the terminal, the first server may send the file address corresponding to the identifier of the local multimedia resource to the terminal according to the identifier of the multimedia resource.
According to the interactive content processing method disclosed by the embodiment of the disclosure, a new interactive content data set can be generated when the interactive content data is updated, and an interactive content file is generated when the number of the interactive content data reaches the number threshold of the polling time period. When the terminal plays the multimedia resource, the version identification of the first interactive content file of the local multimedia resource can be compared with the version identification of the second interactive content sent by the first server to determine whether to download the interactive content file again, the latest interactive content file can be provided for the local multimedia content when the terminal plays the local multimedia content, and the richness of the content during offline playing is improved.
Fig. 12 is a schematic application diagram illustrating an interactive content processing method according to an embodiment of the present disclosure. As shown in fig. 12, the terminal 71 has a Software Development Kit (SDK)711 for loading interactive content data, for example, a multimedia asset may be a video, and the interactive content data may be a bullet screen data.
The terminal 71 may cache the video locally, and download a first interactive content file when caching the video, where the first interactive content file includes a plurality of barrage files and configuration files of the video, where each barrage file corresponds to each minute of playing time of the video, and each minute of playing time may include all barrage data occurring in that minute. For example, the bullet screen file for the 2 nd minute may contain all bullet screen data that occurs within the 2 nd minute of the video. In an example, the format of the barrage file may be a json format, where 1.json may represent the barrage file for the 1 minute, 2.json may represent the barrage file for the 2 minute, and so on. The configuration file can be in a json format, and the configuration file can indicate whether bullet screen data are contained in each minute of the video, if the bullet screen data exist in a certain minute, the data of the minute are 1 in the configuration file, and otherwise, the data of the minute are 0. For example, 1110 … may indicate that the video has bullet screen data within 1 minute, bullet screen data within 2 minutes, bullet screen data within 3 minutes, and bullet screen data within 4 minutes, etc. Wherein the first interactive content file has a unique version identification.
When the terminal 71 plays the video offline, the terminal 71 may send a parameter obtaining request 74 to the first server 72 every polling time period (for example, every 15 minutes), the parameter obtaining request being used for requesting the first server 72 for the version identification and the file address of the second interactive content file of the video. The second interactive content file is an interactive content file updated by the first server in the polling time period, and the file can contain barrage data newly added in the polling time period.
If the video adds new barrage data (e.g., barrage data sent by other users through other terminals) during the polling time period, the first server 72 may store the record of the added barrage data in a list. At the end of the polling time period, the first server 72 may query the list to determine the playing time of the new barrage data in the video, for example, the new barrage data appears in the 1 st minute, the 2 nd minute and the 10 th minute. All the bullet screen data in the playing time of the newly added bullet screen data are combined into a bullet screen data set, and the bullet screen data set is named as a bullet screen data set of < video ID + mth minute >, and further, the data set can be stored in a cache (for example, a Redis database) of the first server 72. The configuration file for the video may also be updated and the updated configuration file saved in a cache.
When the polling time period is over, the first server 72 may determine whether the total amount of the barrage data of the video is greater than or equal to the threshold of the polling time period, generate the second interactive content file of the video if the total amount of the barrage data of the video is greater than or equal to the threshold of the polling time period, otherwise, not generate the second interactive content file of the video. In an example, the first server 72 may determine that the target playing time period of the bullet screen data exists according to the configuration file of the video, for example, 1110 … may indicate that the 1 st minute, the 2 nd minute and the 3 rd minute of the video are the target playing time periods, and the 4 th minute is not the target playing time period. And converting the bullet screen data set and the configuration file of the target playing time period into a json format, compressing the bullet screen data set and the configuration file into a second interactive content file, and acquiring the version identification of the second interactive content file.
In one possible implementation, the first server 72 may send the second interactive content file 76 to the second server 73, and the second server 73 may be used to store the second interactive content file. In an example, the second server may be an OSS cloud server. The second server may transmit a file address 77 for storing the second interactive content file to the first server 72 after storing the second interactive content file.
The first server 72 may send the version identification and the file address 75 of the second interactive content file to the terminal 71 upon receiving the parameter obtaining request. The terminal 71 may determine whether the first interactive content file satisfies the loading condition according to the version identifier. In an example, if the version identifier of the first interactive content file is the same as the version identifier of the second interactive content file, it indicates that the first interactive content file is consistent with the barrage data included in the second interactive content file, that is, no barrage data is added in the polling time period or the total amount of the barrage data does not reach the threshold value of the polling time period, that is, the second interactive content file is not the second interactive content file newly generated in the polling time period, and the second interactive content file stored in the second server 73 is consistent with the first interactive content file in the terminal 71. In this case, the terminal 71 may determine that the first interactive content file satisfies the loading condition, and the SDK 711 may load the local first interactive content file on the playing interface of the video.
And if the version identification of the first interactive content file is the same as that of the second interactive content file, indicating that the second interactive content file contains the new bullet screen data in the polling time period. The first interactive content file does not satisfy the loading condition. The terminal 71 may send a download request 78 to the second server 73 according to the file address of the second interactive content file. The second server 73 may transmit the second interactive content file 79 to the terminal 71 after receiving the download request. The SDK 711 may load the bullet screen data in the second interactive content file on the video playing interface.
Fig. 13 is a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure. As shown in fig. 13, the apparatus includes:
the first determining module 81 is configured to determine whether a first interactive content file corresponding to a local multimedia resource exists in a terminal when the local multimedia resource in the terminal starts to be played offline, where the first interactive content file includes interactive content data of the local multimedia resource;
the first loading module 82 is configured to load, when a first interactive content file exists in the terminal and a loading condition is met, interactive content data in the first interactive content file in a play interface of the local multimedia resource.
Fig. 14 shows a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure. As shown in fig. 14, the apparatus further includes:
a parameter obtaining request sending module 83, configured to send a parameter obtaining request for the interactive content of the local multimedia resource to a first server, where the parameter obtaining request includes an identifier of the local multimedia resource, and the parameter obtaining request is used to obtain a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
a second determining module 84, configured to determine, when receiving the second version identifier and the file address of the second interactive content file, whether the second version identifier is the same as the first version identifier of the first interactive content file in the terminal;
and a loading condition determining module 85, configured to determine that a loading condition is met when the second version identifier is the same as the first version identifier.
In one possible implementation, the apparatus further includes:
a third determining module 86, configured to determine whether a network state of the terminal meets a download condition of the interactive content file when the first interactive content file does not exist in the terminal or the second version identifier is different from the first version identifier;
a download request sending module 87, configured to send a download request of a second interactive content file to a second server according to the file address when the network state of the terminal meets a download condition, where the second interactive content file includes interactive content data of the local multimedia resource;
and a second loading module 88, configured to load, when the second interactive content file is received, the interactive content data in the second interactive content file in the play interface of the local multimedia resource.
In one possible implementation, the apparatus further includes:
a deleting module 89, configured to delete the first interactive content file when the local multimedia resource is deleted.
Fig. 15 is a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure. As shown in fig. 15, the apparatus includes:
a determining module 91, configured to determine, according to an identifier of a local multimedia resource, a second version identifier and a file address of a second interactive content file of the local multimedia resource when a parameter acquisition request for interactive content of the local multimedia resource in a terminal is received, where the file address includes a storage address of the second interactive content file in a second server;
a sending module 92, configured to send the second version identifier and the file address to the terminal.
Fig. 16 is a schematic diagram of an interactive content processing apparatus according to an embodiment of the present disclosure. As shown in fig. 16, the apparatus further includes:
a recording module 93, configured to store, in a polling time period, when interactive content data is newly added to a multimedia resource, an interactive content record corresponding to the newly added interactive content data in a list, where the interactive content record includes an identifier of the multimedia resource corresponding to the interactive content data and a playing time corresponding to the interactive content data, and the list is used to store interactive content records of multiple multimedia resources;
a target multimedia resource determining module 94, configured to determine, according to the list, a target multimedia resource whose number of interactive content data is greater than or equal to a threshold number of polling time periods from the plurality of multimedia resources when a polling time period ends, where the threshold number of polling time periods is associated with the number of interactive content data of the plurality of multimedia resources when the polling time period starts;
a generating module 95, configured to generate an interactive content file of the target multimedia resource, where the interactive content file includes interactive content data of the target multimedia resource, and the interactive content file has a unique version identifier.
In one possible implementation, the apparatus further includes:
a data set composing module 96, configured to, for a first play time period of a first multimedia resource, when a polling time period is ended, if there is newly added interactive content data in the first play time period, compose all the interactive content data at the end of the polling time period in the first play time period into a first interactive content data set, where the first multimedia resource is any one of a plurality of multimedia resources, and the first play time period is any one of the plurality of play time periods of the first multimedia resource;
a first replacement module 97 for replacing the initial interactive content data set at the beginning of the polling time period with the first interactive content data set.
In one possible implementation, the apparatus further includes:
a configuration data determining module 98, configured to determine, according to interactive content data of a plurality of playing time periods of a first multimedia resource, first configuration data of the first multimedia resource at the end of a polling time period, where the first configuration data is used to indicate whether each playing time period of the first multimedia resource contains interactive content data;
a second replacement module 99 for replacing the initial configuration data at the beginning of the polling time period with said first configuration data.
In one possible implementation, the generating module 95 includes:
a target playing time period determining submodule 951, configured to determine, according to configuration data of the target multimedia resource, a target playing time period having interactive content data in multiple playing time periods of the target multimedia resource, where the configuration data of the target multimedia resource is used to represent whether each playing time period of the target multimedia resource contains interactive content data;
the first format conversion sub-module 952 is configured to perform format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, where all the interactive content data in the target playing time period form the interactive content data set of the target playing time period;
a second format conversion sub-module 953, configured to perform format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
the first compressing sub-module 954 is configured to compress the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, where the interactive content file has a corresponding version identifier.
In one possible implementation, the generating module 95 includes:
a third format conversion sub-module 955, configured to perform format conversion on the multiple interactive content data sets of the target multimedia resource respectively to obtain multiple subfiles of the target multimedia resource, where all the interactive content data in multiple playing time periods of the target multimedia resource respectively form multiple interactive content data sets;
a fourth format conversion submodule 956, configured to perform format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, where the configuration data of the target multimedia resource is used to characterize whether each playing time segment of the target multimedia resource contains interactive content data;
a second compression sub-module 957, configured to compress the multiple subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, where the interactive content file has a corresponding version identifier.
In one possible implementation, the apparatus further includes:
an interactive content file sending module 61, configured to send the interactive content file to a second server;
and a file address storage module 62, configured to store the file address when receiving the file address sent by the second server.
Fig. 17 is a block diagram illustrating an apparatus 800 for interactive content processing according to an example embodiment. For example, the apparatus 800 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. 17, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a 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 808 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 device 800 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 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 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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 exemplary embodiment, the apparatus 800 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-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the device 800 to perform the above-described methods.
Fig. 18 is a block diagram illustrating an apparatus 1900 for interactive content processing according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to FIG. 18, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the apparatus 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (26)

1. An interactive content processing method, which is used for a terminal, includes:
when a local multimedia resource in a terminal starts to be played offline, judging whether a first interactive content file corresponding to the local multimedia resource exists in the terminal or not, wherein the first interactive content file comprises interactive content data of the local multimedia resource;
when a first interactive content file exists in the terminal and a loading condition is met, loading interactive content data in the first interactive content file in a playing interface of the local multimedia resource, wherein the loading condition comprises that the interactive content data contained in the first interactive content file is consistent with the interactive content data contained in a second interactive content file, and the second interactive content file is an interactive file which is stored in a first server and corresponds to the local multimedia resource.
2. The method of claim 1, further comprising:
sending a parameter acquisition request aiming at the interactive content of the local multimedia resource to a first server, wherein the parameter acquisition request comprises an identifier of the local multimedia resource, and the parameter acquisition request is used for acquiring a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
when a second version identification and a file address of the second interactive content file are received, judging whether the second version identification is the same as a first version identification of a first interactive content file in the terminal or not;
and when the second version identification is the same as the first version identification, judging that a loading condition is met.
3. The method of claim 2, further comprising:
when the first interactive content file does not exist in the terminal or the second version identification is different from the first version identification, judging whether the network state of the terminal meets the downloading condition of the interactive content file or not;
when the network state of the terminal meets the downloading condition, sending a downloading request of a second interactive content file to a second server according to the file address, wherein the second interactive content file comprises interactive content data of the local multimedia resource;
and when the second interactive content file is received, loading the interactive content data in the second interactive content file in a playing interface of the local multimedia resource.
4. The method of claim 1, further comprising:
and when the local multimedia resource is deleted, deleting the first interactive content file.
5. An interactive content processing method, for a first server, comprising:
when a parameter acquisition request of a terminal for interactive content of a local multimedia resource in the terminal is received, determining a second version identifier and a file address of a second interactive content file of the local multimedia resource according to the identifier of the local multimedia resource, so that the terminal judges whether the interactive content data of the local multimedia resource is updated, wherein the file address comprises a storage address of the second interactive content file in a second server;
and sending the second version identification and the file address to the terminal.
6. The method of claim 5, further comprising:
in a polling time period, when interactive content data are added to a multimedia resource, storing an interactive content record corresponding to the newly added interactive content data into a list, wherein the interactive content record comprises an identifier of the multimedia resource corresponding to the interactive content data and a playing time corresponding to the interactive content data, and the list is used for storing the interactive content records of a plurality of multimedia resources;
when a polling time period is finished, determining a target multimedia resource with the quantity of interactive content data larger than or equal to a quantity threshold value of the polling time period from the plurality of multimedia resources according to the list, wherein the quantity threshold value of the polling time period is associated with the quantity of the interactive content data of the plurality of multimedia resources when the polling time period is started;
and generating an interactive content file of the target multimedia resource, wherein the interactive content file comprises interactive content data of the target multimedia resource and has a unique version identifier.
7. The method of claim 6, wherein each multimedia asset comprises a plurality of playing time segments, and the interactive content data in the playing time segments respectively form a plurality of interactive content data sets, wherein the method further comprises:
aiming at a first playing time period of a first multimedia resource, when a polling time period is finished, if newly added interactive content data exists in the first playing time period, all the interactive content data at the end of the polling time period in the first playing time period form a first interactive content data set, wherein the first multimedia resource is any one of a plurality of multimedia resources, and the first playing time period is any one of the plurality of playing time periods of the first multimedia resource;
replacing the initial interactive content data set at the beginning of the polling time period with the first interactive content data set.
8. The method of claim 6, further comprising:
determining first configuration data of a first multimedia resource at the end of a polling time period according to interactive content data of a plurality of playing time periods of the first multimedia resource, wherein the first configuration data is used for representing whether each playing time period of the first multimedia resource contains interactive content data;
replacing initial configuration data at the beginning of a polling time period with the first configuration data.
9. The method of claim 6, wherein the interactive content file comprises a plurality of subfiles and a configuration file,
wherein generating the interactive content file of the target multimedia resource comprises:
determining a target playing time period with interactive content data in a plurality of playing time periods of the target multimedia resource according to the configuration data of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains the interactive content data;
performing format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in the target playing time period form the interactive content data set of the target playing time period;
carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
and compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
10. The method of claim 6, wherein the interactive content file comprises a plurality of subfiles and a configuration file,
wherein, generating the interactive content file of each target multimedia resource comprises:
format conversion is carried out on the plurality of interactive content data sets of the target multimedia resource respectively to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in a plurality of playing time periods of the target multimedia resource respectively form a plurality of interactive content data sets;
carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains interactive content data;
and compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
11. The method of claim 6, further comprising:
sending the interactive content file to a second server;
and when receiving the file address sent by the second server, storing the file address.
12. An interactive content processing apparatus, comprising:
the first judgment module is used for judging whether a first interactive content file corresponding to a local multimedia resource exists in the terminal when the local multimedia resource in the terminal starts to be played off line, wherein the first interactive content file comprises interactive content data of the local multimedia resource;
the terminal comprises a first loading module and a second loading module, wherein the first loading module is used for loading interactive content data in a first interactive content file in a playing interface of the local multimedia resource when the first interactive content file exists in the terminal and a loading condition is met, the loading condition comprises that the interactive content data contained in the first interactive content file is consistent with the interactive content data contained in the second interactive content file, and the second interactive content file is an interactive file which is stored in a first server and corresponds to the local multimedia resource.
13. The apparatus of claim 12, further comprising:
a parameter obtaining request sending module, configured to send a parameter obtaining request for interactive content of the local multimedia resource to a first server, where the parameter obtaining request includes an identifier of the local multimedia resource, and the parameter obtaining request is used to obtain a second version identifier and a file address of a second interactive content file of the local multimedia resource in the first server;
the second judging module is used for judging whether the second version identification is the same as the first version identification of the first interactive content file in the terminal or not when the second version identification and the file address of the second interactive content file are received;
and the loading condition determining module is used for judging that the loading condition is met when the second version identification is the same as the first version identification.
14. The apparatus of claim 13, further comprising:
a third determining module, configured to determine whether a network state of the terminal meets a download condition of the interactive content file when the first interactive content file does not exist in the terminal or the second version identifier is different from the first version identifier;
a download request sending module, configured to send a download request of a second interactive content file to a second server according to the file address when a network state of the terminal meets a download condition, where the second interactive content file includes interactive content data of the local multimedia resource;
and the second loading module is used for loading the interactive content data in the second interactive content file in the playing interface of the local multimedia resource when the second interactive content file is received.
15. The apparatus of claim 12, further comprising:
and the deleting module is used for deleting the first interactive content file when the local multimedia resource is deleted.
16. An interactive content processing apparatus, comprising:
the determining module is used for determining a second version identifier and a file address of a second interactive content file of the local multimedia resource according to the identifier of the local multimedia resource when a parameter acquisition request of the terminal for the interactive content of the local multimedia resource in the terminal is received, so that the terminal judges whether the interactive content data of the local multimedia resource is updated, wherein the file address comprises a storage address of the second interactive content file in a second server;
and the sending module is used for sending the second version identification and the file address to the terminal.
17. The apparatus of claim 16, further comprising:
the system comprises a recording module, a processing module and a processing module, wherein the recording module is used for storing interactive content records corresponding to newly-added interactive content data into a list when the interactive content data are newly added to multimedia resources in a polling time period, the interactive content records comprise identifiers of the multimedia resources corresponding to the interactive content data and playing time corresponding to the interactive content data, and the list is used for storing the interactive content records of a plurality of multimedia resources;
a target multimedia resource determining module, configured to determine, according to the list, a target multimedia resource whose number of interactive content data is greater than or equal to a number threshold of the polling time period from the multiple multimedia resources when the polling time period ends, where the number threshold of the polling time period is associated with the number of interactive content data of the multiple multimedia resources when the polling time period starts;
and the generating module is used for generating an interactive content file of the target multimedia resource, wherein the interactive content file comprises interactive content data of the target multimedia resource and has a unique version identifier.
18. The apparatus of claim 17, wherein each multimedia asset comprises a plurality of playing time segments, and the interactive content data in the playing time segments respectively form a plurality of interactive content data sets, wherein the apparatus further comprises:
a data set forming module, configured to, for a first play time period of a first multimedia resource, when a polling time period is ended, if new interactive content data exists in the first play time period, form a first interactive content data set from all the interactive content data at the end of the polling time period in the first play time period, where the first multimedia resource is any one of a plurality of multimedia resources, and the first play time period is any one of the plurality of play time periods of the first multimedia resource;
a first replacement module for replacing the initial interactive content data set at the beginning of the polling time period with the first interactive content data set.
19. The apparatus of claim 17, further comprising:
the configuration data determining module is used for determining first configuration data of a first multimedia resource at the end of a polling time period according to interactive content data of a plurality of playing time periods of the first multimedia resource, wherein the first configuration data is used for representing whether each playing time period of the first multimedia resource contains interactive content data;
a second replacement module to replace the initial configuration data at the beginning of the polling time period with the first configuration data.
20. The apparatus of claim 17, wherein the interactive content file comprises a plurality of subfiles and a configuration file,
wherein the generating module comprises:
the target playing time period determining submodule is used for determining a target playing time period with interactive content data in a plurality of playing time periods of the target multimedia resource according to the configuration data of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains the interactive content data;
the first format conversion submodule is used for carrying out format conversion on the interactive content data set of the target playing time period to obtain a plurality of subfiles of the target multimedia resource, wherein all the interactive content data in the target playing time period form the interactive content data set of the target playing time period;
the second format conversion submodule is used for carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource;
and the first compression submodule is used for compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
21. The apparatus of claim 17, wherein the interactive content file comprises a plurality of subfiles and a configuration file,
wherein the generating module comprises:
the third format conversion submodule is used for respectively carrying out format conversion on a plurality of interactive content data sets of the target multimedia resource to obtain a plurality of subfiles of the target multimedia resource, wherein all interactive content data in a plurality of playing time periods of the target multimedia resource respectively form a plurality of interactive content data sets;
the fourth format conversion submodule is used for carrying out format conversion on the configuration data of the target multimedia resource to obtain a configuration file of the target multimedia resource, wherein the configuration data of the target multimedia resource is used for representing whether each playing time period of the target multimedia resource contains interactive content data or not;
and the second compression submodule is used for compressing the plurality of subfiles and the configuration file to obtain an interactive content file of the target multimedia resource, wherein the interactive content file has a corresponding version identifier.
22. The apparatus of claim 17, further comprising:
the interactive content file sending module is used for sending the interactive content file to a second server;
and the file address storage module is used for storing the file address when receiving the file address sent by the second server.
23. An interactive content processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method of any one of claims 1 to 4.
24. An interactive content processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method of any one of claims 5 to 11.
25. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 1 to 4.
26. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 5 to 11.
CN201810620374.1A 2018-06-15 2018-06-15 Interactive content processing method, device and storage medium Active CN110611839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810620374.1A CN110611839B (en) 2018-06-15 2018-06-15 Interactive content processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810620374.1A CN110611839B (en) 2018-06-15 2018-06-15 Interactive content processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110611839A CN110611839A (en) 2019-12-24
CN110611839B true CN110611839B (en) 2021-10-29

Family

ID=68888172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810620374.1A Active CN110611839B (en) 2018-06-15 2018-06-15 Interactive content processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110611839B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697693B (en) * 2022-03-21 2023-09-19 联想(北京)有限公司 Data processing method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244048A (en) * 2014-10-15 2014-12-24 飞狐信息技术(天津)有限公司 Video playing method and video client
CN105451087A (en) * 2015-12-14 2016-03-30 广州弹幕网络科技有限公司 Pushing method, terminals, historical data server and system for barrage information
CN106210773A (en) * 2016-08-19 2016-12-07 暴风集团股份有限公司 The method and system of barrage are play in local video
CN106792225A (en) * 2016-11-09 2017-05-31 武汉斗鱼网络科技有限公司 front end barrage control method and device
CN107872715A (en) * 2017-11-09 2018-04-03 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9485542B2 (en) * 2013-03-15 2016-11-01 Arris Enterprises, Inc. Method and apparatus for adding and displaying an inline reply within a video message
CA3013945C (en) * 2016-02-17 2021-11-02 Arris Enterprises Llc A method for delivering and presenting targeted advertisements without the need for time synchronized content streams

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244048A (en) * 2014-10-15 2014-12-24 飞狐信息技术(天津)有限公司 Video playing method and video client
CN105451087A (en) * 2015-12-14 2016-03-30 广州弹幕网络科技有限公司 Pushing method, terminals, historical data server and system for barrage information
CN106210773A (en) * 2016-08-19 2016-12-07 暴风集团股份有限公司 The method and system of barrage are play in local video
CN106792225A (en) * 2016-11-09 2017-05-31 武汉斗鱼网络科技有限公司 front end barrage control method and device
CN107872715A (en) * 2017-11-09 2018-04-03 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information

Also Published As

Publication number Publication date
CN110611839A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN108093315B (en) Video generation method and device
CN112738623B (en) Video file generation method, device, terminal and storage medium
CN105183513A (en) Application recommendation method and apparatus
CN110519655B (en) Video editing method, device and storage medium
CN109039872B (en) Real-time voice information interaction method and device, electronic equipment and storage medium
CN108495168B (en) Bullet screen information display method and device
CN107122430B (en) Search result display method and device
CN110493627B (en) Multimedia content synchronization method and device
CN111259246A (en) Information pushing method and device, electronic equipment and storage medium
CN110913244A (en) Video processing method and device, electronic equipment and storage medium
CN112188230A (en) Virtual resource processing method and device, terminal equipment and server
CN108174269B (en) Visual audio playing method and device
CN106991018B (en) Interface skin changing method and device
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN113596175A (en) Scene synchronization method, terminal, server and system
CN108521579B (en) Bullet screen information display method and device
CN110620956A (en) Live broadcast virtual resource notification method and device, electronic equipment and storage medium
CN110611839B (en) Interactive content processing method, device and storage medium
CN108574860B (en) Multimedia resource playing method and device
CN112333238A (en) Data processing method, device, equipment and storage medium
CN111767006B (en) Data processing method and device
CN106791925B (en) Video generation method and device
CN110460873B (en) Method and device for generating video on demand
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN106851418B (en) Video recommendation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200519

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: Youku network technology (Beijing) Co., Ltd

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant