WO2021109871A1 - 一种媒资属性推送方法及服务器 - Google Patents

一种媒资属性推送方法及服务器 Download PDF

Info

Publication number
WO2021109871A1
WO2021109871A1 PCT/CN2020/129874 CN2020129874W WO2021109871A1 WO 2021109871 A1 WO2021109871 A1 WO 2021109871A1 CN 2020129874 W CN2020129874 W CN 2020129874W WO 2021109871 A1 WO2021109871 A1 WO 2021109871A1
Authority
WO
WIPO (PCT)
Prior art keywords
media asset
attribute
project
database
item
Prior art date
Application number
PCT/CN2020/129874
Other languages
English (en)
French (fr)
Inventor
赖园园
Original Assignee
聚好看科技股份有限公司
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 聚好看科技股份有限公司 filed Critical 聚好看科技股份有限公司
Publication of WO2021109871A1 publication Critical patent/WO2021109871A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Definitions

  • This application relates to the field of Internet technology, and in particular to a method and server for pushing media asset attributes.
  • the service provider’s self-built media asset center manages all media asset content and performs classified operations. After signing a service provider identity cooperation with a broadcasting and television operator, the content of the central node needs to be synchronized to the operator’s on-demand system for presentation and Broadcast, here, each of the radio and television operators that have signed the cooperation will be a project of the media asset center.
  • the media asset center pushes the media asset metadata required for each project, not the specific media asset.
  • the media asset metadata is pushed as the media asset attribute.
  • Each project is equipped with an independent database. When a project requires media asset attributes, the project sends a media asset attribute acquisition request to the media asset center, and the media asset center pushes the media asset attributes required by the project to the media asset center.
  • the project is stored in the project’s database.
  • the existing media asset attribute push method adopts the method of "who requests to push to whom"
  • the media asset attribute push of the media asset center is relatively passive, and pushing through the project request is time-consuming and cannot guarantee the media asset Whether the center can push media asset attributes to each project in a timely manner.
  • This application provides a method and server for pushing media asset attributes to solve the problem that the existing methods are not timely when pushing media asset attributes for projects.
  • this application provides a method for pushing media asset attributes, including the following steps:
  • the registered media asset range is the media asset type determined during the registration of the specified project
  • the callback address is the media asset received by the specified project The path of the attribute push
  • the storage media asset ID set send a media asset attribute acquisition instruction to a media asset database, and the media asset attribute acquisition instruction is used to acquire each storage medium in the media asset database and the storage media asset ID set.
  • a media asset attribute push server provided by an embodiment of the present application includes:
  • a processor and a memory for storing executable instructions of the processor
  • the processor is configured to obtain a registered media asset range and a callback address of a designated project stored in a media asset database, where the registered media asset range is a media asset type determined when the designated project is registered, and The callback address is the path through which the specified project receives the push of media asset attributes;
  • the storage media asset ID set send a media asset attribute acquisition instruction to a media asset database, and the media asset attribute acquisition instruction is used to acquire each storage medium in the media asset database and the storage media asset ID set.
  • the media asset attribute push method and server use the media asset pusher to obtain the registration information of the designated project stored in the media asset database, and the registration information includes the scope of the media asset and the callback address.
  • the media asset pusher monitors the registration information of each project in real time.
  • the registration of the specified project searches the media asset database for storage media asset attributes that match the registration information of the specified project. , And actively push the storage media asset attributes to the designated project to complete the real-time synchronization of the media asset attributes.
  • the method can realize the synchronization of media asset metadata between the media asset center and multiple projects, and achieve the purpose of promoting media asset metadata sharing and improving resource utilization.
  • FIG. 1 is a block diagram of the interaction structure between a media asset push server and a project provided by an embodiment of the application;
  • FIG. 2 is a data flow diagram of a method for pushing media asset attributes provided by an embodiment of the application
  • FIG. 3 is a flowchart of a method for pushing media asset attributes according to an embodiment of the application
  • FIG. 4 is a flowchart of another method of a media asset attribute push method provided by an embodiment of the application.
  • Fig. 5 is a flowchart of a method for calculating a signature provided by an embodiment of the application
  • FIG. 6 is another flowchart of the media asset attribute push method provided by the embodiment of the application.
  • FIG. 7 is a flowchart of a method for pushing new media asset attributes provided by an embodiment of the application.
  • FIG. 8 is a structural block diagram of a media asset attribute push server provided by an embodiment of the application.
  • the media asset attribute push method provided by the embodiment of the application is applied to a media asset attribute push server, such as a media asset center, where the media asset metadata is stored, and the media asset center actively pushes media asset elements for multiple projects
  • a media asset attribute push server such as a media asset center
  • the media asset center actively pushes media asset elements for multiple projects
  • Data can realize the synchronization of media asset metadata between the media asset center and multiple projects, so as to promote the sharing of media asset metadata and improve resource utilization.
  • the media asset metadata may be metadata in the education field.
  • the education media asset metadata is uniformly stored in the media asset center.
  • the media resource center stores the name, grade, first-level subject, second-level subject, textbook version, and textbook chapters of educational media resources.
  • Education media assets are shared in multiple projects. Each project is equipped with an independent database. Media asset metadata needs to be synchronized from the media asset center. Different projects have different media asset synchronization ranges. According to the needs of each project, The media resource center actively pushes the corresponding education media resource metadata to each project.
  • Fig. 1 is a block diagram of the interaction structure between the media asset push server and the project provided by an embodiment of the application.
  • the media asset center 200 includes a media asset synchronization interface 201, an open source message queue system 202, a media asset pusher 203, and a media asset database 204; projects
  • the group 100 includes item 1, item 2, item 3... item n.
  • the media asset synchronization interface 201 communicates with each project, and each project is registered through the media asset synchronization interface 201, and the media asset synchronization interface 201 stores the registration information in the media asset database 204.
  • the open source message queuing system 202 is respectively connected to the media asset synchronization interface 201 and the media asset pusher 203.
  • the media asset pusher 203 monitors whether a new registrant message is generated at the media asset synchronization interface 201 through the open source message queuing system 202, so as to register the current project Push media asset attributes.
  • the media asset pusher 203 listens to the new registrant message through the open source message queue system 202, and at the same time reads the registration of the project that has been stored in the media asset database 204 through the registration process Information, based on the registration message, actively push the corresponding media asset attributes to the project.
  • the media asset database 204 stores educational media asset metadata, including storage media asset ID and storage media asset attributes. At the same time, the registration information of each project is also stored in the media database. When each project is registered in the media asset center, information such as the project ID, the scope of the registered media asset, the attributes of the registered media asset, and the callback address will be stored.
  • the media asset attribute push method provided in the application embodiment can ensure real-time synchronization when there is a new registrant and the media asset attribute changes by calculating the synchronized media asset range of each project.
  • Fig. 2 is a data flow diagram of a method for pushing media properties provided by an embodiment of the application
  • Fig. 3 is a flowchart of a method for pushing media properties provided by an embodiment of the application. 2 and 3, a media asset attribute push method provided by an embodiment of the present application is applied to a media asset pusher 203.
  • the media asset pusher 203 includes a memory 2031 and a processor 2032. The method executed by the processor 2032 includes The following steps:
  • the media asset pusher monitors through the open source message queue system that the project has been registered through the media asset synchronization interface, and then reads the registration information of the project from the media asset database to consider the project Push media asset attributes.
  • the registration information of the designated project includes the scope of registered media assets and the callback address.
  • the scope of registered media assets is used to delineate the type of media assets of the specified project to determine which type of media assets are required for the specified project, for example, to delineate all media assets by grade attribute Elementary school type of media assets, or delineate all types of middle school media assets based on grade attributes.
  • the callback address is used to provide a path. After the media asset pusher determines that the media asset attribute can be pushed to the specified project, it pushes the corresponding media asset attribute to the specified project along the callback address to complete the synchronization of the media asset attribute.
  • the media asset database includes storage media asset IDs and corresponding storage media asset attributes.
  • the media asset pusher After the media asset pusher determines the type of media asset required for the specified project, it queries the media asset database for the storage media asset ID corresponding to the media asset type of the specified project, and the storage media asset ID is used to represent the media asset type stored in the media asset database. The name of each media asset type.
  • the corresponding storage media asset ID can be determined in the media asset database, which will be At least one storage media asset ID corresponding to the registered media asset range of the designated project is searched out, and a storage media asset ID set is generated.
  • the media asset pusher After obtaining the registration information of the specified project, the media asset pusher generates a query instruction and sends it to the media asset database to query the media asset ID set corresponding to the registered media asset range of the specified project.
  • the media asset database forms a storage media asset ID set corresponding to the registered media asset range of the designated project according to the query instruction, and sends it to the media asset pusher.
  • the storage media asset ID set can determine the media asset attributes pushed to the specified project. Therefore, the media asset pusher generates a media asset attribute acquisition instruction after querying the storage media asset ID set, and sends it to the media asset database.
  • the storage media asset ID set includes at least one storage media asset ID, and each storage media asset ID corresponds to a storage media asset attribute. Therefore, at least one storage media asset ID can be determined according to each storage media asset ID in the storage media asset ID set.
  • Property attributes
  • the media asset database selects the storage media asset attribute corresponding to each storage media asset ID according to the media asset attribute acquisition instruction, and sends it to the media asset pusher.
  • S106 Based on the callback address, push the attributes of each storage media asset to the designated project.
  • the registration information stored in the media asset database includes the callback address.
  • the media asset pusher uses the callback address, Push the found storage media asset attributes to the specified project.
  • the media asset attribute push method provided in the embodiment of the application can be monitored by the media asset pusher in real time for the registration of each project. After the registration of a certain project is monitored, the media asset will be updated in time according to the registration information of the project.
  • the corresponding media asset attributes are found in the database, and the found media asset attributes are actively pushed to the corresponding projects according to the callback address corresponding to each project, realizing real-time synchronization of the media asset attributes of the media asset center to each project, achieving education Media asset metadata sharing improves resource utilization.
  • the method provided in this embodiment of the application is to complete the push of the media asset attributes of a project After that, the signature of each project is calculated and stored in the media asset database as a basis for subsequent judgments of the media asset attributes that need to be pushed to the project.
  • FIG. 4 is a flowchart of another method of the media asset attribute pushing method provided by an embodiment of the application.
  • the method provided in the embodiment of the present application based on the method provided in the foregoing embodiment, further includes:
  • S201 Obtain the registered media asset attribute and project ID of the specified project stored in the media asset database, where the registered media asset attribute is the media asset information corresponding to the media asset type determined during the registration of the specified project.
  • a method of calculating the signature based on the registered media properties of each item and using the MD5 algorithm is adopted.
  • the registration information stored in the media asset database also includes the attributes of the registered media asset and the project ID.
  • the media asset pusher obtains the registered media asset attributes and project ID of the designated project from the media asset database.
  • the registered media asset attribute is used to determine the specific media asset information required by the specified project, that is, the media asset information that the specified project focuses on. At this time, the media asset pusher can push the media asset information to the specified project.
  • Registered media asset attributes include: media asset metadata such as name, grade, first-level subject, second-level subject, textbook version, textbook chapters to which it belongs, lecturer, video list details, and knowledge point information corresponding to the video.
  • the scope of registered media assets is used to delineate the type of media assets, and the attributes of registered media assets are used to clarify all media asset information under that media asset type.
  • the corresponding registered media asset attributes are the names, grades, first-level subjects, second-level subjects, textbook editions, textbook chapters, lecturers, and videos of each elementary school type’s metadata. List details, knowledge point information corresponding to the video, etc.
  • S202 Calculate the initial signature of the designated project according to the registered media asset attribute of the designated project.
  • S203 Send the initial signature of the designated project and the project ID to the media asset database for storage.
  • the media asset pusher uses the MD5 algorithm according to the registered media asset attributes of the specified project, and the MD5 value obtained through calculation is used as the initial signature of the specified project.
  • the initial signature of each designated project is associated with the corresponding project ID, and the media asset pusher sends the associated relationship to the media asset database for storage in the media asset database.
  • Fig. 5 is a flowchart of a method for calculating a signature provided by an embodiment of the application.
  • the method provided by the embodiment of the present application uses the MD5 algorithm when calculating the initial signature of each designated item.
  • the designated item is calculated according to the registered media properties of the designated item according to the following steps Initial signature:
  • S301 Calculate the MD5 value of the first-level media asset attribute and the MD5 value of each second-level media asset attribute respectively.
  • the registered media asset attributes include a first-level media asset attribute and at least one second-level media asset attribute.
  • the first-level media asset attribute refers to the attributes of the media asset itself, including: name, grade, first-level subject, second-level subject, textbook version, etc.
  • the secondary media asset attribute refers to the video list corresponding to the media asset. Since each media asset attribute corresponds to multiple video lists, there can be multiple secondary media asset attributes.
  • the first-level media asset attributes are combined with strings, and the MD5 value is calculated; at the same time, for each video list in each secondary media asset attribute, based on each video attribute (playing address, corresponding knowledge) Points, textbook chapters, etc.) do string merging processing, and calculate the MD5 value.
  • the MD5 value of one primary media asset attribute and the MD5 values of multiple secondary media asset attributes are obtained.
  • the MD5 value of the media asset and the video list are combined again, that is, the MD5 value of the primary media asset attribute and the MD5 of each secondary media asset attribute
  • the values are combined again, and the MD5 algorithm is used to calculate again to obtain the final MD5 value, that is, the target MD5 value.
  • Each designated item corresponds to a target MD5 value, and the target MD5 value is used as the initial signature of the designated item.
  • the embodiment of the present application also provides a method for pushing media assets, which is applied to a situation where a media asset attribute changes in a media asset database.
  • FIG. 6 is another flowchart of the method for pushing media asset attributes provided by an embodiment of the application. Specifically, referring to FIG. 6, the media asset pushing method provided in the embodiment of the present application, based on the method provided in the foregoing embodiment, further includes:
  • S401 Receive a change notification sent by the open source message queuing system, where the change notification refers to a notification generated by the media asset database and sent to the open source message queuing system when the attribute of the stored media asset changes.
  • the media asset database is equipped with a real-time monitoring system, which is used to monitor whether the media asset attributes in the media asset database change in real time.
  • a monitoring system monitors that the property of the media asset in the media asset database changes, it generates a change notification, which is sent from the media asset database to the open source message queuing system, and then the open source message queuing system sends the change notification to the media asset pusher.
  • the media asset pusher can perform the following steps, that is, determine the item that can be updated for the media asset attribute according to the changed media asset attribute in the media asset database, and then push the changed media asset attribute to the project .
  • the storage media asset attribute in the media asset database corresponds to at least one project, that is, each project has a corresponding relationship with the storage media asset attribute in the media asset database. Therefore, if there are changed storage media asset attributes in the media asset database, it is possible to determine which items may require media asset attribute update based on the changed storage media asset attributes. At this time, the project that may need to update the media asset attribute is called the item to be updated, and the storage media asset attribute that has changed in the media asset database is called the new media asset attribute.
  • the media asset pusher obtains the item ID to be updated corresponding to the new media asset attribute in the media asset database according to the change notification, and the item to be updated corresponding to the item ID to be updated has the same media asset attribute as the new media asset attribute.
  • the media asset pusher finds the item ID to be updated corresponding to the new media asset attribute, it pushes the new media asset attribute to the item to be updated.
  • the method adopted is the signature comparison method, that is, the signature of the item to be updated needs to be recalculated.
  • the comparison with the initial signature is inconsistent, Then push the new media asset attributes to the project to be updated.
  • Fig. 7 is a flowchart of a method for pushing new media asset attributes provided by an embodiment of the application. Specifically, referring to FIG. 7, in this embodiment, pushing the new media asset attribute to the item to be updated corresponding to the item ID to be updated, that is, step S403 includes:
  • S501 Based on the ID of the item to be updated, obtain the registered media asset attribute, initial signature and callback address of the item to be updated stored in the media asset database.
  • the media asset pusher retrieves the registration information and initial signature of the item to be updated in the media asset database according to the ID of the item to be updated.
  • the registration information includes the attributes of the registered media asset and the callback address.
  • the initial signature is the signature calculated after the media asset pusher pushes the media asset attributes for the project for the first time.
  • S502 Calculate the update signature of the item to be updated according to the registered media asset attribute of the item to be updated.
  • the update signature is calculated again according to the registered media properties of the item to be updated.
  • the updated signature can be regarded as the current signature of the project.
  • the method for calculating the update signature of the item to be updated can refer to the related content of steps S301 to S303, which will not be repeated here.
  • the secondary MD5 algorithm can ensure the sensitivity of media asset attribute changes and reduce storage costs.
  • the media asset pusher pushes the new media asset attribute corresponding to the project to be updated to the corresponding project to be updated based on the ID of the item to be updated and the callback address, so as to realize real-time synchronization when media asset attribute updates are generated at the media asset center. To the project, improve resource utilization.
  • Guangdong Telecom s registered media asset attributes are Grade 1 and People’s Education Edition
  • Jiangsu Telecom registered media asset attributes are Grade 2 and Chinese.
  • the media asset pusher can send The media information of the first grade and the People's Education version stored in the media asset database is pushed to Guangdong Telecom, and the media information of the second grade and Chinese is pushed to Jiangsu Telecom.
  • the new media asset attribute is the third grade, PEP version
  • the project that can update the media asset attribute is Guangdong Telecom.
  • the method provided by the embodiment of this application notifies the corresponding project in real time through the change of the media asset attribute in the media asset database, and then calculates the current signature of each project and compares it with the initial signature of the corresponding project.
  • the comparison is inconsistent.
  • the changed media asset attributes are pushed to the corresponding projects based on the ID of the corresponding project, realizing real-time synchronization of each project when the media asset attributes of the media asset center are changed, and ensuring that each project can receive the latest media asset attributes.
  • invalid notification pushes can be avoided, and the network cost and operating cost of interaction between various projects can be reduced.
  • the method for pushing media asset attributes includes: obtaining registration information of a designated project stored in a media asset database by a media asset pusher, and the registration information includes the scope of the media asset and Callback address.
  • the media asset pusher monitors the registration information of each project in real time.
  • the registration of the specified project searches the media asset database for storage media asset attributes that match the registration information of the specified project. , And actively push the storage media asset attributes to the designated project to complete real-time synchronization of media asset attributes.
  • the method can realize the synchronization of media asset metadata between the media asset center and multiple projects, and achieve the purpose of promoting media asset metadata sharing and improving resource utilization.
  • FIG. 8 is a structural block diagram of a media asset attribute push server provided by an embodiment of the application.
  • an embodiment of the present application provides a media asset attribute push server for executing the relevant steps of the media asset push method shown in FIG. 3.
  • the media asset attribute push server includes: a processor 2032, and storage
  • the processor 2032 can execute instructions in a memory 2031.
  • the processor 2032 is configured to obtain a registered media asset range and a callback address of a designated project stored in a media asset database, where the registered media asset range is a media asset type determined during registration of the designated project, and The callback address is the path through which the specified project receives the media asset attribute push; sends a query instruction carrying the registered media asset range of the specified project to the media asset database, and the query instruction is used to make the media asset database according to the Query the corresponding storage media asset ID for the registered media asset range of the designated project to form a storage media asset ID set.
  • the media asset database includes the storage media asset ID and the corresponding storage media asset attributes; receiving the storage media returned by the media asset database Asset ID set; according to the storage media asset ID set, send a media asset attribute acquisition instruction to the media asset database, the media asset attribute acquisition instruction is used to obtain the media asset database and the storage media asset ID set The storage media asset attribute corresponding to each storage media asset ID; receiving the storage media asset attribute corresponding to each storage media asset ID returned by the media asset database; and based on the callback address, each storage media asset The attribute is pushed to the specified item.
  • the processor 2032 is further configured to: obtain the registered media asset attribute and the project ID of the specified project stored in the media asset database, and the registered media asset attribute is determined by the specified project at the time of registration and the project ID.
  • Media asset information corresponding to the media asset type ; calculate the initial signature of the designated project according to the registered media asset attributes of the designated project; send the initial signature and project ID of the designated project to the media asset database for storage.
  • the registered media asset attributes include a primary media asset attribute and at least one secondary media asset attribute; and, the processor 2032 is further configured to: respectively calculate the MD5 value and each of the primary media asset attributes. MD5 value of two second-level media asset attributes; combine the MD5 value of the first-level media asset attribute and the MD5 value of each second-level media asset attribute to obtain a target MD5 value; determine the target MD5 value The initial signature for the specified item.
  • the processor 2032 is further configured to receive a change notification sent by the open source message queuing system, where the change notification refers to the media asset database being generated and sent to the open source message queuing system when the storage media asset attribute changes
  • the change notification refers to the media asset database being generated and sent to the open source message queuing system when the storage media asset attribute changes
  • obtain the item ID to be updated corresponding to the new media asset attribute in the media asset database the new media asset attribute refers to the storage media asset that has changed in the media asset database
  • the item ID to be updated refers to the item ID for which the media asset attribute needs to be updated; the new media asset attribute is pushed to the item to be updated corresponding to the item ID to be updated.
  • the processor 2032 is further configured to: based on the ID of the item to be updated, obtain the registered media asset attribute, initial signature and callback address of the item to be updated stored in the media asset database; according to the item to be updated Calculate the update signature of the item to be updated; compare the update signature and the initial signature; if the update signature and the initial signature are inconsistent, based on the item ID to be updated and the callback address, the corresponding The new media asset attributes are pushed to the project to be updated.
  • the embodiment of the present application provides a storage medium in which a computer program is stored.
  • a computer program is stored.
  • the media property pushing system executes the computer program, when the media property pushing system executes the aforementioned embodiment Media asset attribute push method described above.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, abbreviated as: ROM) or a random access memory (English: random access memory, abbreviated as: RAM), etc.
  • ROM read-only memory
  • RAM random access memory
  • the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application can be embodied in the form of software products in essence or parts that contribute to related technologies.
  • the computer software products can be stored in storage media, such as ROM/RAM, A magnetic disk, an optical disk, etc., include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in the various embodiments or some parts of the embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种媒资属性推送方法及服务器,由媒资推送器获取指定项目的媒资范围和回调地址。发送查询指令至媒资数据库,接收媒资数据库返回的存储媒资ID集合。发送媒资属性获取指令至媒资数据库,接收媒资数据库返回的每个存储媒资ID对应的存储媒资属性;基于回调地址,将每个存储媒资属性推送至指定项目。可见,本申请提供的方法,由媒资推送器实时监听每个项目的注册信息,在监听到指定项目注册完成时,在媒资数据库中查找与指定项目的注册信息匹配的存储媒资属性,并主动推送至该指定项目,完成媒资属性的实时同步。该方法可以实现媒资中心与多个项目之间进行媒资元数据的同步,达到促进媒资元数据共享,提高资源利用率的目的。

Description

一种媒资属性推送方法及服务器
本申请要求在2019年12月02日提交中国专利局、申请号为201911213547.9、发明名称为“一种媒资属性推送方法及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,尤其涉及一种媒资属性推送方法及服务器。
背景技术
服务提供商自建媒资中心管理所有的媒资内容并进行分类运营,每与一家广电运营商签订服务提供商身份合作后,需要将中心结点的内容同步到运营商的点播系统进行呈现与播放,此处,将每个签订合作的广电运营商作为媒资中心的一个项目。
为保证推送成本,媒资中心推送的是各个项目所需的媒资元数据,而非具体媒资,此处,将媒资元数据作为媒资属性进行推送。每个项目处配置有独立的数据库,在某个项目需要媒资属性时,由该项目向媒资中心发送媒资属性获取请求,再由媒资中心将该项目所需的媒资属性推送至该项目,并存储在该项目的数据库中。
但是,由于现有的媒资属性推送方法是采用“谁请求向谁推送”的方式,媒资中心的媒资属性的推送较为被动,通过项目的请求再进行推送较为浪费时间,无法保证媒资中心是否能够及时地向每个项目推送媒资属性。
发明内容
本申请提供了一种媒资属性推送方法及服务器,以解决现有的方法在为项目推送媒资属性时不及时的问题。
第一方面,本申请提供了一种媒资属性推送方法,包括以下步骤:
获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,所述注册媒资范围是所述指定项目在注册时确定的媒资类型,所述回调地址是所述指定项目接收媒资属性推送的路径;
发送携带所述指定项目的注册媒资范围的查询指令至媒资数据库,所述查询指令用于使所述媒资数据库根据所述指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,所述媒资数据库包括存储媒资ID和对应的存储媒资属性;
接收所述媒资数据库返回的存储媒资ID集合;
根据所述存储媒资ID集合,发送媒资属性获取指令至媒资数据库,所述媒资属性 获取指令用于获取所述媒资数据库中与所述存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性;
接收所述媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性;
基于所述回调地址,将每个所述存储媒资属性推送至所述指定项目。
第二方面,本申请实施例提供的一种媒资属性推送服务器,包括:
处理器,以及用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为:获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,所述注册媒资范围是所述指定项目在注册时确定的媒资类型,所述回调地址是所述指定项目接收媒资属性推送的路径;
发送携带所述指定项目的注册媒资范围的查询指令至媒资数据库,所述查询指令用于使所述媒资数据库根据所述指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,所述媒资数据库包括存储媒资ID和对应的存储媒资属性;
接收所述媒资数据库返回的存储媒资ID集合;
根据所述存储媒资ID集合,发送媒资属性获取指令至媒资数据库,所述媒资属性获取指令用于获取所述媒资数据库中与所述存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性;
接收所述媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性;
基于所述回调地址,将每个所述存储媒资属性推送至所述指定项目。
由以上技术方案可知,本申请实施例提供的一种媒资属性推送方法及服务器,由媒资推送器获取媒资数据库中存储的指定项目的注册信息,该注册信息包括媒资范围和回调地址。发送携带指定项目的注册媒资范围的查询指令至媒资数据库,接收媒资数据库根据查询指令返回的存储媒资ID集合。发送媒资属性获取指令至媒资数据库,接收媒资数据库根据媒资属性获取指令返回的每个存储媒资ID对应的存储媒资属性;基于回调地址,由媒资推送器将每个存储媒资属性推送至指定项目。可见,本申请提供的方法,由媒资推送器实时监听每个项目的注册信息,在监听到指定项目注册完成时,在媒资数据库中查找与指定项目的注册信息相匹配的存储媒资属性,并将该存储媒资属性主动推送至该指定项目,完成媒资属性的实时同步。该方法可以实现媒资中心与多个项目之间进行媒资元数据的同步,达到促进媒资元数据共享,提高资源利用率的目的。
附图说明
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简 单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的媒资属性推送服务器与项目的交互结构框图;
图2为本申请实施例提供的媒资属性推送方法的数据流图;
图3为本申请实施例提供的媒资属性推送方法的流程图;
图4为本申请实施例提供的媒资属性推送方法的另一方法流程图;
图5为本申请实施例提供的计算签名的方法流程图;
图6为本申请实施例提供的媒资属性推送方法的又一流程图;
图7为本申请实施例提供的推送新媒资属性的方法流程图;
图8为本申请实施例提供的媒资属性推送服务器的结构框图。
具体实施方式
本申请实施例提供的一种媒资属性推送方法,应用于媒资属性推送服务器,如媒资中心,媒资中心内存储有媒资元数据,媒资中心为多个项目主动推送媒资元数据,可以实现媒资中心与多个项目之间进行媒资元数据的同步,达到促进媒资元数据共享,提高资源利用率的目的。
媒资元数据可为教育领域的元数据,此时,教育媒资元数据统一存储在媒资中心。媒资中心存储有教育媒资的名称、年级、一级科目、二级科目、教材版本、所属教材章节等属性。教育媒资在多个项目中共享,每个项目均配置有独立的数据库,需要从媒资中心同步媒资元数据,不同的项目有不同的媒资同步范围,根据每个项目的需求,由媒资中心将对应的教育媒资元数据主动推送至每个项目。
图1为本申请实施例提供的媒资属性推送服务器与项目的交互结构框图。参见图1所示的媒资中心200和项目群100的交互结构框图,其中,媒资中心200包括媒资同步接口201、开源消息队列系统202、媒资推送器203和媒资数据库204;项目群100包括项目1、项目2、项目3……项目n。媒资同步接口201与每个项目进行通信,每个项目通过媒资同步接口201进行注册,并由媒资同步接口201将注册信息存储在媒资数据库204。开源消息队列系统202分别与媒资同步接口201和媒资推送器203连接,媒资推送器203通过开源消息队列系统202监听媒资同步接口201处是否产生新注册方消息,以便向当前注册项目推送媒资属性。在某个项目通过媒资同步接口201进行注册时,媒资推送器203通过开源消息队列系统202监听到新注册方消息,同时读取已通过注册过程存储在媒资数据库204中该项目的注册信息,基于注册消息,向该项目主动推送对应的媒资属性。
媒资数据库204存储有教育媒资元数据,包括存储媒资ID和存储媒资属性。同时,每个项目的注册消息也存储在媒资数据库。每个项目在媒资中心注册时,会存储项目ID、注册媒资范围、注册媒资属性和回调地址等信息。
为了使得媒资中心能够将每个项目所需的媒资属性主动推送至相应项目,并在媒资中心的媒资属性发生更新时,能够及时地向每个项目推送相应的媒资属性,本申请实施例提供的媒资属性推送方法,通过计算每个项目的同步媒资范围,可以保证在存在新注册方以及媒资属性发生变更时,实现实时同步。
图2为本申请实施例提供的媒资属性推送方法的数据流图;图3为本申请实施例提供的媒资属性推送方法的流程图。参见图2和图3,本申请实施例提供的一种媒资属性推送方法,应用于媒资推送器203,媒资推送器203包括存储器2031和处理器2032,处理器2032执行的该方法包括以下步骤:
S101、获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,注册媒资范围是所述指定项目在注册时确定的媒资类型,回调地址是所述指定项目接收媒资属性推送的路径。
在为每个项目推送媒资属性时,由媒资推送器通过开源消息队列系统监听到该项目已通过媒资同步接口完成注册之后,向媒资数据库读取该项目的注册信息,以为该项目推送媒资属性。
指定项目的注册信息包括注册媒资范围和回调地址,注册媒资范围用于圈定指定项目的媒资类型,以确定指定项目所需的是哪一类型的媒资,例如,以年级属性圈定所有小学类型的媒资,或者,以年级属性圈定所有中学类型的媒资。
回调地址用于提供一种路径,在媒资推送器确定出可向指定项目推送媒资属性后,将相应的媒资属性沿回调地址推送至指定项目,完成媒资属性的同步。
S102、发送携带指定项目的注册媒资范围的查询指令至媒资数据库,查询指令用于使媒资数据库根据指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,媒资数据库包括存储媒资ID和对应的存储媒资属性。
媒资推送器在确定出指定项目所需的媒资类型之后,在媒资数据库中查询与指定项目的媒资类型对应的存储媒资ID,存储媒资ID用于表征媒资数据库中存储的每个媒资类型的名称。
每个指定项目的注册媒资范围与媒资数据库中存储的媒资类型存在对应关系,根据指定项目的注册媒资范围,即可在媒资数据库中确定出对应的存储媒资ID,将与指定项目的注册媒资范围对应的至少一个存储媒资ID查找出来,并生成存储媒资ID集合。
媒资推送器在获取到指定项目的注册信息之后,生成查询指令,并发送至媒资数 据库,以查询媒资数据库中与指定项目的注册媒资范围对应的存储媒资ID集合。
S103、接收媒资数据库返回的存储媒资ID集合。
媒资数据库根据查询指令将与指定项目的注册媒资范围对应的存储媒资ID形成存储媒资ID集合,并发送至媒资推送器。
S104、根据存储媒资ID集合,发送媒资属性获取指令至媒资数据库,媒资属性获取指令用于获取媒资数据库中与存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性。
存储媒资ID集合可以确定出向指定项目推送的媒资属性,因此,媒资推送器在查询到存储媒资ID集合之后,生成媒资属性获取指令,并发送至媒资数据库。
存储媒资ID集合中包括至少一个存储媒资ID,每个存储媒资ID对应一个存储媒资属性,因此,可根据存储媒资ID集合中每个存储媒资ID,确定出至少一个存储媒资属性。
S105、接收媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性。
媒资数据库根据媒资属性获取指令将与每个存储媒资ID对应的存储媒资属性挑选出来,并发送至媒资推送器。
S106、基于回调地址,将每个存储媒资属性推送至指定项目。
每个指定项目在注册时,存储在媒资数据库的注册信息中包括回调地址,在根据本实施例提供的方法确定出可向指定项目推送的媒资属性之后,媒资推送器根据回调地址,将查找出的存储媒资属性推送至该指定项目。
可见,本申请实施例提供的媒资属性推送方法,可以由媒资推送器实时监听每个项目的注册情况,在监听到某个项目完成注册后,及时根据该项目的注册信息,在媒资数据库中查找出对应的媒资属性,并将查找出的媒资属性依据每个项目对应的回调地址主动推送至相应项目,实现媒资中心的媒资属性向每个项目的实时同步,实现教育媒资元数据的共享,提高资源利用率。
在媒资中心中存储的媒资属性发生变化或更新时,为了使得更新后的媒资属性能够实时同步给相应的项目,本申请实施例提供的方法,在完成一次项目的媒资属性的推送之后,计算每个项目的签名,并存储在媒资数据库,以作为后序判断需要向该项目推送更新的媒资属性的依据。
图4为本申请实施例提供的媒资属性推送方法的另一方法流程图。
具体地,参见图4,本申请实施例提供的方法,基于前述实施例提供的方法基础上,还包括:
S201、获取媒资数据库中存储的指定项目的注册媒资属性和项目ID,注册媒资属 性是指定项目在注册时确定的与媒资类型对应的媒资信息。
为计算每个项目的签名,本实施例中,采用基于每个项目的注册媒资属性并利用MD5算法计算签名的方式。
指定项目在媒体中心注册时,媒资数据库中存储的注册信息还包括注册媒资属性和项目ID。由媒资推送器向媒资数据库中获取指定项目的注册媒资属性和项目ID。
注册媒资属性用于确定指定项目具体所需的媒资信息,即指定项目所关注的媒资信息,此时,媒资推送器可向指定项目推送的媒资信息。注册媒资属性包括:名称、年级、一级科目、二级科目、教材版本、所属教材章节、讲师、视频列表详情、视频对应的知识点信息等媒资元数据。注册媒资范围用于圈定媒资类型,而注册媒资属性则用于明确在该媒资类型下的所有媒资信息。
例如,以年级属性圈定所有小学类型的媒资,则对应的注册媒资属性为小学类型的各元数据的名称、年级、一级科目、二级科目、教材版本、所属教材章节、讲师、视频列表详情、视频对应的知识点信息等。
S202、根据指定项目的注册媒资属性,计算指定项目的初始签名。
S203、将指定项目的初始签名和项目ID发送至媒资数据库,进行存储。
媒资推送器依据指定项目的注册媒资属性,利用MD5算法,通过计算得到的MD5值作为指定项目的初始签名。将每个指定项目的初始签名与对应的项目ID建立关联关系,并由媒资推送器将该关联关系发送至媒资数据库,以在媒资数据库进行存储。
将每个项目的初始签名和项目ID存储在媒资数据库,便于后续在媒资数据库中的存储媒资属性发生变化时,通过调用与发生变化的存储媒资属性对应的项目ID和初始签名,以根据初始签名来判断该项目是否需要更新自身的媒资属性,进而实现媒资属性的实时同步。
图5为本申请实施例提供的计算签名的方法流程图。参见图5,本申请实施例提供的方法,在计算每个指定项目的初始签名时,采用MD5算法,具体地,步骤S202中,按照下述步骤根据指定项目的注册媒资属性,计算指定项目的初始签名:
S301、分别计算所述一级媒资属性的MD5值和每个二级媒资属性的MD5值。
本实施例采用二级MD5算法,此时,注册媒资属性包括一级媒资属性和至少一个二级媒资属性。一级媒资属性是指媒资本身的属性,包括:名称、年级、一级科目、二级科目、教材版本等。二级媒资属性是指媒资对应的视频列表,由于每个媒资属性对应多个视频列表,因此二次媒资属性可为多个。
利用MD5算法,对一级媒资属性做字符串合并处理,并计算MD5值;同时,对每个二级媒资属性中的每个视频列表,基于每个视频属性(播放地址、对应的知识点、 教材章节等)做字符串合并处理,并计算MD5值。以此,得到一个一级媒资属性的MD5值和多个二级媒资属性的MD5值。
S302、将一级媒资属性的MD5值和每个二级媒资属性的MD5值进行合并计算,得到目标MD5值。
为确定每个项目的唯一的MD5值,本实施例中,将媒资和视频列表的MD5值再做二次合并,即将一级媒资属性的MD5值和每个二级媒资属性的MD5值进行再次合并,通过MD5算法再次进行计算,得到最终的MD5值,即目标MD5值。
S303、将目标MD5值确定为指定项目的初始签名。
每个指定项目对应一个目标MD5值,将该目标MD5值作为该指定项目的初始签名。
由于媒资数据库中的媒资元数据是会更新和变化的,而在媒资数据库中的媒资属性发生变化或更新后,需及时向每个项目同步该媒资属性,以提高资源利用率。为此,本申请实施例还提供一种媒资推送方法,应用在媒资数据库发生媒资属性变化的情况。
图6为本申请实施例提供的媒资属性推送方法的又一流程图。具体地,参见图6,本申请实施例提供的媒资推送方法,基于前述实施例提供的方法,还包括:
S401、接收开源消息队列系统发送的变更通知,变更通知是指媒资数据库在存储媒资属性发生变化时生成并发送至开源消息队列系统的通知。
媒资数据库处配置有实时监控系统,该监控系统用于实时监控媒资数据库中的媒资属性是否发生变化。在监控系统监控到媒资数据库中的媒资属性发生变化时,生成变更通知,由媒资数据库发送至开源消息队列系统,再由开源消息队列系统将该变更通知发送至媒资推送器。
媒资推送器接收到变更通知后,可执行后续的步骤,即根据媒资数据库中发生变化的媒资属性确定可以进行媒资属性更新的项目,再将发生变化的媒资属性推送至该项目。
S402、响应于变更通知,获取与媒资数据库中的新媒资属性对应的待更新项目ID,新媒资属性是指媒资数据库中发生变化的存储媒资属性,待更新项目ID是指需要进行媒资属性更新的项目ID。
根据每个项目的注册媒资属性,可确定媒资数据库中的存储媒资属性对应至少一个项目,即每个项目与媒资数据库中的存储媒资属性存在对应关系。因此,在媒资数据库中存在变化的存储媒资属性,即可根据该变化的存储媒资属性确定出哪些项目可能需要进行媒资属性更新。此时,将可能需要进行媒资属性更新的项目称为待更新项目,将媒资数据库中发生变化的存储媒资属性称为新媒资属性。
为此,媒资推送器根据变更通知,在媒资数据库中获取与新媒资属性对应的待更新项目ID,待更新项目ID对应的待更新项目与新媒资属性具有相同的媒资属性。
S403、将新媒资属性推送至待更新项目ID对应的待更新项目。
如果媒资推送器查找到与新媒资属性对应的待更新项目ID,则将该新媒资属性推送给该待更新项目。
本实施例,在媒资推送器将新媒资属性推送给待更新项目时,采用的方法是签名对比的方式,即还需对待更新项目的签名进行再次计算,在与初始签名对比不一致时,再将新媒资属性推送给待更新项目。
图7为本申请实施例提供的推送新媒资属性的方法流程图。具体地,参见图7,本实施例中,将新媒资属性推送至所述待更新项目ID对应的待更新项目,即步骤S403包括:
S501、基于待更新项目ID,获取媒资数据库存储的待更新项目的注册媒资属性、初始签名和回调地址。
媒资推送器根据待更新项目ID,在媒资数据库中调取该待更新项目的注册信息和初始签名,注册信息包括注册媒资属性和回调地址。
初始签名为媒资推送器首次为该项目推送媒资属性后计算的签名。
S502、根据待更新项目的注册媒资属性,计算待更新项目的更新签名。
如果某个项目需要进行媒资属性的更新,则该项目的签名会发生变化。因此,再次根据待更新项目的注册媒资属性计算更新签名。更新签名可看做是该项目的当前签名。
本实施例中,在计算待更新项目的更新签名的方法可参照步骤S301至S303的相关内容,此处不再赘述。二级MD5算法可以保证媒资属性变更的敏感性,减少存储成本。
S503、对比更新签名和初始签名。
S504、如果更新签名和初始签名不一致,则基于待更新项目ID和回调地址,将对应的新媒资属性推送至待更新项目。
将待更新项目的初始签名和更新签名进行对比,如果二者一致,说明待更新项目不需要进行媒资属性的更新,而如果二者不一致,则说明待更新项目需要进行媒资属性的更新,此时,由媒资推送器基于待更新项目ID和回调地址,将与待更新项目对应的新媒资属性推送给对应的待更新项目,实现媒资中心处产生媒资属性更新时的实时同步至项目,提高资源利用率。
例如,广东电信的注册媒资属性是一年级、人教版,而江苏电信的注册媒资属性 为二年级、语文,在初次为上述两个项目推送媒资属性时,媒资推送器可将媒资数据库中存储的一年级和人教版的媒资信息推送给广东电信,将二年级和语文对应的媒资信息推送给江苏电信。
而如果媒资数据库中产生媒资属性的变化,例如,新媒资属性为三年级、人教版,此时,根据人教版的媒资属性确定可以进行媒资属性更新的项目是广东电信。再计算广东电信的当前签名,若当前签名与广东电信的初始签名不一致,则将三年级、人教版对应的媒资属性推送给广东电信,而不推送给江苏电信。
可见,本申请实施例提供的方法,通过媒资数据库中媒资属性的变更,向对应的项目实时通知,再通过计算每个项目的当前签名,与相应项目的初始签名进行对比,在对比不一致时,将变更的媒资属性,基于相应项目的ID推送给对应的项目,实现媒资中心的媒资属性变更时向各个项目的实时同步,确保每个项目能够接收到最新的媒资属性。同时,还可避免无效的通知推送,减少各项目间交互的网络成本以及运行成本。
从上述实施例可以看出,本申请实施例提供的一种媒资属性推送方法,包括:由媒资推送器获取媒资数据库中存储的指定项目的注册信息,该注册信息包括媒资范围和回调地址。发送携带指定项目的注册媒资范围的查询指令至媒资数据库,接收媒资数据库根据查询指令返回的存储媒资ID集合。发送媒资属性获取指令至媒资数据库,接收媒资数据库根据媒资属性获取指令返回的每个存储媒资ID对应的存储媒资属性;基于回调地址,由媒资推送器将每个存储媒资属性推送至指定项目。可见,本申请提供的方法,由媒资推送器实时监听每个项目的注册信息,在监听到指定项目注册完成时,在媒资数据库中查找与指定项目的注册信息相匹配的存储媒资属性,并将该存储媒资属性主动推送至该指定项目,完成媒资属性的实时同步。该方法可以实现媒资中心与多个项目之间进行媒资元数据的同步,达到促进媒资元数据共享,提高资源利用率的目的。
图8为本申请实施例提供的媒资属性推送服务器的结构框图。参见图8,本申请实施例提供了一种媒资属性推送服务器,用于执行图3所示的媒资推送方法的相关步骤,该媒资属性推送服务器包括:处理器2032,以及用于存储所述处理器2032可执行指令的存储器2031。
其中,所述处理器2032被配置为:获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,所述注册媒资范围是所述指定项目在注册时确定的媒资类型,所述回调地址是所述指定项目接收媒资属性推送的路径;发送携带所述指定项目的注册媒资范围的查询指令至媒资数据库,所述查询指令用于使所述媒资数据库根据所述指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,所述媒资数据库包括存储媒资ID和对应的存储媒资属性;接收所述媒资数据库返回的存储媒资ID 集合;根据所述存储媒资ID集合,发送媒资属性获取指令至媒资数据库,所述媒资属性获取指令用于获取所述媒资数据库中与所述存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性;接收所述媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性;基于所述回调地址,将每个所述存储媒资属性推送至所述指定项目。
进一步地,所述处理器2032被进一步配置为:获取媒资数据库中存储的指定项目的注册媒资属性和项目ID,所述注册媒资属性是所述指定项目在注册时确定的与所述媒资类型对应的媒资信息;根据所述指定项目的注册媒资属性,计算指定项目的初始签名;将所述指定项目的初始签名和项目ID发送至媒资数据库,进行存储。
进一步地,所述注册媒资属性包括一级媒资属性和至少一个二级媒资属性;以及,所述处理器2032被进一步配置为:分别计算所述一级媒资属性的MD5值和每个二级媒资属性的MD5值;将所述一级媒资属性的MD5值和每个所述二级媒资属性的MD5值进行合并计算,得到目标MD5值;将所述目标MD5值确定为所述指定项目的初始签名。
进一步地,所述处理器2032被进一步配置为:接收开源消息队列系统发送的变更通知,所述变更通知是指所述媒资数据库在存储媒资属性发生变化时生成并发送至开源消息队列系统的通知;响应于所述变更通知,获取与所述媒资数据库中的新媒资属性对应的待更新项目ID,所述新媒资属性是指所述媒资数据库中发生变化的存储媒资属性,所述待更新项目ID是指需要进行媒资属性更新的项目ID;将所述新媒资属性推送至所述待更新项目ID对应的待更新项目。
进一步地,所述处理器2032被进一步配置为:基于所述待更新项目ID,获取所述媒资数据库存储的待更新项目的注册媒资属性、初始签名和回调地址;根据所述待更新项目的注册媒资属性,计算所述待更新项目的更新签名;对比所述更新签名和初始签名;如果所述更新签名和初始签名不一致,则基于所述待更新项目ID和回调地址,将对应的新媒资属性推送至待更新项目。
本申请实施例提供了一种存储介质,所述存储介质中存储有计算机程序,当媒资属性推送系统的至少一个处理器执行所述计算机程序时,当媒资属性推送系统执行前述实施例所述的媒资属性推送方法。
所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请实施例中的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例 或者实施例的某些部分所述的方法。
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于媒资属性推送服务器实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。
以上所述的本申请实施方式并不构成对本申请保护范围的限定。

Claims (10)

  1. 一种媒资属性推送方法,其特征在于,包括以下步骤:
    获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,所述注册媒资范围是所述指定项目在注册时确定的媒资类型,所述回调地址是所述指定项目接收媒资属性推送的路径;
    发送携带所述指定项目的注册媒资范围的查询指令至媒资数据库,所述查询指令用于使所述媒资数据库根据所述指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,所述媒资数据库包括存储媒资ID和对应的存储媒资属性;
    接收所述媒资数据库返回的存储媒资ID集合;
    根据所述存储媒资ID集合,发送媒资属性获取指令至媒资数据库,所述媒资属性获取指令用于获取所述媒资数据库中与所述存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性;
    接收所述媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性;
    基于所述回调地址,将每个所述存储媒资属性推送至所述指定项目。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    获取媒资数据库中存储的指定项目的注册媒资属性和项目ID,所述注册媒资属性是所述指定项目在注册时确定的与所述媒资类型对应的媒资信息;
    根据所述指定项目的注册媒资属性,计算指定项目的初始签名;
    将所述指定项目的初始签名和项目ID发送至媒资数据库,进行存储。
  3. 根据权利要求2所述的方法,其特征在于,所述注册媒资属性包括一级媒资属性和至少一个二级媒资属性;以及,所述根据指定项目的注册媒资属性,计算指定项目的初始签名,包括:
    分别计算所述一级媒资属性的MD5值和每个二级媒资属性的MD5值;
    将所述一级媒资属性的MD5值和每个所述二级媒资属性的MD5值进行合并计算,得到目标MD5值;
    将所述目标MD5值确定为所述指定项目的初始签名。
  4. 根据权利要求2所述的方法,其特征在于,还包括:
    接收开源消息队列系统发送的变更通知,所述变更通知是指所述媒资数据库在存储媒资属性发生变化时生成并发送至开源消息队列系统的通知;
    响应于所述变更通知,获取与所述媒资数据库中的新媒资属性对应的待更新项目ID,所述新媒资属性是指所述媒资数据库中发生变化的存储媒资属性,所述待更新项目ID是指需要进行媒资属性更新的项目ID;
    将所述新媒资属性推送至所述待更新项目ID对应的待更新项目。
  5. 根据权利要求4所述的方法,其特征在于,所述将新媒资属性推送至所述待更新项目ID对应的待更新项目,包括:
    基于所述待更新项目ID,获取所述媒资数据库存储的待更新项目的注册媒资属性、初始签名和回调地址;
    根据所述待更新项目的注册媒资属性,计算所述待更新项目的更新签名;
    对比所述更新签名和初始签名;
    如果所述更新签名和初始签名不一致,则基于所述待更新项目ID和回调地址,将对应的新媒资属性推送至待更新项目。
  6. 一种媒资属性推送服务器,其特征在于,包括:
    处理器,以及用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为:获取媒资数据库中存储的指定项目的注册媒资范围和回调地址,所述注册媒资范围是所述指定项目在注册时确定的媒资类型,所述回调地址是所述指定项目接收媒资属性推送的路径;
    发送携带所述指定项目的注册媒资范围的查询指令至媒资数据库,所述查询指令用于使所述媒资数据库根据所述指定项目的注册媒资范围查询对应的存储媒资ID,形成存储媒资ID集合,所述媒资数据库包括存储媒资ID和对应的存储媒资属性;
    接收所述媒资数据库返回的存储媒资ID集合;
    根据所述存储媒资ID集合,发送媒资属性获取指令至媒资数据库,所述媒资属性获取指令用于获取所述媒资数据库中与所述存储媒资ID集合中的每个存储媒资ID对应的存储媒资属性;
    接收所述媒资数据库返回的与每个存储媒资ID相对应的存储媒资属性;
    基于所述回调地址,将每个所述存储媒资属性推送至所述指定项目。
  7. 根据权利要求6所述的媒资属性推送服务器,其特征在于,所述处理器被进一步配置为:
    获取媒资数据库中存储的指定项目的注册媒资属性和项目ID,所述注册媒资属性是所述指定项目在注册时确定的与所述媒资类型对应的媒资信息;
    根据所述指定项目的注册媒资属性,计算指定项目的初始签名;
    将所述指定项目的初始签名和项目ID发送至媒资数据库,进行存储。
  8. 根据权利要求7所述的媒资属性推送服务器,其特征在于,所述注册媒资属性包括一级媒资属性和至少一个二级媒资属性;以及,所述处理器被进一步配置为:
    分别计算所述一级媒资属性的MD5值和每个二级媒资属性的MD5值;
    将所述一级媒资属性的MD5值和每个所述二级媒资属性的MD5值进行合并计算,得到目标MD5值;
    将所述目标MD5值确定为所述指定项目的初始签名。
  9. 根据权利要求7所述的媒资属性推送服务器,其特征在于,所述处理器被进一步配置为:
    接收开源消息队列系统发送的变更通知,所述变更通知是指所述媒资数据库在存 储媒资属性发生变化时生成并发送至开源消息队列系统的通知;
    响应于所述变更通知,获取与所述媒资数据库中的新媒资属性对应的待更新项目ID,所述新媒资属性是指所述媒资数据库中发生变化的存储媒资属性,所述待更新项目ID是指需要进行媒资属性更新的项目ID;
    将所述新媒资属性推送至所述待更新项目ID对应的待更新项目。
  10. 根据权利要求9所述的媒资属性推送服务器,其特征在于,所述处理器被进一步配置为:
    基于所述待更新项目ID,获取所述媒资数据库存储的待更新项目的注册媒资属性、初始签名和回调地址;
    根据所述待更新项目的注册媒资属性,计算所述待更新项目的更新签名;
    对比所述更新签名和初始签名;
    如果所述更新签名和初始签名不一致,则基于所述待更新项目ID和回调地址,将对应的新媒资属性推送至待更新项目。
PCT/CN2020/129874 2019-12-02 2020-11-18 一种媒资属性推送方法及服务器 WO2021109871A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911213547.9 2019-12-02
CN201911213547.9A CN111163127B (zh) 2019-12-02 2019-12-02 一种媒资属性推送方法及服务器

Publications (1)

Publication Number Publication Date
WO2021109871A1 true WO2021109871A1 (zh) 2021-06-10

Family

ID=70556316

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/129874 WO2021109871A1 (zh) 2019-12-02 2020-11-18 一种媒资属性推送方法及服务器

Country Status (2)

Country Link
CN (1) CN111163127B (zh)
WO (1) WO2021109871A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872937A (zh) * 2021-08-26 2021-12-31 湖南快乐阳光互动娱乐传媒有限公司 一种媒资注入方法及装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163127B (zh) * 2019-12-02 2021-12-14 聚好看科技股份有限公司 一种媒资属性推送方法及服务器

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092764A (zh) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 基于互联网电视的内容分发方法及系统
CN106658158A (zh) * 2016-12-27 2017-05-10 Ut斯达康(深圳)技术有限公司 一种媒资数据的下发方法及下发装置
WO2018195142A1 (en) * 2017-04-20 2018-10-25 Rovi Guides, Inc. Systems and methods for presenting targeted metadata metadata in display constrained environments
CN111163127A (zh) * 2019-12-02 2020-05-15 聚好看科技股份有限公司 一种媒资属性推送方法及服务器

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205048A1 (en) * 2003-03-28 2004-10-14 Pizzo Michael J. Systems and methods for requesting and receiving database change notifications
CN103702135A (zh) * 2013-12-17 2014-04-02 乐视网信息技术(北京)股份有限公司 视频分发与媒体资源系统进行交互的方法和系统
CN104994399A (zh) * 2015-07-01 2015-10-21 周义波 一种媒资数据的分布式管理系统及其方法
CN107026882B (zh) * 2016-02-02 2021-02-12 华为技术有限公司 一种资源获取的方法及相关设备
CN107196983A (zh) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 一种资源分发方法及装置
CN106354827B (zh) * 2016-08-31 2021-04-13 Tcl科技集团股份有限公司 一种媒资数据整合方法及系统
CN107038238A (zh) * 2017-04-19 2017-08-11 深圳市茁壮网络股份有限公司 一种数据的关联、播放方法及装置
CN107277181A (zh) * 2017-08-14 2017-10-20 深圳市金立通信设备有限公司 一种消息推送方法、服务器及消息推送系统
CN110391940B (zh) * 2019-07-26 2022-09-27 广州虎牙科技有限公司 服务地址的响应方法、装置、系统、设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092764A (zh) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 基于互联网电视的内容分发方法及系统
CN106658158A (zh) * 2016-12-27 2017-05-10 Ut斯达康(深圳)技术有限公司 一种媒资数据的下发方法及下发装置
WO2018195142A1 (en) * 2017-04-20 2018-10-25 Rovi Guides, Inc. Systems and methods for presenting targeted metadata metadata in display constrained environments
CN111163127A (zh) * 2019-12-02 2020-05-15 聚好看科技股份有限公司 一种媒资属性推送方法及服务器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872937A (zh) * 2021-08-26 2021-12-31 湖南快乐阳光互动娱乐传媒有限公司 一种媒资注入方法及装置

Also Published As

Publication number Publication date
CN111163127A (zh) 2020-05-15
CN111163127B (zh) 2021-12-14

Similar Documents

Publication Publication Date Title
EP3640823B1 (en) Service data storage method, device, storage medium, and electronic device
US7428220B1 (en) Method and apparatus for data aggregation in a distributed system
US10574752B2 (en) Distributed data storage method, apparatus, and system
US7596618B2 (en) Splitting a workload of a node
US8224972B2 (en) Invitation to bind to a device
WO2021042923A1 (zh) 数据分片存储方法、装置、终端及计算机可读存储介质
WO2021109871A1 (zh) 一种媒资属性推送方法及服务器
WO2018201887A1 (zh) 数据响应方法、装置、终端设备及介质
US11899689B2 (en) Blockchain-based data synchronization method, apparatus, and computer-readable storage medium
WO2015140927A1 (ja) データ転送監視システム、データ転送監視方法、および拠点システム
CN110555015B (zh) 数据库实体管理方法、装置、电子设备及存储介质
CN107451208B (zh) 一种数据搜索方法与装置
US9445162B2 (en) Interactive personal/internet protocol television reservation system, reservation plan management method and device
CN110413595B (zh) 一种应用于分布式数据库的数据迁移方法和相关装置
US8631465B2 (en) Terminal of an environment management station and a service user provided a service, method for processing an evaluation value of a terminal, a service request and a service providing
US20180157461A1 (en) Computer Systems for Streaming Influencer Device Audio Content to Listener Devices
US20230024345A1 (en) Data processing method and apparatus, device, and readable storage medium
US20220261451A1 (en) Method and system for creating and using persona in a content management system
US20120317275A1 (en) Methods and devices for node distribution
JP2015525014A (ja) 同じ意味の複数の信号を取り込む方法
WO2017067374A1 (zh) 一种消息推送方法及推送服务器
US20060209717A1 (en) Distributed storing of network position information for nodes
US9286315B2 (en) Resolving synchronization conflicts based on state information
EP3940557A1 (en) Method of distributing files through a content delivery network based also on artificial intelligence algorithms, telematic system and servers that allow to implement it
US20210349884A1 (en) Automated dataset description and understanding

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20896228

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20896228

Country of ref document: EP

Kind code of ref document: A1