CN114679609B - Data processing method, device and computer equipment - Google Patents

Data processing method, device and computer equipment Download PDF

Info

Publication number
CN114679609B
CN114679609B CN202110519863.XA CN202110519863A CN114679609B CN 114679609 B CN114679609 B CN 114679609B CN 202110519863 A CN202110519863 A CN 202110519863A CN 114679609 B CN114679609 B CN 114679609B
Authority
CN
China
Prior art keywords
patch
advertisement data
server
target video
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
CN202110519863.XA
Other languages
Chinese (zh)
Other versions
CN114679609A (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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Cloud Computing Beijing 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 Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Cloud Computing Beijing Co Ltd
Priority to CN202110519863.XA priority Critical patent/CN114679609B/en
Publication of CN114679609A publication Critical patent/CN114679609A/en
Application granted granted Critical
Publication of CN114679609B publication Critical patent/CN114679609B/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/254Management at additional data server, e.g. shopping server, rights management server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • 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/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • 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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Business, Economics & Management (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data processing method, a data processing device and computer equipment. The method can be applied to advertisement pushing scenes based on big data, and comprises the following steps: when the target application program finishes caching the target video, sending a notification message to a first server so that the first server obtains first patch advertisement data of the target video when the advertisement data updating condition is met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; receiving first patch advertisement data sent by a second server through a message pushing service; and if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data. Through the scheme, the patch advertisement with higher timeliness can be displayed in an offline or weak-network playing environment.

Description

Data processing method, device and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, apparatus, and computer device.
Background
With the abundance and diversification of people's daily life, in order to increase commercial interests, a patch advertisement is inserted into videos such as movies or television shows, where the patch advertisement generally refers to a promotion advertisement about a product inserted into a video by an advertisement operator cooperating with a video producer, a distributor, and a projector. And, the patch advertisement may be displayed in the interface in the form of video, picture, or the like.
For the offline video, the user downloads the video and downloads the patch advertisement data together, and the patch advertisement data always has a valid period, if the valid period of the patch advertisement data has passed when the user watches the offline video, the patch advertisement in the offline video will be invalid and cannot be displayed normally.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device and computer equipment, which can display patch advertisements with higher timeliness in an offline or weak network playing environment.
In one aspect, an embodiment of the present application provides a data processing method, including:
When the target application program finishes caching the target video, sending a notification message to a first server, so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data correspondingly included in the target video;
receiving the first patch advertisement data sent by the second server through a message push service;
And if the network environment obtained during the playing operation of the target video is an offline network environment, displaying a first patch advertisement in a playing interface of the target video according to the first patch advertisement data.
In one aspect, an embodiment of the present application provides a data processing method, including:
Receiving a notification message sent by a terminal device when a target application program finishes caching a target video, wherein the notification message comprises a video identifier of the target video;
when the advertisement data updating condition is met, acquiring first patch advertisement data of the target video according to the video identifier, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
And sending the first patch advertisement data to a second server, so that the second server sends the first patch advertisement data to the terminal equipment through a message pushing service, wherein the first patch advertisement data is used for displaying a first patch advertisement when the network environment of the terminal equipment is an offline network environment.
In one aspect, an embodiment of the present application provides a data processing apparatus, including:
The sending unit is used for sending a notification message to a first server when the target application program finishes caching the target video, so that the first server obtains first patch advertisement data of the target video when the advertisement data updating condition is met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
the receiving unit is used for receiving the first patch advertisement data sent by the second server through the message pushing service;
and the display unit is used for displaying the first patch advertisement in the playing interface of the target video according to the first patch advertisement data if the network environment obtained when the playing operation of the target video is performed is an offline network environment.
In one aspect, an embodiment of the present application provides a data processing apparatus, including:
the receiving unit is used for receiving a notification message sent by the terminal equipment when the target application program finishes caching the target video, wherein the notification message comprises a video identifier of the target video;
The processing unit is used for acquiring first patch advertisement data of the target video according to the video identification when the advertisement data updating condition is met, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
the sending unit is used for sending the first patch advertisement data to the second server so that the second server sends the first patch advertisement data to the terminal equipment through the message pushing service, and the first patch advertisement data is used for displaying a first patch advertisement when the network environment of the terminal equipment is an offline network environment.
In one aspect, an embodiment of the present application provides a computer device, where the computer device includes a memory and a processor, and the memory stores a computer program, where the computer program when executed by the processor causes the processor to execute the data processing method described above.
An aspect of the present application provides a computer-readable storage medium storing a computer program which, when read and executed by a processor of a computer device, causes the computer device to execute the above-described data processing method.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the data processing method described above.
When the target application program finishes caching the target video, a notification message is sent to a first server, so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and the first patch advertisement data is sent to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; then, receiving first patch advertisement data sent by a second server through a message pushing service; and finally, if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data. According to the method and the device, after the user downloads the offline video to the local, the application program is not opened for a long time, the patch advertisement with higher timeliness can be displayed when the offline video is watched in the offline network environment, and further, the benefit of the video advertisement can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a data processing system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a playing interface of a target video according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a data structure of a markup language format file according to an embodiment of the present application;
FIG. 5 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 6 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The embodiment of the application provides a processing scheme of data (such as advertisement data), which comprises the following steps: when the target application program finishes caching the target video, sending a notification message to a first server so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; receiving first patch advertisement data sent by a second server through a message pushing service; and if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data. Therefore, after the user downloads the offline video to the local, the embodiment of the application can display the patch advertisement with higher timeliness without opening the application program for a long time and watching the offline video in an offline network environment.
1. In order to better understand the embodiments of the present application, the following description refers to the technical terms related to the embodiments of the present application:
APNS: apple Push Notification service apple message push service. The scheme utilizes silent pushing in the pushing service to send out the patch advertisement data.
Silence push: also known as Background Remote Notification (background remote push). Silent pushing is a pushing approach that pushes out after iOS 7. It differs from other pushes in that it allows an application to run a piece of code in a background state after it has been notified, which can be used to obtain content updates from a server. Function usage scenarios: the (multimedia) chat, email update, subscription content synchronization based on notification and other functions improve the experience of the terminal user.
Patch advertisement: the patch advertisements of the video are generally divided into front, middle and rear patches, and correspond to the advertisements before, during and after the opening of the video. The scheme is mainly aimed at middle paste/pause and post paste advertisements.
Offline video: the client has downloaded/cached the video locally.
2. Cloud technology:
Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
At present, cloud technologies are mainly divided into cloud base technology classes and cloud application classes; the cloud base technology class can be further subdivided into: cloud computing, cloud storage, databases, big data and the like; cloud application classes can be further subdivided into: medical clouds, cloud internet of things, cloud security, cloud calling, private clouds, public clouds, hybrid clouds, cloud games, cloud education, cloud conferences, cloud social interactions, artificial intelligence cloud services, and the like.
Cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network to work cooperatively through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system, so as to provide data storage and service access functions for the outside.
In the application, the target video, the first patch advertisement data, the second patch advertisement data, the third patch advertisement data and the like contained in the target video can be stored in the storage system in a cloud storage mode. Furthermore, the data processing scheme of the application can be combined with the blockchain technology, for example, the first patch advertisement data, the second patch advertisement data, the third patch advertisement data and the like can be uploaded into the blockchain for storage, and the advertisement data on the blockchain can be ensured to be difficult to tamper.
Referring to fig. 1, fig. 1 is a schematic diagram of a data processing system according to an embodiment of the present application. The data processing system may include at least: a first server 110, a second server 120, and a terminal device 130. The terminal device 130 may be an intelligent device running a target operating system, the target operating system may be an ios mobile operating system, and the second server 120 is a server corresponding to the target operating system, and the first server 110 may be a server storing data such as a patch advertisement, a video, a picture, and the like. Any two devices in the data processing system may be directly or indirectly connected through a wired or wireless communication manner, and the present application is not limited herein, for example, the terminal device 130 may respectively establish a connection with the first server 110 and the second server 120, the first server 110 may respectively establish a connection with the terminal device 130 and the second server 120, and the second server 120 may respectively establish a connection with the first server 110 and the terminal device 130.
The first server 110 or the second server 120 shown in fig. 1 may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and artificial intelligence platforms.
The terminal device 130 shown in fig. 1 and the like may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a vehicle, a roadside device, an aircraft, a wearable device, a vehicle-mounted device, such as a smart watch, a smart bracelet, a pedometer, and the like, which have a data processing function.
In one possible implementation, first, when the target application program finishes caching the target video, the terminal device 130 may send a notification message to the first server 110, so that the first server 110 obtains the first patch advertisement data of the target video when the advertisement data update condition is met, and sends the first patch advertisement data to the second server 120, where the first patch advertisement data is used to update the second patch advertisement data corresponding to the target video. Then, the terminal device 130 receives the first patch advertisement data transmitted by the second server 120 through the message push service. And finally, if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data.
The terminal device 130 may be provided with a plurality of applications, where the applications may include shopping applications (such as an article transaction platform, etc.), video playing applications (such as a video playing platform, etc.), instant messaging applications (such as an information interaction platform, etc.), etc., and further, different types of applications may be subdivided according to different service scenarios, which is not limited herein specifically. For example, it is assumed that an application of a video play class is running in the terminal device 130, and a corresponding tile advertisement may be loaded according to tile advertisement data included in a target video cached by the application. Fig. 2 is a schematic diagram of a playing interface of a target video according to an embodiment of the present application, as shown in fig. 2. The patch advertisement can pop up when the target video is paused to be played, and the patch advertisement can be displayed in a playing interface in the form of an advertisement popup window (210), and in addition, the advertisement popup window 210 can also comprise a detail-knowing button (211) and an exit button (212), so that a user can click the detail-knowing button to further know the advertisement if interested in the advertisement; if the advertisement is not of interest, the "exit" button may be clicked to close the advertisement. Of course, in the actual application scenario, the appearance time of the patch advertisement may also include any one or more of the following cases: before playing video, during playing video, and ending video playing, etc.
In one possible implementation manner, when the target application program finishes caching the target video, the first server 110 receives a notification message sent by the terminal device 130 running the target application program, where the notification message may include a video identifier of the target video, a device identifier of the terminal device, and a cache time of the target video; when the advertisement data updating condition is met, the first server 110 acquires first patch advertisement data of the target video according to the video identification, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; the first server 110 sends the first patch advertisement data to the second server 120, so that the second server 120 sends the first patch advertisement data to the terminal device 130 through the message push service, where the first patch advertisement data is used to display the first patch advertisement when the network environment of the terminal device 130 is an offline network environment.
The principle of the message push service is described in detail below with reference to fig. 1:
1. each application included in the terminal device 130 has an App ID (Application Identity document, application identification), a description file, a certificate, etc. of its own application message, and then the terminal device 130 may send the application message of each application to the second server 120, the second server 120 being a server corresponding to the target operating system;
2. After receiving the application message about the target application sent by the terminal device 130, the second server 120 may perform internal authentication on the target application, where the internal authentication may include, but is not limited to: checking whether the target application is legal/valid based on the description file and the certificate, etc. After the second server 120 authenticates the target application, the second server 120 generates a token for the target application and sends the token to the target application in the terminal device 130. The Token is a string of characters generated by the server (i.e. the second server 120) to serve as a Token for the client (i.e. the terminal device 130) to request, when the second server 120 generates a Token after the first login, the Token is returned to the terminal device 130, and the terminal device 130 only needs to take the Token to request data from the second server 120, without taking the user name and the password again. the token may represent a unique identifier of the target application, so the unique identifier generated by the second server 120 for the target application may also be in other forms of representation, and the application is not limited to the unique identifier being a token.
3. After receiving the token sent by the second server 120, the target application program in the terminal device 130 sends the token to the application server corresponding to the target application program (i.e., the first server 110).
4. In a certain traffic scenario, the first server 110 may send a traffic message to the second server 120, and after the second server 120 processes the traffic message, obtain a message processing result and send the message processing result (the message processing result itself may also be referred to as a message) to the target application program in the terminal device 130 through the message push service.
5. When the terminal device 130 receives the message processing result sent by the second server 120 through the message push service, the message processing result appears on the notification bar of the terminal device 130.
According to the scheme, after the user downloads the offline video to the local, the application program is not opened for a long time, and the patch advertisement with higher timeliness can be displayed when the terminal equipment 130 is in the offline network environment and is watched, and further, the benefit of the video advertisement can be improved.
It may be understood that the schematic diagram of the system architecture described in the embodiment of the present application is for more clearly describing the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application, and those skilled in the art can know that, with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided by the embodiment of the present application is equally applicable to similar technical problems.
Based on the above analysis, the data processing flow of the present application is described below in conjunction with fig. 3. Referring to fig. 3, fig. 3 is a flowchart of a data processing method according to an embodiment of the application. The data processing method can be applied to terminal equipment, and the terminal equipment can be, for example, intelligent equipment with a data processing function, such as vehicle-mounted equipment, intelligent mobile phones, tablet computers, intelligent wearable equipment and the like. As shown in fig. 3, the data processing method may include steps S310 to S330. Wherein:
S310: and when the target application program finishes caching the target video, sending a notification message to the first server so that the first server acquires first patch advertisement data of the target video when the advertisement data updating condition is met, and sending the first patch advertisement data to the second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video.
In the application, the terminal device is an intelligent device under a target operating system, and a plurality of application programs can be operated in the terminal device, wherein the application programs can comprise shopping application programs (such as an article transaction platform and the like), video playing application programs (such as a video playing platform and the like), instant messaging application programs (such as an information interaction platform and the like), and the like, and further, different types of application programs can be subdivided according to different service scenes. For example, it is assumed that an application of a video play class is running in the terminal device 130, and a corresponding tile advertisement may be loaded according to tile advertisement data included in a target video cached by the application. As shown in fig. 2, the target application in fig. 2 may be an application of a video playing class, and the target video may be "let us simply be the fine 01 st set".
The appearance time of the first patch advertisement data or the second patch advertisement data included in the target video may also include any one or more of the following cases: before playing video, during playing video, and ending video playing, etc.
In one possible implementation, the terminal device responds to a download operation of the user for the target video, and caches the target video in the target application. And meanwhile, one or more of the video identification of the target video, the equipment identification of the terminal equipment running the target application program and the cache time of the target video can be acquired, and then a notification message is sent to the first server, wherein the notification message can carry one or more of the video identification of the target video, the equipment identification of the terminal equipment running the target application program and the cache time of the target video.
When updating for the first time, the second patch advertisement data is patch advertisement data included in the target video downloaded by the user, and the first patch advertisement data is updated patch advertisement data included in the target video acquired by the first server when the advertisement data updating condition is satisfied; the second patch advertisement data refers to patch advertisement data that is about to be updated in the target video when the target video is updated (including a second update, a third update, etc.), for example, the second patch advertisement data may be the first patch advertisement data when the target video is updated for the second time. For example, when the time for downloading the target video by the user is 1 day of 12 months 2020, the second patch advertisement data is acquired on 1 day of 12 months 2020, and the first patch advertisement data may be acquired on 5 days of 12 months 2020.
In addition, the first patch advertisement data and the second patch advertisement data may be advertisement data of the same service type, or advertisement data of different service types, which is not particularly limited herein. The service type corresponding to the first patch advertisement data or the service type corresponding to the second patch advertisement data may be the same as or different from the service type corresponding to the target video, and the present application is not limited herein. In addition, the first or second patch advertisement data may include one or more of the following: video-type advertisement data, picture-type advertisement data, and the like.
For example, if the service type corresponding to the target video is a sports type, the service type corresponding to the first patch advertisement data may be a sports type, and the service type corresponding to the second patch advertisement data may be a fashion type. Or the service type corresponding to the target video is a sports type, the service type corresponding to the first patch advertisement data can be a fashion type, and the service type corresponding to the second patch advertisement data can be a medical type. Or the service type corresponding to the target video is a sports type, and the service type corresponding to the first patch advertisement data and the service type corresponding to the second patch advertisement data can be sports types or fashion types.
S320: and receiving the first patch advertisement data sent by the second server through the message pushing service.
In the present application, the second server is a server under the target operating system. The terminal device may receive the first patch advertisement data sent by the second server through the message push service.
In one possible implementation, before the terminal device receives the first patch advertisement data sent by the second server through the message push service, the terminal device may submit a registration message related to the target application to the second server. The registration process can comprise the following steps:
Firstly, the terminal device may send a target program message of the target application program to the second server, wherein the target program message may include one or more of an application identifier, a description file and a certificate; then, after receiving the target program message of the target application program, the second server performs internal authentication on the target application program according to the target program message, wherein the internal authentication may include, but is not limited to: checking whether the target application is legal/valid based on the description file and the certificate, etc. After the second server authenticates the target application program, the second server generates a unique identifier for the target application program and sends the unique identifier to the target application program of the terminal device.
By the method, after the terminal equipment submits the registration message related to the target application program to the second server, the validity and the validity of the target application program can be ensured, and the safety and the reliability of data are improved.
In one possible implementation manner, after receiving the first patch advertisement data sent by the second server through the message pushing service, the terminal device starts a parallel queue in an advertisement processing module of the target application program, where the parallel queue is used to start an analysis caching method; then, the terminal equipment calls an analysis caching method in the advertisement processing module to analyze the first patch advertisement data to obtain a markup language format file of the first patch advertisement data.
In the application, the target application program is provided with an advertisement processing module (ADVERTISEMENT MODULE, ADModule) which can be used for receiving, analyzing and storing the patch advertisement data. ADModule there is also a parallel queue in the server for enabling the multithreading process to parse and save the first patch advertisement data sent by the second server.
Further, ADModule provides two methods to the outside:
1. saveAdPingback (reference notification) method, which is invoked when an advertisement is displayed, clicked by a user, closed, and incoming user information.
2. SAVEADCACHE (parsing and caching) method, after the target application program receives the first patch advertisement data sent by the second server, the target application program is used for parsing the first patch advertisement data to obtain a yml (Yet Another Markup Language, YAML) file (i.e. a markup language format file). The YAML is a format with high readability and is used for expressing data serialization, and has the characteristics of easy reading and easy interaction with a script language, and yml files can be used for expressing a programming language of a data sequence.
S330: and if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data.
In the application, after the target video is cached, the user can watch the target video immediately or watch the target video after a period of time. When the user wants to play the target video, if the network environment obtained when the playing operation is performed on the target video is an offline network environment, the terminal device can display the first patch advertisement in the playing interface of the target video by loading the markup language format file of the first patch advertisement data. The first patch advertisement may be displayed in a popup window in the playing interface of the target video, and the popup window displaying the first patch advertisement may be the center of the interface, or the left area, the right area, the upper area, or the lower area, etc. of the playing interface of the target video, for example, the screen ratio of the popup window may be 50% of the playing interface; the first patch advertisement may also be displayed full screen directly in the playing interface of the target video.
It should be noted that, the terminal device may load the markup language format file of the first patch advertisement data through the advertisement processing module ADModule installed in the target application program, so that the first patch advertisement is displayed in the playing interface of the target video. The advertisement processing module ADModule maintains a global array of advertisement data files (markup language format files) for storing the target video, and the markup language format may be yml.
For example, the data structure of the markup language format file may be as shown in fig. 4, and fig. 4 is a schematic diagram of the data structure of the markup language format file according to the embodiment of the present application. As shown in fig. 4, offLineAdDatas may be an array of the first patch advertisement data, under each adData node is an element in the array, where the element in the array may be used to describe advertisement types, display names, local resource paths, whether the current video can be shown, types of the associated video scanned, page elements (there may be multiple elements on the page, and the page elements have more attributes, such as text, fonts, coordinates, picture addresses, etc., so that the page elements are only referenced in the yml file, and the specific layout rule on the page is determined by the advertisement service module). For example, the first adData node may be videoAd, which may be used to indicate that the first patch advertisement data includes video-type advertisement data; the second adData node may be picAd, which may be used to represent that the first patch advertisement data includes picture-like advertisement data; a third adData node, which may be floatAd, may be used to represent that the first patch advertisement data includes floating layer/popup type advertisement data. And the markup language format file of the first patch advertisement data may further include updateTime (buffering time) and expireTime (validity period), wherein updateTime may be a time stamp of the user download target time (for example, 2020, 12, 1 in fig. 4), and expireTime may be a time stamp of the validity period of the first patch advertisement data (for example, 2020, 12, 20 in fig. 4).
In one possible implementation manner, after the target application program finishes caching the target video, if the network environment when the target application program is restarted is an online network environment, the terminal device sends a current time stamp when the target application program is started to the first server, so that the first server obtains third patch advertisement data of the target video when the current time stamp exceeds the valid period of second patch advertisement data corresponding to the target video, wherein the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video; then, the terminal equipment receives third patch advertisement data sent by the first server and caches the third patch advertisement data; and finally, if the network environment obtained during the playing operation of the target video is an online network environment, displaying a third patch advertisement in a playing interface of the target video according to the third patch advertisement data.
For example, after the target application is started, the user is in a network environment (online network environment), and uploads the current timestamp updateTime to the first server through ADModule each time the target application is started or the network is good, so that the first server compares the current timestamp updateTime with the validity period expireTime of the second patch advertisement data, and if the current timestamp updateTime is greater than the validity period expireTime of the second patch advertisement data, the first server acquires the third patch advertisement data of the target video according to the video identifier.
The third patch advertisement data is updated patch advertisement data which is acquired by the first server and is included in the target video. The first patch advertisement data and the third patch advertisement data may be advertisement data of the same service type, or advertisement data of different service types, and the present application is not limited herein. The service type corresponding to the first patch advertisement data or the service type corresponding to the third patch advertisement data may be the same as or different from the service type corresponding to the target video, and the present application is not limited herein. In addition, the first or third patch advertisement data may include one or more of the following: video-type advertisement data, picture-type advertisement data, and the like.
In the application, the latest patch advertisement data about the target video obtained in the offline network environment is the first patch advertisement data, and the latest patch advertisement data about the target video obtained in the online network environment is the third patch advertisement data. The first patch advertisement data may be the same as the second patch advertisement data or different from the first patch advertisement data. And, the mode of obtaining the first patch advertisement data is different from the mode of obtaining the third patch advertisement data.
In the embodiment of the application, firstly, when the target application program finishes caching the target video, a notification message is sent to a first server, so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and the first patch advertisement data is sent to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; then, receiving first patch advertisement data sent by a second server through a message pushing service; and finally, if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data. According to the method and the device, after the user downloads the offline video to the local, the application program is not opened for a long time, the patch advertisement with higher timeliness can be displayed when the offline video is watched in the offline network environment, and further, the benefit of the video advertisement can be improved. Further, aiming at the online network environment, the corresponding latest patch advertisement data is cached before the target video is opened and stored in the local area and then the corresponding latest patch advertisement data is requested after the target video is opened, so that the fluency of video playing is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating another data processing method according to an embodiment of the application. The data processing method can be applied to a first server, and the first server can be, for example, a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks, basic cloud computing services such as big data and artificial intelligence platforms, and the like. As shown in fig. 5, the data processing method may include steps S510 to S530. Wherein:
s510: and receiving a notification message sent by the terminal equipment when the target application program finishes caching the target video, wherein the notification message comprises the video identification of the target video.
In the application, the first server can receive the notification message sent by the terminal equipment when the target application program finishes caching the target video. The notification message may include one or more of a video identification of the target video, a device identification of a terminal device running the target application, and a buffering time of the target video.
In one possible implementation manner, the first server may verify the identity of the terminal device before receiving the notification message sent by the terminal device, and if the identity of the terminal device is verified, the first server receives the notification message sent by the terminal device. After the first server obtains the notification message, the first server may further perform one or both of validity check and security check on the notification message, and if the first server performs both validity check and security check on the notification message, the first server may save one or more of the video identifier of the target video, the device identifier of the terminal device running the target application, and the buffering time of the target video to the local. In this way, the data received by the first server can be ensured to be safer and more reliable.
S520: and when the advertisement data updating condition is met, acquiring first patch advertisement data of the target video according to the video identification, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video.
In one possible implementation manner, after the first server receives the notification message sent by the terminal device, a timer is started, wherein the timing duration of the timer is the effective duration of the second patch advertisement data. When the timing of the timer arrives, the first server determines that the advertisement data update condition is satisfied.
For example, when the user downloads the target video to the local in the target application program of the terminal device, the terminal device may acquire one or more of a video identifier (for example television Identification, tvId) of the target video, a device identifier (for example, a device number) of the terminal device running the target application program, and a buffering time (current timestamp) of the target video, and after receiving the notification message sent by the terminal device, the first server sets and starts a timer with a duration of T (for example, 2 days). And when the timer exceeds a threshold T (for example, 2 days), the first server determines that the advertisement data updating condition is met. That is, after the user caches the target video locally, the first server checks whether the second patch advertisement data included in the target video is updated every time period T (for example, 2 days), and if so, the first server may specifically determine the updated first patch advertisement data included in the target video according to the video identifier tvId of the target video.
It should be noted that, the first server may store a large number of videos and patch advertisement data corresponding to each video, and the first server may store a plurality of tvId and a plurality of patch advertisement data, one tvId corresponds to one or a plurality of patch advertisement data, and one tvId corresponds to one video. Of course, the mapping between the large volume of video and the large volume of patch advertisement data may include, but is not limited to: the present application is not particularly limited as long as each video and the patch advertisement data included in the corresponding video can be represented. In addition, there may be a crossover between the patch advertisement data included between different videos, for example, tv1 may include 3 patch advertisement data (a, b, c), and tv2 may include 2 patch advertisement data (b, d). Further, the order of appearance of the common patch advertisement data included between different videos in the respective videos may be the same or different. For example, among 3 pieces of patch advertisement data a, b, and c included in tv1, a represents pre-patch advertisement data, b represents mid-patch advertisement data, and c represents post-patch advertisement data, and among 2 pieces of patch advertisement data b and d included in tv2, b represents pre-patch advertisement data, and d represents mid-patch advertisement data. Meaning that although both tv1 and tv2 include the patch advertisement data b common to both, b is displayed during video playback in tv1 and b is displayed before video playback in tv 2.
In one possible implementation, the first server may also be connected to an advertising server. The latest patch advertisement data for providing a large amount of video in an advertisement service provider. Of course, the latest patch advertisement data of a large amount of videos may also be directly stored in the first server, which is not particularly limited in the embodiment of the present application.
S530: and sending the first patch advertisement data to the second server so that the second server sends the first patch advertisement data to the terminal equipment through the message pushing service, wherein the first patch advertisement data is used for displaying the first patch advertisement when the network environment of the terminal equipment is an offline network environment.
In one possible implementation, the first server may send the notification message to the second server while sending the first patch advertisement data to the second server. The notification message may include one or more of a video identification of the target video, a device identification of a terminal device running the target application, and a buffering time of the target video. And the second server sends first patch advertisement data to the terminal equipment through the message push service according to the equipment identifier and the video identifier, wherein the first patch advertisement data is used for displaying the first patch advertisement when the network environment of the terminal equipment is an offline network environment. The device identifier is used for determining corresponding terminal devices, and the video identifier is used for determining that the first patch advertisement data is issued to the corresponding target video.
In one possible implementation manner, the first server receives a current timestamp sent by the terminal device when the network environment of the target application program is an online network environment when the target application program is restarted; then, when the current time stamp exceeds the validity period of the second patch advertisement data, the first server acquires third patch advertisement data of the target video according to the video identification, wherein the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video; and finally, the first server sends the third patch advertisement data to the terminal equipment, so that the terminal equipment displays the third patch advertisement according to the third patch advertisement data when the network environment of the terminal equipment when the target video is played is an online network environment.
In one possible implementation manner, if the network environment when the playing operation for the target video is obtained is an offline network environment, the user may click on the first patch advertisement in the playing interface of the target video during the process of watching the target video. The advertisement processing module of the target application then invokes the reference notification method (saveAdPingback method) to save the user operation data. If the network environment when the user plays the target video again is an online network environment, the first server may recommend advertisement resources matching with the user operation data to the user according to the user operation data.
For example, if the user is watching the target video offline and is interested in comparing the basketball contained in the first advertisement, the user may click on a popup window for displaying the basketball, and then the advertisement processing module of the target application invokes the reference notification method (saveAdPingback method) to save the user operation data for the basketball. If the network environment when the user plays the target video again is an online network environment, the first server may acquire the purchase link of the basketball, the commodity parameters related to the basketball, and the like from other platforms, and use the purchase link of the basketball, the commodity parameters related to the basketball, and the like as advertisement resources matched with the user operation data. The basketball game system is used for a user to know relevant commodity parameters of the basketball game in further detail and achieve trade, so that the popularization effect of the patch advertisement is achieved, and commodity trade is promoted.
In the embodiment of the application, a first server receives a notification message which is sent by a terminal device when a target application program finishes caching a target video and comprises a video identifier of the target video; then, when the advertisement data updating condition is met, the first server acquires first patch advertisement data of the target video according to the video identification, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; and finally, the first server sends the first patch advertisement data to the second server so that the second server sends the first patch advertisement data to the terminal equipment through the message pushing service, wherein the first patch advertisement data is used for displaying the first patch advertisement when the network environment of the terminal equipment is an offline network environment. According to the method and the device, after the user downloads the offline video to the local, the application program is not opened for a long time, the patch advertisement with higher timeliness can be displayed when the offline video is watched in the offline network environment, and further, the benefit of the video advertisement can be improved. Further, aiming at the online network environment, the corresponding latest patch advertisement data is cached before the target video is opened and stored in the local area and then the corresponding latest patch advertisement data is requested after the target video is opened, so that the fluency of video playing is improved.
Based on the above analysis, a complete flow of the data processing method is described next. Referring to fig. 6, fig. 6 is a flowchart of a data processing method according to an embodiment of the application. The data processing method can be cooperatively executed by the terminal equipment, the first server and the second server. The terminal device is provided with a target application program in an operating mode, an advertisement processing module (ADModule) is installed in the target application program, the terminal device can be an intelligent device under a target operating system, and the second server can be a server under the target operating system and is used for providing message pushing service. As shown in fig. 3, the data processing method may include steps S610 to S680. Wherein:
s610: and finishing the downloading of the target video.
In specific implementation, the terminal device responds to the downloading operation (or the caching operation) of the user for the target video in the target application program, and downloads/caches the complete target video. It should be noted that, in the process of buffering the target video, the terminal device is buffered when the network environment of the terminal device is in an online network environment, and the online network environment may include a WI-FI network environment and a mobile data network environment, where the mobile data network environment may include, for example, a 4G (the 4th generation communication system, fourth generation communication system) network, or a 5G (the 5th generation communication system, fifth generation communication system) network environment.
Wherein the video content of the target video may include one or more of sports type, fashion type, life style type, and the like. And, the target video includes second patch advertisement data, which is patch advertisement data included in the downloaded target video by the user.
S620: uploading video identification, device number and time stamp.
In one possible implementation, the terminal device sends a notification message to the first server when the target application program finishes buffering the target video. The notification message may carry one or more of a video identifier (tvId) of the target video, a device identifier (device number) of the terminal device running the target application, and a buffering time (time stamp) of the target video. It should be noted that, in the present application, the first server may store the buffering time of the target video locally.
S630: a timer is started.
In one possible implementation manner, after the first server receives a notification message that is sent by the terminal device and carries one or more of a video identifier (tvId) of the target video, a device identifier (device number) of the terminal device running the target application, and a buffering time of the target video, the first server may set and start a timer with a timing duration of T. The timing duration T may be related to the effective duration of the second patch advertisement data, for example, the timing duration T may be the effective duration of the second patch advertisement data, and if the effective duration of the second patch advertisement data is 2 days, the timing duration T may also be 2 days. That is, the timer performs update check of the advertisement data every 2 days.
S640: and if the timer exceeds the timing threshold value, acquiring updated patch advertisement data.
In one possible implementation, the advertisement data update condition is determined to be satisfied when the timing of the timer arrives. The first server determines whether the second patch advertisement data included in the target video is updated according to the video identification. If the second patch advertisement data is updated, the first server acquires the patch advertisement data (namely the first patch advertisement data) after the target video is updated.
S650: and sending the updated patch advertisement data to the terminal equipment through the second server.
In one possible implementation manner, after the first server obtains the first patch advertisement data, the first server may send the first patch advertisement data to the second server, and of course, in a process that the first server sends the first patch advertisement data to the second server, one or more of a video identifier, a device identifier of the terminal device, and a buffering time of the target video may also be sent to the second server. And then, the second server sends the first patch advertisement data to the terminal equipment through the message pushing service according to the equipment identification.
S660: the advertisement processing module calls an analysis caching method to cache the updated patch advertisement data.
In one possible implementation, the advertisement processing module (ADModule) running in the target application may provide two methods to the outside: saveAdPingback (reference notification) method and SAVEADCACHE (resolution caching) method. After the terminal device receives the first patch advertisement data sent by the second server, ADModule may start a parallel queue, where the parallel queue is started to start and call SAVEADCACHE a method to receive the first patch advertisement data and write the first patch advertisement data into the yml file.
S670: and loading the patch advertisement after the network-free broadcasting.
In one possible implementation manner, if the network environment when the playing operation for the target video is obtained is an offline network environment, the terminal device displays the first patch advertisement in the playing interface of the target video according to the first patch advertisement data. Therefore, the patch advertisement with higher timeliness in the target video can be watched by the user in the network-free or weak network or offline network environment, so that the watching experience of the user is improved, and further, the popularization effect of the advertisement is improved.
S680: and storing user operation data according to the user interaction.
In one possible implementation manner, if the network environment when the playing operation for the target video is obtained is an offline network environment, the user may click on the first patch advertisement in the playing interface of the target video during the process of watching the target video. The advertisement processing module of the target application then invokes the reference notification method (saveAdPingback method) to save the user operation data. If the network environment when the user plays the target video again is an online network environment, the first server may recommend advertisement resources matching with the user operation data to the user according to the user operation data.
In the embodiment of the application, firstly, when the target application program finishes caching the target video, a notification message is sent to a first server, so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and the first patch advertisement data is sent to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video; then, receiving first patch advertisement data sent by a second server through a message pushing service; and finally, if the network environment obtained during the playing operation of the target video is an offline network environment, displaying the first patch advertisement in a playing interface of the target video according to the first patch advertisement data. According to the method and the device, after the user downloads the offline video to the local, the application program is not opened for a long time, the patch advertisement with higher timeliness can be displayed when the offline video is watched in the offline network environment, and further, the benefit of the video advertisement can be improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. The data processing device 700 may be applied to a terminal device in the method embodiments corresponding to fig. 3 to 6. The data processing apparatus 700 may be a computer program (including program code) running in a lightweight node, for example the data processing apparatus 700 is an application software; the apparatus 700 may be used to perform the corresponding steps in the methods provided by embodiments of the present application. The data processing apparatus 700 may include:
A sending unit 710, configured to send a notification message to a first server when the target application program finishes caching the target video, so that the first server obtains first patch advertisement data of the target video when an advertisement data update condition is satisfied, and send the first patch advertisement data to a second server, where the first patch advertisement data is used to update second patch advertisement data corresponding to the target video;
a receiving unit 720, configured to receive the first patch advertisement data sent by the second server through a message push service;
And the display unit 730 is configured to display a first patch advertisement in the playing interface of the target video according to the first patch advertisement data if the network environment obtained when the playing operation is performed on the target video is an offline network environment.
In one possible implementation, the data processing apparatus 700 may further perform the following steps:
After the target application program finishes caching the target video, if the network environment when the target application program is restarted is an online network environment, the sending unit 710 sends a current time stamp when the target application program is started to the first server, so that the first server obtains third patch advertisement data of the target video when the current time stamp exceeds the valid period of second patch advertisement data corresponding to the target video, and the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video;
The receiving unit 720 receives the third patch advertisement data sent by the first server, and caches the third patch advertisement data;
If the network environment obtained during the playing operation for the target video is an online network environment, the display unit 730 displays a third patch advertisement in the playing interface of the target video according to the third patch advertisement data.
In one possible implementation, the data processing apparatus 700 may further include: a processing unit 740.
A processing unit 740, configured to, after the receiving unit 720 receives the first patch advertisement data sent by the second server through the message push service, start a parallel queue in an advertisement processing module of the target application program, where the parallel queue is used to start an analysis caching method; and
The processing unit 740 calls the parsing and caching method in the advertisement processing module to parse the first patch advertisement data to obtain a markup language format file of the first patch advertisement data;
wherein, the displaying unit 730 displays the first patch advertisement in the playing interface of the target video according to the first patch advertisement data, including:
And displaying the first patch advertisement in the playing interface of the target video through loading the markup language format file of the first patch advertisement data.
In one possible implementation, the notification message includes one or more of a video identification of the target video, a device identification of a terminal device running the target application, and a buffering time of the target video.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application. The data processing device 800 may be applied to the first server in the method embodiments corresponding to fig. 3 to 6. The data processing apparatus 800 may be a computer program (including program code) running in a lightweight node, for example the data processing apparatus 800 is an application software; the apparatus 800 may be used to perform the corresponding steps in the methods provided by embodiments of the present application. The data processing apparatus 800 may include:
a receiving unit 810, configured to receive a notification message sent by a terminal device when buffering of a target video by a target application program is completed, where the notification message includes a video identifier of the target video;
the processing unit 820 is configured to obtain, when an advertisement data update condition is satisfied, first patch advertisement data of the target video according to the video identifier, where the first patch advertisement data is used to update second patch advertisement data corresponding to the target video;
and a sending unit 830, configured to send the first patch advertisement data to a second server, so that the second server sends the first patch advertisement data to the terminal device through a message push service, where the first patch advertisement data is used to display a first patch advertisement when the network environment of the terminal device is an offline network environment.
In one possible implementation, the data processing apparatus 800 may further perform the following steps:
The receiving unit 810 receives a current timestamp sent by the terminal device when the network environment when the target application program is restarted is an online network environment;
When the current time stamp exceeds the validity period of the second patch advertisement data, the processing unit 820 obtains third patch advertisement data of the target video according to the video identifier, wherein the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video;
the sending unit 830 sends the third patch advertisement data to the terminal device, so that when the network environment of the terminal device when playing the target video is an online network environment, the third patch advertisement is displayed according to the third patch advertisement data.
In one possible implementation, the processing unit 820 is further configured to perform the following operations:
After receiving the notification message sent by the terminal equipment, starting a timer, wherein the timing duration of the timer is the effective duration of the second patch advertisement data;
when the timing of the timer arrives, it is determined that the advertisement data update condition is satisfied.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device provided in an embodiment of the present application, where the computer device 900 is configured to perform steps performed by computer devices (terminal device, first server, second server) in the embodiment of the method corresponding to fig. 3 to fig. 6, and the computer device 900 includes: one or more processors 910; one or more input devices 920, one or more output devices 930, and a memory 940. The processor 910, the input device 920, the output device 930, and the memory 940 are connected by a bus 950. Memory 940 is configured to store a computer program comprising program instructions, and processor 910 is configured to execute the program instructions stored in memory 940 to perform the following operations:
When the target application program finishes caching the target video, sending a notification message to a first server, so that the first server obtains first patch advertisement data of the target video when advertisement data updating conditions are met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
receiving the first patch advertisement data sent by the second server through a message push service;
And if the network environment obtained during the playing operation of the target video is an offline network environment, displaying a first patch advertisement in a playing interface of the target video according to the first patch advertisement data.
In one possible implementation, the processor 910 is further configured to perform the following operations:
After the target application program finishes caching the target video, if the network environment when the target application program is started again is an online network environment, sending a current time stamp when the target application program is started to the first server so that the first server obtains third patch advertisement data of the target video when the current time stamp exceeds the valid period of second patch advertisement data corresponding to the target video, wherein the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video;
Receiving the third patch advertisement data sent by the first server, and caching the third patch advertisement data;
and if the network environment obtained during the playing operation of the target video is an online network environment, displaying a third patch advertisement in a playing interface of the target video according to the third patch advertisement data.
In one possible implementation, after the processor 910 receives the first patch advertisement data sent by the second server through a message push service, the processor is further configured to perform the following operations:
Starting a parallel queue in an advertisement processing module of the target application program, wherein the parallel queue is used for starting an analysis caching method;
Invoking the analysis caching method in the advertisement processing module to analyze the first patch advertisement data to obtain a markup language format file of the first patch advertisement data;
wherein, the displaying the first patch advertisement in the playing interface of the target video according to the first patch advertisement data includes:
And displaying the first patch advertisement in the playing interface of the target video through loading the markup language format file of the first patch advertisement data.
In one possible implementation, the notification message includes one or more of a video identification of the target video, a device identification of a terminal device running the target application, and a buffering time of the target video.
In one possible implementation, the processor 910 is configured to execute program instructions stored in the memory 940, and is further configured to perform the following operations:
Receiving a notification message sent by a terminal device when a target application program finishes caching a target video, wherein the notification message comprises a video identifier of the target video;
when the advertisement data updating condition is met, acquiring first patch advertisement data of the target video according to the video identifier, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
And sending the first patch advertisement data to a second server, so that the second server sends the first patch advertisement data to the terminal equipment through a message pushing service, wherein the first patch advertisement data is used for displaying a first patch advertisement when the network environment of the terminal equipment is an offline network environment.
In one possible implementation, the processor 910 is further configured to perform the following operations:
Receiving a current timestamp sent by the terminal equipment when the network environment of the terminal equipment when the target application program is restarted is an online network environment;
When the current time stamp exceeds the validity period of the second patch advertisement data, third patch advertisement data of the target video are obtained according to the video identification, and the third patch advertisement data are used for updating the second patch advertisement data corresponding to the target video;
and sending the third patch advertisement data to the terminal equipment, so that the terminal equipment displays the third patch advertisement according to the third patch advertisement data when the network environment of the terminal equipment when the target video is played is an online network environment.
In one possible implementation, the processor 910 is further configured to perform the following operations:
After receiving the notification message sent by the terminal equipment, starting a timer, wherein the timing duration of the timer is the effective duration of the second patch advertisement data;
when the timing of the timer arrives, it is determined that the advertisement data update condition is satisfied.
It should be understood that the computer apparatus described in the embodiments of the present application may perform the description of the data processing method in the embodiment corresponding to fig. 3 to 6, the description of the data processing apparatus 700 in the embodiment corresponding to fig. 7, and the description of the data processing apparatus 800 in the embodiment corresponding to fig. 8. And will not be described in detail herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer storage medium, in which the aforementioned computer programs executed by the data processing apparatus 700 and the data processing apparatus 800 are stored, and the computer programs include program instructions, when executed by a processor, enable the execution of the methods in the embodiments corresponding to fig. 3 to 6, and therefore, the description thereof will not be repeated here. For technical details not disclosed in the embodiments of the computer storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computer device or executed on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the method in the embodiment corresponding to fig. 3 to 6, and therefore, a detailed description will not be given here.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (11)

1. A method of data processing, the method comprising:
When target application programs of terminal equipment finish caching target videos, sending notification messages to a first server, so that the first server obtains first patch advertisement data of the target videos when advertisement data updating conditions are met, and sending the first patch advertisement data to a second server, wherein the first patch advertisement data are used for updating second patch advertisement data corresponding to the target videos, the terminal equipment is intelligent equipment for running a target operating system, the second server is a server corresponding to the target operating system, and the first server is a server for providing the patch advertisement data;
receiving the first patch advertisement data sent by the second server through a message push service;
If the network environment obtained when the playing operation aiming at the target video is an offline network environment, displaying a first patch advertisement in a playing interface of the target video according to the first patch advertisement data;
acquiring operation data of a user on the first patch advertisement, and sending the operation data to the first server;
And if the network environment when the target video is played again is an online network environment, receiving an advertisement resource which is sent by the first server and matched with the operation data, and outputting the advertisement resource, wherein the advertisement resource comprises a purchase link and commodity parameters corresponding to the operation data.
2. The method of claim 1, wherein the method further comprises:
After the target application program finishes caching the target video, if the network environment when the target application program is started again is an online network environment, sending a current time stamp when the target application program is started to the first server so that the first server obtains third patch advertisement data of the target video when the current time stamp exceeds the valid period of second patch advertisement data corresponding to the target video, wherein the third patch advertisement data is used for updating the second patch advertisement data corresponding to the target video;
Receiving the third patch advertisement data sent by the first server, and caching the third patch advertisement data;
if the network environment obtained when the playing operation aiming at the target video is an online network environment, then
And displaying the third patch advertisement in the playing interface of the target video according to the third patch advertisement data.
3. The method of claim 1 or 2, wherein after the receiving the first patch advertisement data sent by the second server through a message push service, the method further comprises:
Starting a parallel queue in an advertisement processing module of the target application program, wherein the parallel queue is used for starting an analysis caching method;
Invoking the analysis caching method in the advertisement processing module to analyze the first patch advertisement data to obtain a markup language format file of the first patch advertisement data;
wherein, the displaying the first patch advertisement in the playing interface of the target video according to the first patch advertisement data includes:
And displaying the first patch advertisement in the playing interface of the target video through loading the markup language format file of the first patch advertisement data.
4. The method of claim 1, wherein the notification message includes one or more of a video identification of the target video, a device identification of a terminal device running the target application, and a buffering time of the target video.
5. A method of data processing, the method comprising:
Receiving a notification message sent by a terminal device when a target application program finishes caching a target video, wherein the notification message comprises a video identifier of the target video, and the terminal device is an intelligent device running a target operating system;
when the advertisement data updating condition is met, acquiring first patch advertisement data of the target video according to the video identifier, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
The first patch advertisement data is sent to a second server, so that the second server sends the first patch advertisement data to the terminal equipment through a message pushing service, the first patch advertisement data is used for displaying a first patch advertisement when the network environment of the terminal equipment is an offline network environment, and the second server is a server corresponding to the target operating system;
receiving operation data of a user on the first patch advertisement, which is sent by the terminal equipment;
Determining advertisement resources matched with the operation data, wherein the advertisement resources comprise purchase links and commodity parameters corresponding to the operation data;
And if the network environment when the terminal equipment plays the target video again is an online network environment, sending the advertisement resource to the terminal equipment so that the terminal equipment outputs the advertisement resource.
6. The method of claim 5, wherein the method further comprises:
Receiving a current timestamp sent by the terminal equipment when the network environment of the terminal equipment when the target application program is restarted is an online network environment;
When the current time stamp exceeds the validity period of the second patch advertisement data, third patch advertisement data of the target video are obtained according to the video identification, and the third patch advertisement data are used for updating the second patch advertisement data corresponding to the target video;
and sending the third patch advertisement data to the terminal equipment, so that the terminal equipment displays the third patch advertisement according to the third patch advertisement data when the network environment of the terminal equipment when the target video is played is an online network environment.
7. The method of claim 5, wherein the method further comprises:
After receiving the notification message sent by the terminal equipment, starting a timer, wherein the timing duration of the timer is the effective duration of the second patch advertisement data;
when the timing of the timer arrives, it is determined that the advertisement data update condition is satisfied.
8. A data processing apparatus, the apparatus comprising:
The terminal equipment is intelligent equipment for running a target operating system, the second server is a server corresponding to the target operating system, and the first server is a server for providing patch advertisement data;
the receiving unit is used for receiving the first patch advertisement data sent by the second server through the message pushing service;
The display unit is used for displaying a first patch advertisement in a playing interface of the target video according to the first patch advertisement data if the network environment obtained when the playing operation of the target video is performed is an offline network environment;
The sending unit is further used for obtaining operation data of the first patch advertisement from a user and sending the operation data to the first server;
The receiving unit is further configured to receive an advertisement resource that is sent by the first server and matches with the operation data if the network environment when the target video is played again is an online network environment;
The display unit is further configured to output the advertisement resource, where the advertisement resource includes a purchase link and a commodity parameter corresponding to the operation data.
9. A data processing apparatus, the apparatus comprising:
the receiving unit is used for receiving a notification message sent by the terminal equipment when the target application program finishes caching the target video, wherein the notification message comprises a video identifier of the target video, and the terminal equipment is intelligent equipment for running a target operating system;
The processing unit is used for acquiring first patch advertisement data of the target video according to the video identification when the advertisement data updating condition is met, wherein the first patch advertisement data is used for updating second patch advertisement data corresponding to the target video;
the sending unit is used for sending the first patch advertisement data to a second server so that the second server sends the first patch advertisement data to the terminal equipment through a message pushing service, wherein the first patch advertisement data is used for displaying a first patch advertisement when the network environment of the terminal equipment is an offline network environment, and the second server is a server corresponding to the target operating system;
the receiving unit is further configured to receive operation data of the first patch advertisement sent by the terminal device, where the operation data is sent by a user;
The processing unit is further used for determining advertisement resources matched with the operation data, wherein the advertisement resources comprise purchase links and commodity parameters corresponding to the operation data;
The sending unit is further configured to send the advertisement resource to the terminal device if the network environment when the terminal device plays the target video again is an online network environment, so that the terminal device outputs the advertisement resource.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1-4 or 5-7.
11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a computer processor, implements the method of any of claims 1-4 or 5-7.
CN202110519863.XA 2021-05-12 2021-05-12 Data processing method, device and computer equipment Active CN114679609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110519863.XA CN114679609B (en) 2021-05-12 2021-05-12 Data processing method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110519863.XA CN114679609B (en) 2021-05-12 2021-05-12 Data processing method, device and computer equipment

Publications (2)

Publication Number Publication Date
CN114679609A CN114679609A (en) 2022-06-28
CN114679609B true CN114679609B (en) 2024-04-26

Family

ID=82070177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110519863.XA Active CN114679609B (en) 2021-05-12 2021-05-12 Data processing method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN114679609B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120092836A (en) * 2011-02-14 2012-08-22 이인호 Event information providing and marketing service method and recorded medium recorded the program for performing event information service method
CN104883610A (en) * 2015-04-28 2015-09-02 腾讯科技(北京)有限公司 Patch video playing method and device
CN106412673A (en) * 2015-07-31 2017-02-15 中国移动通信集团公司 Streaming media playing method and apparatus
EP3312782A1 (en) * 2016-10-24 2018-04-25 Advanced Digital Broadcast S.A. Device and method for targeted advertising
CN109587525A (en) * 2017-09-29 2019-04-05 深圳市中兴微电子技术有限公司 Service push method and system, set-top box, business service platform and storage medium
CN110381346A (en) * 2019-08-08 2019-10-25 连尚(新昌)网络科技有限公司 A kind of advertisement demonstration method and equipment
CN110958476A (en) * 2019-11-22 2020-04-03 聚好看科技股份有限公司 Advertisement putting method, display device and remote controller
CN111582924A (en) * 2020-04-30 2020-08-25 北京视博云信息技术有限公司 Advertisement putting system, method and device for cloud games

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9369778B2 (en) * 2013-03-06 2016-06-14 Yahoo! Inc. Video advertisement wall
US20170171335A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Advertising push methods, devices, video servers and terminal equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120092836A (en) * 2011-02-14 2012-08-22 이인호 Event information providing and marketing service method and recorded medium recorded the program for performing event information service method
CN104883610A (en) * 2015-04-28 2015-09-02 腾讯科技(北京)有限公司 Patch video playing method and device
CN106412673A (en) * 2015-07-31 2017-02-15 中国移动通信集团公司 Streaming media playing method and apparatus
EP3312782A1 (en) * 2016-10-24 2018-04-25 Advanced Digital Broadcast S.A. Device and method for targeted advertising
CN109587525A (en) * 2017-09-29 2019-04-05 深圳市中兴微电子技术有限公司 Service push method and system, set-top box, business service platform and storage medium
CN110381346A (en) * 2019-08-08 2019-10-25 连尚(新昌)网络科技有限公司 A kind of advertisement demonstration method and equipment
CN110958476A (en) * 2019-11-22 2020-04-03 聚好看科技股份有限公司 Advertisement putting method, display device and remote controller
CN111582924A (en) * 2020-04-30 2020-08-25 北京视博云信息技术有限公司 Advertisement putting system, method and device for cloud games

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
新一代电视广告管理系统的设计与实现;王程;;现代电视技术;20150315(第03期);全文 *

Also Published As

Publication number Publication date
CN114679609A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN108184144B (en) Live broadcast method and device, storage medium and electronic equipment
CN110139162B (en) Media content sharing method and device, storage medium and electronic device
US10104052B2 (en) Secure expandable advertisements using an API and cross-domain communications
CN104765617B (en) Based on the HTML5 stream application functional interface distribution method realized and system
US10083461B2 (en) Tool for third-party creation of advertisements for a social networking system
CN110134880B (en) Comment data providing method, comment data displaying method, comment data providing device, comment data displaying device, electronic equipment and storage medium
US9743137B2 (en) Run-time SDK integration for connected video players
CN102651731A (en) Video display method and video display device
CN110020108B (en) Network resource recommendation method, device, computer equipment and storage medium
CN109684589B (en) Client comment data processing method and device and computer storage medium
KR20100119806A (en) System and method for insertion of advertisement into presentation description language content
CN111966441A (en) Information processing method and device based on virtual resources, electronic equipment and medium
CN112351350B (en) Content display method, device, system, equipment and storage medium
CN111444415A (en) Barrage processing method, server, client, electronic device and storage medium
CN113468374A (en) Target display method and device, electronic equipment and storage medium
CN115190366B (en) Information display method, device, electronic equipment and computer readable medium
CN113949697A (en) Data distribution method and device, electronic equipment and storage medium
US20220224978A1 (en) Video content display method, client, and storage medium
CN111523948A (en) Advertisement display method and device, computer readable storage medium and electronic equipment
CN110351581B (en) Data request processing method and device, terminal equipment and storage medium
CN109672911B (en) Video processing method and device
CN105744338A (en) Video processing method and equipment
CN114679609B (en) Data processing method, device and computer equipment
CN111427635B (en) Third-party information display method, device, equipment and storage medium
CN109003106B (en) Information processing method and information processing apparatus

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