CN116886964B - OTT content timing release and update processing method and device - Google Patents

OTT content timing release and update processing method and device Download PDF

Info

Publication number
CN116886964B
CN116886964B CN202311136406.8A CN202311136406A CN116886964B CN 116886964 B CN116886964 B CN 116886964B CN 202311136406 A CN202311136406 A CN 202311136406A CN 116886964 B CN116886964 B CN 116886964B
Authority
CN
China
Prior art keywords
content
cache
management module
redis
message
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
CN202311136406.8A
Other languages
Chinese (zh)
Other versions
CN116886964A (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.)
Shenzhen SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN202311136406.8A priority Critical patent/CN116886964B/en
Publication of CN116886964A publication Critical patent/CN116886964A/en
Application granted granted Critical
Publication of CN116886964B publication Critical patent/CN116886964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and a device for processing OTT content timing release and update, wherein the method comprises the following steps: after checking a plurality of corresponding key data from the Mysql database at regular time through a timer module, sending a corresponding message to a channel corresponding to the Redis cache middleware under the condition that the current time is detected to reach a preset time point; the method comprises the steps of regularly caching the on-demand content to be on-demand or the live broadcast content to be on-demand, which is inquired from a database, into a Redis cache middleware through a cache management module, deleting the cached content through the cache management module or updating the cached content through the cache management module; and carrying out assembling processing on the corresponding OTT content based on the received signaling request of the client through the content distribution and authentication module to obtain corresponding data with the appointed data format, so as to return the corresponding data with the appointed data format to the client.

Description

OTT content timing release and update processing method and device
Technical Field
The invention relates to the technical field of audio and video, in particular to a method and a device for processing OTT content timing release and update.
Background
In recent years, with the development of the internet, people have become more and more convenient and faster to watch videos through the internet. Challenges are often encountered in the distribution and content update of some popular movies and live broadcasts, such as the update of episode content or live program listings, but clients need a period of time to update, and there is a certain delay from the distribution of content to the update of clients, and the client experience is affected to a certain extent. A greater challenge is how the popular content responds faster in a short time, and how the same server configuration receives more response requests at the same time, requiring a completely new set of content distribution and update policies.
How to provide a new method for processing The timing release and update of OTT (Over-The-Top) content, which is to adopt a brand new strategy for releasing and updating The content to realize faster response in a short time and to realize that The same server is configured to receive more response requests at The same time, is a technical problem to be solved.
Disclosure of Invention
Based on this, it is necessary to provide a processing method, apparatus, storage medium, electronic device and computer program product for the timing distribution and update of OTT content, aiming at the defect that the existing method cannot realize faster response in a short time.
In a first aspect, an embodiment of the present application provides a method for processing OTT content timing publishing and updating, where the method includes:
the OTT content timing release and update processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, wherein the processing strategy is realized by the OTT content timing release and update processing device;
injecting content metadata related to on-demand content or live content through the content management module, and editing corresponding OTT content through the content management module;
after checking a plurality of corresponding key data from a Mysql database at regular time through the timer module, under the condition that the current time is detected to reach a preset time point, sending a corresponding message to a channel corresponding to the Redis cache middleware, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware;
The on-demand content or the live broadcast content to be on-demand, which is inquired from the database, is cached to the Redis cache middleware at regular time through the cache management module, and the cached content is deleted through the cache management module or updated through the cache management module;
and carrying out assembling processing on the corresponding OTT content based on the received signaling request of the client through the content distribution and authentication module to obtain corresponding data with a contracted data format so as to return the corresponding data with the contracted data format to the client.
Preferably, the injecting, by the content management module, content metadata related to on-demand content or live content includes:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
And storing the content metadata into the Mysql database.
Preferably, the editing processing of the corresponding OTT content by the content management module includes:
acquiring OTT content to be updated;
after receiving an update instruction for updating the OTT content to be updated, editing the OTT content to be updated;
after the content management module sends a first message to a first channel of the Redis cache middleware, the cache management module subscribed to the same channel of the Redis and the content distribution and authentication module subscribed to the same channel of the Redis perform clearing processing on first cache data corresponding to the first message according to the first message.
Preferably, the preset time point includes a preset content release time point and a preset content off-shelf time point, and after checking a plurality of corresponding key data from the Mysql database at regular time by the timer module, if it is detected that the current time has reached the preset time point, sending a corresponding message to a channel corresponding to the Redis cache middleware, including:
reading the plurality of key data, wherein the plurality of key data at least comprises corresponding on-demand content, corresponding live broadcast content, corresponding on-shelf time and corresponding off-shelf time;
Sending a second message to a second channel of the Redis cache middleware under the condition that the current time reaches the preset content release time point is detected; or,
and under the condition that the current time reaches the preset content off-shelf time point, sending a third message to a second channel of the Redis cache middleware.
Preferably, the deleting the cached content by the cache management module includes:
when the content management module is detected to update the content, after a corresponding message is sent from a first channel of the Redis cache middleware, the content cache management module subscribed to the first channel receives a corresponding fourth message for deleting the content, wherein the fourth message corresponds to a first message body;
acquiring a corresponding first content identifier from the first message body, and replacing a second content identifier of a corresponding cache key by the first content identifier;
and calling a cache clearing command of the Redis, and responding to the cache clearing command of the Redis, and clearing cache content data corresponding to the second content identifier of the cache key.
Preferably, the updating the cached content by the cache management module includes:
When the timer module detects that the content needs to be released, after a corresponding message is sent from a second channel of the Redis cache middleware, the content cache management module subscribed to the second channel receives a corresponding fifth message for updating the content, wherein the fifth message corresponds to a second message body;
acquiring a corresponding third content identifier from the second message body;
changing the distribution state of the content based on the third content identification.
In a second aspect, an embodiment of the present application provides a processing apparatus for timing distribution and update of OTT content, where the apparatus includes:
the OTT content timing issuing and updating processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, wherein the processing strategy is realized by the OTT content timing issuing and updating processing device;
the content management module is used for injecting content metadata related to the on-demand content or the live content and editing corresponding OTT content;
The timer module is used for sending a corresponding message to a channel corresponding to the Redis cache middleware after checking a plurality of corresponding key data from the Mysql database at fixed time and detecting that the current time reaches a preset time point, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware;
the cache management module is used for caching the on-demand content to be on-demand or the live broadcast content to be on-demand, which is queried from the database, into the Redis cache middleware at regular time, and deleting the cached content or updating the cached content;
the content distribution and authentication module is configured to perform an assembly process on the corresponding OTT content based on the received signaling request of the client, so as to obtain corresponding data with a contracted data format, and return the corresponding data with the contracted data format to the client.
Preferably, the content management module is specifically configured to:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
And storing the content metadata into the Mysql database.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for performing the above-described method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method steps described above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the above-described method steps.
In the embodiment of the application, a processing strategy for regularly publishing and updating OTT content is configured, the processing strategy is realized through an OTT content regularly publishing and updating processing device, the OTT content regularly publishing and updating processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, and the processing strategy can realize quick response in a short time; injecting content metadata related to the on-demand content or the live content through a content management module, and editing corresponding OTT content through the content management module; after checking a plurality of corresponding key data from the Mysql database at regular time through a timer module, under the condition that the current time is detected to reach a preset time point, sending a corresponding message to a channel corresponding to the Redis cache middleware, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware; the method comprises the steps of regularly caching the on-demand content to be on-demand or the live broadcast content to be on-demand, which is inquired from a database, into a Redis cache middleware through a cache management module, deleting the cached content through the cache management module or updating the cached content through the cache management module; and assembling the corresponding OTT content based on the received signaling request of the client through the content distribution and authentication module to obtain corresponding data with the appointed data format, so as to return the corresponding data with the appointed data format to the client. According to the OTT content timing release and update processing method, due to the fact that the processing strategy for timing release and update of OTT content is introduced, the processing strategy can achieve quick response in a short time, the processing strategy is achieved through the OTT content timing release and update processing device, the OTT content timing release and update processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, the same server can be configured to receive more response requests in the same time period due to the fact that the processing strategy can achieve quick response in a short time, and the user experience is greatly improved due to the fact that delay phenomena caused by slow response requests are reduced.
Drawings
Exemplary embodiments of the present invention may be more fully understood by reference to the following drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the application, and not constitute a limitation of the invention. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 is a flowchart of a method for processing OTT content timing distribution and update according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of a processing system for timing distribution and update of OTT content in a specific application scenario;
fig. 3 is a schematic flow chart of data processing performed by the content distribution and authentication module in the OTT content timing distribution and update processing method in a specific application scenario;
fig. 4 is a schematic structural diagram of an OTT content timing publishing and updating processing apparatus 400 according to an exemplary embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
In addition, the terms "first" and "second" etc. are used to distinguish different objects and are not used to describe a particular order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or elements but may, in the alternative, include other steps or elements not expressly listed or inherent to such process, method, article, or device.
The embodiments of the present application provide a method and apparatus for processing OTT content timing distribution and update, an electronic device, and a computer readable medium, and the following description is made with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for processing OTT content timing distribution and update provided by some embodiments of the present application is shown, where the method for processing OTT content timing distribution and update is applied to a server, as shown in fig. 1, and may include the following steps:
Step S101: the OTT content timing release and update processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, and the processing strategy can realize quick response in a short time.
Fig. 2 is a schematic diagram of a processing system for timing distribution and update of OTT content in a specific application scenario.
As shown in fig. 2, the OTT content timing issuing and updating processing system includes a processing device for timing issuing and updating of OTT content on the left side (the processing device for timing issuing and updating of OTT content is applied to a server) and a client on the right side, where the processing device for timing issuing and updating of OTT content includes a content management module, a content distribution and authentication module, a cache management module, a timer module, and a Redis cache middleware.
A content management module: metadata injection, content arrangement and the like of on-demand and live content are responsible;
content distribution and authentication module: the method comprises the steps of receiving a signaling request of a client, assembling content and returning the content to the client according to a contracted data format;
And the cache management module: the method is responsible for inquiring and caching the content from the database to the Redis cache middleware at regular time, and is also responsible for deleting the content cached by the Redis;
a timer module: the method is responsible for regularly searching the on-shelf time and the off-shelf time of the on-demand and live broadcast content, and discovers that the on-shelf or off-shelf content is required to issue a designated message to the Redis cache middleware;
redis cache middleware: both as a cache database for content storage and as a channel for message transmission.
Step S102: injecting content metadata related to the on-demand content or the live content through a content management module, and editing corresponding OTT content through the content management module; in this way, the local cache data in the application can be deleted in time by adopting the Redis publishing/subscribing mechanism for message transmission.
In one possible implementation, the content metadata related to the on-demand content or the live content is injected by the content management module, including the following steps:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
The content metadata is stored in a Mysql database.
In one possible implementation manner, the editing process is performed on the corresponding OTT content by the content management module, including the following steps:
acquiring OTT content to be updated;
after receiving an update instruction for updating OTT content to be updated, editing the OTT content to be updated;
after the content management module sends the first message to the first channel of the Redis cache middleware, the cache management module subscribed to the same channel of the Redis and the content distribution and authentication module subscribed to the same channel of the Redis perform clearing processing on the first cache data corresponding to the first message according to the first message.
Step S103: after checking a plurality of corresponding key data from the Mysql database at regular time through the timer module, under the condition that the current time is detected to reach a preset time point, sending a corresponding message to a channel corresponding to the Redis cache middleware, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware.
In one possible implementation manner, the preset time point includes a preset content release time point and a preset content off-shelf time point, after checking a plurality of corresponding key data from the Mysql database at regular time by a timer module, if it is detected that the current time has reached the preset time point, a corresponding message is sent to a channel corresponding to the Redis cache middleware, including the following steps:
Reading a plurality of key data, wherein the plurality of key data at least comprise corresponding on-demand content, corresponding live broadcast content, corresponding on-shelf time and corresponding off-shelf time;
under the condition that the current time reaches the preset content release time point, sending a second message to a second channel of the Redis cache middleware; or,
and under the condition that the current time reaches the preset content off-shelf time point, sending a third message to a second channel of the Redis cache middleware.
In one possible implementation manner, the deletion processing is performed on the cached content through the cache management module, and the method comprises the following steps:
when the content management module is detected to update the content, after a corresponding message is sent from a first channel of the Redis cache middleware, the content cache management module subscribed to the first channel receives a corresponding fourth message for deleting the content, wherein the fourth message corresponds to a first message body;
acquiring a corresponding first content identifier from the first message body, and replacing a second content identifier of a corresponding cache key by the first content identifier;
and calling a cache clearing command of the Redis, and responding to the cache clearing command of the Redis, and clearing the cache content data corresponding to the second content identifier of the cache key.
It should be noted that, the first channel of the dis cache middleware in step S103 corresponds to channel 1 in fig. 2, and the second channel of the dis cache middleware in step S103 corresponds to channel 2 in fig. 2.
Step S104: the method comprises the steps of regularly caching the on-demand content to be on-demand or the live broadcast content to be on-demand, which is inquired from a database, into a Redis cache middleware through a cache management module, deleting the cached content through the cache management module or updating the cached content through the cache management module; therefore, the load pressure of Mysql can be effectively reduced by adopting the strategy of local cache and Redis cache, so that the throughput and performance of the service are greatly improved.
In one possible implementation manner, the updating process is performed on the cached content through the cache management module, and the method comprises the following steps:
when the timer module detects that the content needs to be released, after a corresponding message is sent from a second channel of the Redis cache middleware, the content cache management module subscribed to the second channel receives a corresponding fifth message for updating the content, wherein the fifth message corresponds to a second message body;
Acquiring a corresponding third content identifier from the second message body;
the distribution state of the content is changed based on the third content identification.
It should be noted that, in the actual application scenario, the cache management module is responsible for regularly caching the on-demand content and the live content from the database query to the Redis cache middleware, where the cached key is bo (module name): vod (sub-module name): detail (classification): 2E312F36A12742B6858D4C06A007EDEE (content ID), value is the queried content data.
Step S105: the method comprises the steps that based on a received signaling request of a client, corresponding OTT content is assembled through a content distribution and authentication module, corresponding data with a contracted data format are obtained, and the corresponding data with the contracted data format are returned to the client; in this way, after a content update, the update data can be synchronized to the client in time.
Fig. 3 is a schematic flow chart of data processing performed by the content distribution and authentication module in the OTT content timing distribution and update processing method in a specific application scenario.
The flow of data processing by the content distribution and authentication module in the OTT content timing distribution and update processing method shown in fig. 3 includes the following steps:
Step a1: when the client requests the content from the content distribution and authentication module, the content distribution and authentication module firstly searches whether the local Ehcache cache has cached data, if so, the data is directly returned, and if not, the step a2 is entered.
Step a2: and (3) searching whether the Redis cache middleware has cache data, synchronizing the data in the Redis into a local Ehcache cache if the Redis cache middleware has cache data, and returning the data, otherwise, entering a step a3.
Step a3: when the designated data do not exist in the Ehcche and the Redis cache middleware, the data are fetched from the Mysql database, then synchronously stored into the Redis and the Ehcche, and finally returned.
Step a4: when the content management module updates the content, a message of the content update of channel 1 (corresponding to the first channel of the Redis cache middleware in step S103) is acquired from the Redis cache middleware, and after the cache key is constructed according to the splicing rule of the cache, the local cache of the content distribution and authentication module needs to be deleted.
Step a5: when the timer module finds that the on-demand and live content is on-shelf or off-shelf, the timer module acquires the information of on-shelf or off-shelf of the content of channel 2 (corresponding to the second channel of the Redis cache middleware in step S103) from the Redis cache middleware, and after constructing a cache key according to the splicing rule of the cache, the local cache of the content distribution and authentication module needs to be deleted.
In one possible implementation manner, the updating process is performed on the cached content through the cache management module, and the method comprises the following steps:
when the timer module detects that the content needs to be released, after a corresponding message is sent from a second channel of the Redis cache middleware, the content cache management module subscribed to the second channel receives a corresponding fifth message for updating the content, wherein the fifth message corresponds to a second message body;
acquiring a corresponding third content identifier from the second message body;
the distribution state of the content is changed based on the third content identification.
According to the OTT content timing release and update processing method, due to the fact that the processing strategy for timing release and update of OTT content is introduced, the processing strategy can achieve quick response in a short time, the processing strategy is achieved through the OTT content timing release and update processing device, the OTT content timing release and update processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, the same server can be configured to receive more response requests in the same time period due to the fact that the processing strategy can achieve quick response in a short time, and the user experience is greatly improved due to the fact that delay phenomena caused by slow response requests are reduced. Secondly, after content updating, updated data can be synchronized to a client in time; furthermore, as the strategy of local cache and Redis cache is adopted, the load pressure of Mysql can be effectively reduced, thereby greatly improving the throughput and performance of service; in addition, as the Redis publishing/subscribing mechanism is adopted for message transmission, the local cache data in the application can be deleted in time.
In the foregoing embodiment, a method for processing the timing release and update of the OTT content is provided, and correspondingly, the application further provides a device for processing the timing release and update of the OTT content. The processing device for the timed release and update of the OTT content provided by the embodiment of the application can implement the processing method for the timed release and update of the OTT content, and the processing device for the timed release and update of the OTT content can be realized by software, hardware or a combination of software and hardware. For example, the OTT content timing issue and update processing device may include integrated or separate functional modules or units to perform the corresponding steps in the methods described above.
Referring to fig. 4, a schematic diagram of a processing apparatus for timing distribution and update of OTT content according to some embodiments of the present application is shown. The processing and fetching device is applied to a server, and the device embodiment is basically similar to the method embodiment, so that the description is simpler, and relevant parts are referred to in the part of the description of the method embodiment. The device embodiments described below are merely illustrative.
As shown in fig. 4, the OTT content timing publishing and updating processing apparatus 400 may include:
The configuration module 401 is configured to configure a processing policy for regularly publishing and updating OTT content, where the processing policy is implemented by an OTT content regularly publishing and updating processing device, and the OTT content regularly publishing and updating processing device includes a content management module 402, a content distribution and authentication module 405, a cache management module 404, a timer module 403, and a Redis cache middleware 406, where the processing policy can implement quick response in a short time;
the content management module 402 is configured to perform injection processing on content metadata related to the on-demand content or the live content, and perform editing processing on corresponding OTT content;
a timer module 403, configured to send a corresponding message to a channel corresponding to the dis cache middleware after checking a corresponding plurality of key data from the Mysql database at regular time, where the channel corresponding to the dis cache middleware includes a first channel of the dis cache middleware and a second channel of the dis cache middleware when it is detected that the current time has reached a preset time point;
the cache management module 404 is configured to periodically cache the on-demand content to be requested or the live content to be requested, which is queried from the database, into the Redis cache middleware, and delete the cached content or update the cached content;
The content distribution and authentication module 405 is configured to perform an assembly process on the corresponding OTT content based on the received signaling request of the client, so as to obtain corresponding data with a contracted data format, and return the corresponding data with the contracted data format to the client.
In some implementations of the embodiments of the present application, the content management module 402 is specifically configured to:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
the content metadata is stored in a Mysql database.
In some implementations of the embodiments of the present application, the content management module 402 is specifically configured to:
acquiring OTT content to be updated;
after receiving an update instruction for updating OTT content to be updated, editing the OTT content to be updated;
after the content management module sends the first message to the first channel of the Redis cache middleware, the cache management module subscribed to the same channel of the Redis and the content distribution and authentication module subscribed to the same channel of the Redis perform clearing processing on the first cache data corresponding to the first message according to the first message.
In some implementations of the embodiments of the present application, the preset time point includes a preset content release time point and a preset content off-shelf time point, and the timer module 403 is specifically configured to:
reading a plurality of key data, wherein the plurality of key data at least comprise corresponding on-demand content, corresponding live broadcast content, corresponding on-shelf time and corresponding off-shelf time;
under the condition that the current time reaches the preset content release time point, sending a second message to a second channel of the Redis cache middleware; or,
and under the condition that the current time reaches the preset content off-shelf time point, sending a third message to a second channel of the Redis cache middleware.
In some implementations of the embodiments of the present application, the cache management module 404 is specifically configured to:
when the content management module is detected to update the content, after a corresponding message is sent from a first channel of the Redis cache middleware, the content cache management module subscribed to the first channel receives a corresponding fourth message for deleting the content, wherein the fourth message corresponds to a first message body;
acquiring a corresponding first content identifier from the first message body, and replacing a second content identifier of a corresponding cache key by the first content identifier;
And calling a cache clearing command of the Redis, and responding to the cache clearing command of the Redis, and clearing the cache content data corresponding to the second content identifier of the cache key.
In some implementations of the embodiments of the present application, the cache management module 404 is specifically configured to:
when the timer module detects that the content needs to be released, after a corresponding message is sent from a second channel of the Redis cache middleware, the content cache management module subscribed to the second channel receives a corresponding fifth message for updating the content, wherein the fifth message corresponds to a second message body;
acquiring a corresponding third content identifier from the second message body;
the distribution state of the content is changed based on the third content identification.
The OTT content timing publishing and updating processing device 400 provided in the embodiment of the present application in some implementations of the embodiment of the present application has the same beneficial effects as the OTT content timing publishing and updating processing method provided in the foregoing embodiment of the present application because of the same inventive concept.
A third aspect of the present invention provides a computer-readable storage medium, in which a OTT content timing distribution and update processing method program is included, which when executed by a processor, implements the steps of a TT content timing distribution and update processing method as described in any one of the above.
The invention discloses a processing method, a device and a readable storage medium for timing release and update of OTT content, wherein a processing strategy for timing release and update of OTT content is introduced, the processing strategy can realize quick response in a short time, the processing strategy is realized through the processing device for timing release and update of OTT content, the processing device for timing release and update of OTT content comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, and the processing strategy can realize quick response in a short time, so that more response requests can be received in the same time period by the same server configuration, and the delay phenomenon caused by slow response requests is reduced, thereby greatly improving the user experience. Secondly, after content updating, updated data can be synchronized to a client in time; furthermore, as the strategy of local cache and Redis cache is adopted, the load pressure of Mysql can be effectively reduced, thereby greatly improving the throughput and performance of service; in addition, as the Redis publishing/subscribing mechanism is adopted for message transmission, the local cache data in the application can be deleted in time.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the embodiments, and are intended to be included within the scope of the claims and description.

Claims (9)

1. The method for processing the timed release and update of OTT content is characterized by comprising the following steps:
the OTT content timing release and update processing device comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, wherein the processing strategy is realized by the OTT content timing release and update processing device;
Injecting content metadata related to on-demand content or live content through the content management module, and editing corresponding OTT content through the content management module;
the editing processing of the corresponding OTT content by the content management module includes:
acquiring OTT content to be updated;
after receiving an update instruction for updating the OTT content to be updated, editing the OTT content to be updated;
after the content management module sends a first message to a first channel of the Redis cache middleware, the cache management module subscribed to the same channel of the Redis and the content distribution and authentication module subscribed to the same channel of the Redis perform clearing processing on first cache data corresponding to the first message according to the first message;
after checking a plurality of corresponding key data from a Mysql database at regular time through the timer module, under the condition that the current time is detected to reach a preset time point, sending a corresponding message to a channel corresponding to the Redis cache middleware, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware; the plurality of key data at least comprises corresponding on-demand content, corresponding live content, corresponding on-shelf time and corresponding off-shelf time;
The on-demand content or the live broadcast content to be on-demand, which is inquired from the database, is cached to the Redis cache middleware at regular time through the cache management module, and the cached content is deleted through the cache management module or updated through the cache management module;
and carrying out assembling processing on the corresponding OTT content based on the received signaling request of the client through the content distribution and authentication module to obtain corresponding data with a contracted data format so as to return the corresponding data with the contracted data format to the client.
2. The processing method according to claim 1, wherein the injecting, by the content management module, content metadata related to on-demand content or live content includes:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
And storing the content metadata into the Mysql database.
3. The processing method according to claim 1, wherein the preset time point includes a preset content release time point and a preset content off-shelf time point, and the sending, after checking the corresponding plurality of key data from the Mysql database by the timer module at regular time, the corresponding message to the channel corresponding to the Redis cache middleware if it is detected that the current time has reached the preset time point includes:
reading the plurality of critical data;
sending a second message to a second channel of the Redis cache middleware under the condition that the current time reaches the preset content release time point is detected; or,
and under the condition that the current time reaches the preset content off-shelf time point, sending a third message to a second channel of the Redis cache middleware.
4. The processing method according to claim 1, wherein the deleting the cached content by the cache management module includes:
when the content management module is detected to update the content, after the first channel of the Redis cache middleware sends a corresponding message, the content cache management module subscribed to the first channel receives a corresponding fourth message for deleting the content, wherein the fourth message corresponds to the first message body;
Acquiring a corresponding first content identifier from the first message body, and replacing a second content identifier of a corresponding cache key by the first content identifier;
and calling a cache clearing command of the Redis, and responding to the cache clearing command of the Redis, and clearing cache content data corresponding to the second content identifier of the cache key.
5. The processing method according to claim 1, wherein the updating the cached content by the cache management module includes:
when the timer module detects that the content needs to be released, after the second channel of the Redis cache middleware sends a corresponding message, the content cache management module subscribed to the second channel receives a corresponding fifth message for updating the content, wherein the fifth message corresponds to a second message body;
acquiring a corresponding third content identifier from the second message body;
changing the distribution state of the content based on the third content identification.
6. A processing device for timing distribution and update of OTT content, the device comprising:
the OTT content timing issuing and updating processing device further comprises a content management module, a content distribution and authentication module, a cache management module, a timer module and a Redis cache middleware, wherein the processing strategy is used for realizing quick response in a short time;
The content management module is used for injecting content metadata related to the on-demand content or the live content and editing corresponding OTT content;
the content management module is specifically configured to:
acquiring OTT content to be updated;
after receiving an update instruction for updating the OTT content to be updated, editing the OTT content to be updated;
after the content management module sends a first message to a first channel of the Redis cache middleware, the cache management module subscribed to the same channel of the Redis and the content distribution and authentication module subscribed to the same channel of the Redis perform clearing processing on first cache data corresponding to the first message according to the first message;
the timer module is used for sending a corresponding message to a channel corresponding to the Redis cache middleware after checking a plurality of corresponding key data from the Mysql database at fixed time and detecting that the current time reaches a preset time point, wherein the channel corresponding to the Redis cache middleware comprises a first channel of the Redis cache middleware and a second channel of the Redis cache middleware; the plurality of key data at least comprises corresponding on-demand content, corresponding live content, corresponding on-shelf time and corresponding off-shelf time;
The cache management module is used for caching the on-demand content to be on-demand or the live broadcast content to be on-demand, which is queried from the database, into the Redis cache middleware at regular time, and deleting the cached content or updating the cached content;
the content distribution and authentication module is configured to perform an assembly process on the corresponding OTT content based on the received signaling request of the client, so as to obtain corresponding data with a contracted data format, and return the corresponding data with the contracted data format to the client.
7. The processing device according to claim 6, wherein the content management module is specifically configured to:
injecting corresponding OTT content into the content management module, and performing encoding and transcoding according to target requirements;
configuring corresponding content metadata, wherein the content metadata at least comprises a content name of corresponding on-demand content, a content name of corresponding live broadcast content, corresponding content introduction, corresponding time to put on shelf, corresponding time to put off shelf and whether to issue or not;
and storing the content metadata into the Mysql database.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any of the preceding claims 1 to 5.
9. An electronic device, the electronic device comprising:
a processor;
a memory for storing executable instructions of the processor;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method of any one of the preceding claims 1 to 5.
CN202311136406.8A 2023-09-05 2023-09-05 OTT content timing release and update processing method and device Active CN116886964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311136406.8A CN116886964B (en) 2023-09-05 2023-09-05 OTT content timing release and update processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311136406.8A CN116886964B (en) 2023-09-05 2023-09-05 OTT content timing release and update processing method and device

Publications (2)

Publication Number Publication Date
CN116886964A CN116886964A (en) 2023-10-13
CN116886964B true CN116886964B (en) 2023-12-22

Family

ID=88259056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311136406.8A Active CN116886964B (en) 2023-09-05 2023-09-05 OTT content timing release and update processing method and device

Country Status (1)

Country Link
CN (1) CN116886964B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618805A (en) * 2013-11-01 2015-05-13 中国移动通信集团公司 Video-on-demand method and video-on-demand equipment
CN115002507A (en) * 2022-07-29 2022-09-02 飞狐信息技术(天津)有限公司 Video data updating method, device, equipment and readable storage medium
CN115189813A (en) * 2021-03-22 2022-10-14 中国电信股份有限公司 OTT multicast method, system, device, multicast proxy and multicast server
CN115455058A (en) * 2022-09-21 2022-12-09 平安科技(深圳)有限公司 Cache data processing method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9781492B2 (en) * 2015-07-17 2017-10-03 Ever Curious Corporation Systems and methods for making video discoverable

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618805A (en) * 2013-11-01 2015-05-13 中国移动通信集团公司 Video-on-demand method and video-on-demand equipment
CN115189813A (en) * 2021-03-22 2022-10-14 中国电信股份有限公司 OTT multicast method, system, device, multicast proxy and multicast server
CN115002507A (en) * 2022-07-29 2022-09-02 飞狐信息技术(天津)有限公司 Video data updating method, device, equipment and readable storage medium
CN115455058A (en) * 2022-09-21 2022-12-09 平安科技(深圳)有限公司 Cache data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN116886964A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US20200296151A1 (en) Downloading Media Objects
EP3289765B1 (en) Content delivery network video content invalidation through adaptive bitrate manifest manipulation
US20200336769A1 (en) Video Live Broadcast Method and Apparatus
US9961395B2 (en) Video caching
US9860335B2 (en) Method, device and system for delivering live content
EP3022708B1 (en) Content source discovery
US8838725B2 (en) Internet cache subscription for wireless mobile users
CN103222272A (en) Systems and methods for video cache indexing
EP3355549B1 (en) Data storage method, nonvolatile computer storage medium, electronic equipment, open capability entity, and base station
CN101202882B (en) Method, system for transmitting medium resource and set-top box
CN104301741A (en) Data live broadcast system and method
CN111436009B (en) Real-time video stream transmission and display method and transmission and play system
CN101917454B (en) Method and device for synchronizing EPG (Error Pattern Generator) files in IPTV (Internet Protocol Television)
US20170289213A1 (en) System and methods for content streaming with a content buffer
CN110895515A (en) Memory cache management method, multimedia server and computer storage medium
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN116886964B (en) OTT content timing release and update processing method and device
CN112995783A (en) Advertisement insertion method, electronic device and storage medium
CN111182331A (en) Media data slicing method, system and storage medium
CN102172035A (en) Manufacturing method and system of audio special
CN109729387A (en) Playback method and system based on the network direct broadcasting of HLS protocol after fault recovery
CN110049360B (en) Cross-platform content control method, device, terminal, server and storage medium
KR101591534B1 (en) Peer to Peer Transmittance System for Hierarchical Tracker and Tracker Apparatus therefor
CN107241619B (en) Media asset content synchronization method and device
CN108268486B (en) Multimedia content association and playing method and device, and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant