OCG broadcasting control method and device

文档序号:1342049 发布日期:2020-07-17 浏览:10次 中文

阅读说明:本技术 一种ocg播发的控制方法及装置 (OCG broadcasting control method and device ) 是由 徐佳宏 刘彬 李威青 李海刚 于 2019-01-10 设计创作,主要内容包括:本申请提供了一种OCG播发的控制方法及装置,为目标应用创建应用目录列表,并为所述应用目录列表中每个优先级的应用目录设置相应的播发周期;根据所述应用目录列表中的应用目录将所述目标应用拆分成多个module,并设置module与应用目录之间的对应关系;根据module与应用目录之间的对应关系,以及每个应用目录的播发周期,以module为单位对所述目标应用进行周期性播发。实现了通过控制播发周期对module分优先级进行播发,使接收端优先接收优先级高的module。(The application provides a control method and a control device for OCG broadcasting, an application directory list is established for a target application, and a corresponding broadcasting period is set for each priority application directory in the application directory list; splitting the target application into a plurality of modules according to the application directories in the application directory list, and setting the corresponding relation between the modules and the application directories; and periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory. The modules are broadcasted according to the priority by controlling the broadcasting period, so that the receiving end preferentially receives the modules with high priority.)

1. A control method for OCG broadcasting is characterized by comprising the following steps:

creating an application directory list for a target application, and setting a corresponding broadcasting period for each priority application directory in the application directory list;

splitting the target application into a plurality of modules according to the application directories in the application directory list, and setting the corresponding relation between the modules and the application directories;

and periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory.

2. The method of claim 1, wherein each priority in the list of application directories corresponds to at least one application directory.

3. The method of claim 1, wherein after the setting of the correspondence between the module and the application directory, the method further comprises:

creating a configuration table of the target application;

writing the application directory list in a configuration table of the target application;

setting identification and version information for each module;

and writing the identification and the version information of each module and the corresponding relation between the modules and the application directory into a configuration table of the target application.

4. The method of claim 3, wherein prior to the periodically broadcasting the target application in modules, the method further comprises:

and sending the configuration table of the target application to a receiving end.

5. The method of claim 3, further comprising:

and when the module is updated, updating the version information of the corresponding module in the configuration table of the target application.

6. A control device that OCG was broadcast, characterized by comprising:

the device comprises a catalog list creating unit, a broadcasting unit and a broadcasting unit, wherein the catalog list creating unit is used for creating an application catalog list for a target application and setting a corresponding broadcasting cycle for each priority application catalog in the application catalog list;

a module splitting unit, configured to split the target application into multiple modules according to the application directories in the application directory list, and set a correspondence between the modules and the application directories;

and the module broadcasting unit is used for periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory.

7. The apparatus of claim 6, wherein each priority in the list of application directories corresponds to at least one application directory.

8. The apparatus of claim 6, further comprising:

a configuration table creating unit for creating a configuration table of the target application; writing the application directory list in a configuration table of the target application; setting identification and version information for each module; and writing the identification and the version information of each module and the corresponding relation between the modules and the application directory into a configuration table of the target application.

9. The apparatus of claim 8, further comprising:

and the configuration table sending unit is used for sending the configuration table of the target application to a receiving end.

10. The apparatus of claim 8, further comprising:

and the version information updating unit is used for updating the version information of the corresponding module in the configuration table of the target application after the module is updated.

Technical Field

The invention relates to the technical field of OCG broadcasting, in particular to a control method and a control device for OCG broadcasting.

Background

In a general OCG (Object Carousel Generator) broadcasting technique, an application is divided into a plurality of modules (modules), and each module encapsulates part of directory information and data blocks of the application, and then broadcasts periodically in units of modules.

Different applications are broadcast in the same broadcast period at present, the OCG broadcast method has no problem for common applications, but the method can not be used for services requiring timely updating of applications, which require that part of applications are preferentially received to complete application presentation and key applications must be downloaded.

Disclosure of Invention

In view of this, the present invention provides a method and an apparatus for controlling OCG broadcast, which enable a receiving end to preferentially receive a module with a high priority by controlling a broadcast period.

In order to achieve the above purpose, the invention provides the following specific technical scheme:

a control method for OCG broadcasting comprises the following steps:

creating an application directory list for a target application, and setting a corresponding broadcasting period for each priority application directory in the application directory list;

splitting the target application into a plurality of modules according to the application directories in the application directory list, and setting the corresponding relation between the modules and the application directories;

and periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory.

Optionally, each priority in the application directory list corresponds to at least one application directory.

Optionally, after the setting of the correspondence between the module and the application directory, the method further includes:

creating a configuration table of the target application;

writing the application directory list in a configuration table of the target application;

setting identification and version information for each module;

and writing the identification and the version information of each module and the corresponding relation between the modules and the application directory into a configuration table of the target application.

Optionally, before the module is used as the unit to periodically broadcast the target application, the method further includes:

and sending the configuration table of the target application to a receiving end.

Optionally, the method further includes:

and when the module is updated, updating the version information of the corresponding module in the configuration table of the target application.

A control device for OCG dissemination, comprising:

the device comprises a catalog list creating unit, a broadcasting unit and a broadcasting unit, wherein the catalog list creating unit is used for creating an application catalog list for a target application and setting a corresponding broadcasting cycle for each priority application catalog in the application catalog list;

a module splitting unit, configured to split the target application into multiple modules according to the application directories in the application directory list, and set a correspondence between the modules and the application directories;

and the module broadcasting unit is used for periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory.

Optionally, each priority in the application directory list corresponds to at least one application directory.

Optionally, the apparatus further comprises:

a configuration table creating unit for creating a configuration table of the target application; writing the application directory list in a configuration table of the target application; setting identification and version information for each module; and writing the identification and the version information of each module and the corresponding relation between the modules and the application directory into a configuration table of the target application.

Optionally, the apparatus further comprises:

and the configuration table sending unit is used for sending the configuration table of the target application to a receiving end.

Optionally, the apparatus further comprises:

and the version information updating unit is used for updating the version information of the corresponding module in the configuration table of the target application after the module is updated.

Compared with the prior art, the invention has the following beneficial effects:

the invention discloses a control method and a control device for OCG broadcasting, which are used for automatically splitting a target application according to a directory by creating an application directory list for the target application, splitting the target application into a plurality of modules according to the application directory in the application directory list and setting the corresponding relation between the modules and the application directory. And a corresponding broadcasting period is set for the application directory of each priority in the application list, so that the modules are broadcasted according to the priorities by controlling the broadcasting period, and a receiving end preferentially receives the modules with high priorities.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a schematic flow chart of a control method for OCG broadcast according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a control device for OCG broadcasting according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment discloses a control method for OCG broadcast, which is applied to a sending end of OCG broadcast, such as a server end, please refer to fig. 1, and the control method specifically includes the following steps:

s101: creating an application directory list for a target application, and setting a corresponding broadcasting period for each priority application directory in the application directory list;

the target application is an application which needs OCG broadcasting, and the target application can be an on-demand application or a common application.

The application directory list is a set of all application directories in the target application, all the application directories in the application directory list can be divided into a plurality of priority levels, and each priority level at least corresponds to one application directory.

Specifically, the broadcast priority control is realized by controlling the broadcast periods with different priorities, and the higher the broadcast priority is, the smaller the broadcast period is. The following examples illustrate:

wherein, Content _ L ist represents application directory list, including describing multiple application directories;

dir is used to describe the application directories that specifically need to perform broadcast cycle control, there are 3 application directories: pub _ image, pub _ js and vod, wherein pub _ image represents an application directory for storing public pictures such as globally shared icons and pictures, pub _ js represents an application directory for storing globally js control codes, and vod represents an application directory for storing application templates, application scripts or other applications;

at least one application directory in each Dir corresponds to the same priority, i.e. to the same broadcast period, and a plurality of dirs may be included in the Content _ L ist.

Period represents a broadcast Period, which is 10 in seconds, and if the success rate of receiving a certain application directory needs to be increased, the broadcast Period value of the application directory can be shortened, it should be noted that, in general, if the broadcast Period is set to 1 half of the broadcast duration, correct and complete receiving can be guaranteed.

By setting the broadcasting period, the priority of broadcasting can be planned according to the importance of the application or the application catalog, the shorter the period is, the higher the priority is, for global resources such as broadcasting control icons, the keys can be planned to pub _ image, pub _ js can store global js control codes, and vod can store all on-demand control templates. For key applications and public resource directories, priorities are independently defined and planned, shorter period control is set, and multiple hits in broadcasting time are guaranteed, so that the key applications are not failed to be downloaded, and the application presentation is abnormal.

The online and offline of the application can be realized by setting the broadcasting period, the offline of the application only needs to set the broadcasting period to be an ultra-long period, the online of the application can set the broadcasting period to be a shorter period, so that the application directory corresponding to the application has the highest priority, the application can be preferentially received by a receiving end, the broadcasting period of the latest online application is shortened, the broadcasting period of the outdated offline application is prolonged, and the quick online and offline of the latest key application is realized.

S102: splitting the target application into a plurality of modules according to the application directories in the application directory list, and setting the corresponding relation between the modules and the application directories;

because each application directory in the application directory list of the target application corresponds to one broadcast period, each module corresponds to one corresponding broadcast period by setting the corresponding relationship between the module and the application directory.

The size of each module is also determined, so the size of each application directory can be limited according to the size of the module, for example, the size of each application directory can be 512k, when new files are added and modified in the application, the application can be automatically split according to the size of the current directory, whether the newly added files are divided into the module corresponding to the current directory or the next module is determined, and the target application is automatically split into a plurality of directories according to the size of the target application is realized.

S103: and periodically broadcasting the target application by taking the module as a unit according to the corresponding relation between the module and the application directories and the broadcasting period of each application directory.

In the OCG broadcast control method disclosed in this embodiment, an application directory list is created for a target application, the target application is split into a plurality of modules according to an application directory in the application directory list, and a correspondence between the modules and the application directory is set, so that the target application is automatically split according to the directory. And a corresponding broadcasting period is set for the application directory of each priority in the application list, so that the modules are broadcasted according to the priorities by controlling the broadcasting period, and a receiving end preferentially receives the modules with high priorities.

The target application may also present version updates for portions of the content, and to facilitate representation of the module's version, module identification and version information are defined. The following is specifically explained:

wherein, Module _ L ist represents Module list description, describing the corresponding relation between the specific Module and the application directory;

the ID represents the unique identification of the module, and is guaranteed to be unique in one-time broadcasting so as to uniquely determine one module;

version indicates the Version information of the module, and the module is updated, usually embodied by Version, which also means that the application directory or application content corresponding to the module is updated.

Dir represents the application directory corresponding to the module, and the application directories are different according to the module, for example, the application directory corresponding to the module with the ID of 1 is pub _ image.

In order to further describe the application directory list and the corresponding relationship between the module and the application directory, the method for controlling OCG broadcast disclosed in this embodiment further includes: creating a configuration table of the target application, writing the application directory list into the configuration table of the target application, setting identification and version information for each module, and writing the identification, the version information and the corresponding relation between the module and the application directory into the configuration table of the target application.

Before the target application is periodically broadcasted in modules, the method further comprises: and sending the configuration table of the target application to a receiving end.

Through the description of the corresponding relation between the modules and the application directories and the transmission of the configuration table of the target application to the receiving end, when the receiving end receives the application, the receiving end can know how many modules [ directories ] need to be received completely, and also can know how many modules are updated through the versions of the modules, so that the directories of the modules can be cleaned, the occurrence of file residues is prevented, and the receiving end can conveniently update and manage the application. The information is a configuration table of the target application for broadcasting by the OCG. Thus, the receiving end receives the configuration table, and can manage and update the response after analyzing the configuration table.

The file format of the complete configuration table is similar as follows:

it should be noted that when the target application is small, the pub _ app and vod directory may be one, and even the pub _ image directory may be merged in. Similarly, the image directory may not be provided in plural. This depends on the application size. When the target application is an on-demand application, if the on-demand application is more, a large number of poster pages are needed, so that a large number of poster pictures are introduced, and it is certainly unreasonable to plan all poster pictures to one application catalog, and because the packaging limitation of the OCG causes the OCG to be divided into a plurality of modules for output, a large number of modules point to one catalog, so that the playing priority of the application cannot be controlled according to the catalog. A plurality of directories are planned, each directory defines 512K and is associated with a module, so that the OCG can be output without adjustment and can be obtained as seen. In addition, based on the above implementation, we can even modify the priority of the corresponding application directory in combination with the service requirements, so that the critical application is downloaded preferentially, and the expired application is downloaded temporarily to meet the requirements of updating, online and offline of the application.

Based on the foregoing method for controlling OCG broadcast disclosed in the embodiment, this embodiment correspondingly discloses a control device for OCG broadcast, please refer to fig. 2, and the device specifically includes:

a directory list creating unit 201, configured to create an application directory list for a target application, and set a corresponding broadcast period for each priority application directory in the application directory list;

a module splitting unit 202, configured to split the target application into multiple modules according to the application directories in the application directory list, and set a correspondence between the modules and the application directories;

a module broadcasting unit 203, configured to periodically broadcast the target application by taking the module as a unit according to the correspondence between the module and the application directories and the broadcasting period of each application directory.

Optionally, each priority in the application directory list corresponds to at least one application directory.

Optionally, the apparatus further comprises:

a configuration table creating unit for creating a configuration table of the target application; writing the application directory list in a configuration table of the target application; setting identification and version information for each module; and writing the identification and the version information of each module and the corresponding relation between the modules and the application directory into a configuration table of the target application.

Optionally, the apparatus further comprises:

and the configuration table sending unit is used for sending the configuration table of the target application to a receiving end.

Optionally, the apparatus further comprises:

and the version information updating unit is used for updating the version information of the corresponding module in the configuration table of the target application after the module is updated.

The control device for OCG broadcasting disclosed in this embodiment creates an application directory list for a target application, splits the target application into a plurality of modules according to an application directory in the application directory list, and sets a correspondence between the modules and the application directory, thereby automatically splitting the target application according to the directory. And a corresponding broadcasting period is set for the application directory of each priority in the application list, so that the modules are broadcasted according to the priorities by controlling the broadcasting period, and a receiving end preferentially receives the modules with high priorities.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于分层缓存的实时业务时延优化方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类