WO2008154821A1 - Method for playing the adhibiting data, client end and server - Google Patents
Method for playing the adhibiting data, client end and server Download PDFInfo
- Publication number
- WO2008154821A1 WO2008154821A1 PCT/CN2008/070562 CN2008070562W WO2008154821A1 WO 2008154821 A1 WO2008154821 A1 WO 2008154821A1 CN 2008070562 W CN2008070562 W CN 2008070562W WO 2008154821 A1 WO2008154821 A1 WO 2008154821A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- control file
- play
- patch data
- played
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000033001 locomotion Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/654—Transmission by server directed to the client
- H04N21/6543—Transmission by server directed to the client for forcing some client operations, e.g. recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
Definitions
- the invention belongs to the field of network communication, and particularly relates to a method for playing patch data, a client and a server. Background technique
- Webcasting is a software platform that provides multimedia real-time playback for users based on the Internet, including multimedia live broadcast services such as Internet TV, webcast, and online movies.
- multimedia live broadcast services are becoming more and more popular through the Internet, and numerous webcast platforms such as PPLive, MySee, and PPStream have emerged.
- the multimedia content provider In the live webcast, the multimedia content provider, the operator providing the webcast platform, and the user form the main body participating in the webcast.
- the operator broadcasts the video data provided by the multimedia content provider to the user through the webcast platform.
- the video screen is the main location for the user to stay in the eye, so it is an excellent location for advertising.
- Multimedia content providers can generate advertising revenue by inserting advertisements in video data according to their own needs, allowing video data and advertisements to be played alternately.
- the embodiment of the present invention provides a method for playing a patch data, a client, and a server. With the method provided by the embodiment of the present invention, an operator may add patch data to a network video screen.
- the play control file includes at least one to-be-played patch data file Acquiring at least one piece of the to-be-played patch data according to the identifier of the to-be-played patch data file; and acquiring the acquired patch data in the played video according to the play policy data.
- an update downloading module configured to obtain a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and the play policy data, and acquire at least one to be played according to the identifier of the to-be-played patch data file.
- a play control module configured to play the acquired patch data in the played video according to the play policy data.
- the play control file includes at least one identifier of the to-be-played patch data file and play policy data;
- a playback control file and a to-be-played tile data file indicated in the playback control file are provided to the client.
- the server provided by the embodiment of the present invention includes a play control file generating module and a database, wherein the play control file generating module is configured to generate a play control file, and store the generated play control file in a database;
- the database is configured to store the patch data file and the play control file, and provide the client with the play control file and the patch data file to be played as indicated in the play control file.
- the network live broadcast operator by acquiring the patch data file and the playback control file to be played, and playing the patch data according to the playback control data when playing the video, the network live broadcast operator can place the patch on each program channel according to its own needs.
- the announcement or advertisement enables the user to view the patch data while watching the live video of the network video, thereby generating revenue.
- 1 is a flow chart of a method for playing patch data in an embodiment of the present invention.
- 2 is a flow chart of a method for obtaining a playback control file and a patch data file in an embodiment of the present invention.
- 3 is a flow chart of a method for controlling playback of patch data in an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of a server in an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a client in an embodiment of the present invention.
- DETAILED DESCRIPTION OF THE EMBODIMENTS In order to make the technical solutions and advantages of the embodiments of the present invention more clearly, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
- the method for playing the patch data provided by the embodiment of the present invention includes first acquiring the patch data, and then playing the patch data while playing the network video.
- FIG. 1 is a flow chart of a method for playing patch data in an embodiment of the present invention. As shown in FIG. 1, the method for playing the patch data provided by the embodiment of the present invention includes two relatively independent steps:
- Step S10 Acquire playback control data, and the to-be-played patch data indicated in the playback control data.
- the client In order to ensure that the client can play the latest patch data in time while playing the video, the client first downloads related files, including patch data files and playback control data files, from the server.
- the patch data file may include one patch data or multiple patch data. When a tile data file contains multiple patch data, the patch data is a fixed whole.
- the patch data file may be a file file such as a JPG, BMP, or the like, or an animation file such as a file in a format such as GIF or SWF, or a file in a multimedia file such as MPEG, AVI, WMV, or the like.
- the playback control data file includes playback control data, which may also be referred to as a playback control file.
- the server side can manually or automatically update the patch data file as needed to ensure that the patch data file is always up to date.
- a check code is generated for the patch data file according to a predetermined algorithm, and each patch data file has a unique check code, and the check code is written.
- the playback control file is more important to record the version number of the current playback control file and the identifier of each patch data file (not including the patch data file, only its logo), such as the patch.
- the file name of the data file, and the playback policy data for each tile data file is more important to record the version number of the current playback control file and the identifier of each patch data file (not including the patch data file, only its logo), such as the patch.
- the playing strategy of the audio patch data file includes: The sound size, rhythm change, etc. of the audio data.
- the playback strategy of the video tile data file can include:
- the client controls the motion mode when the patch data appears according to the specified motion mode, such as the rotation mode, the fade-out mode, the blind method, etc., to attract the user's attention;
- the playing time of the patch data the client controls the playing time of the patch data according to the playing duration.
- the time is up, the patch data window is hidden, and the appearance and disappearance of the patch data playing window can also be matched with the playing of the network video content.
- ending when playing the network video content, playing the patch data with the network video, and ending the playback of the patch data at the end of the network video;
- the time interval for playing the next patch data according to the time interval, the client controls the playing time of the next patch data, that is, the last patch data playback ends, and after the patch data playing window disappears, how long is the interval The next patch data window will automatically appear and play;
- the file contains at least one identifier of the to-be-played tile data file to obtain at least one tile data to be played.
- Step S30 The client controls to play the patch data.
- different play programs are called according to the format of the patch data file, and the step is followed in the played video according to the play policy data recorded in the play control file.
- the patch data acquired in S10.
- FIG. 2 is a flowchart of a method for acquiring a playback control file and a patch data file in the embodiment of the present invention.
- the method for obtaining a playback control file and a patch data file by the client in detail will be described below with reference to FIG. 2, as shown in FIG. 2, including :
- Step S101 After the client starts, it is determined whether the playback control file already exists locally, if yes, step S103 is performed, otherwise step S102 is performed;
- Step S102 The client downloads the latest playback control file from the server and stores it locally, and then performs step S106;
- Step S103 The client reports the version number of the locally stored playback control file to the server or the server, and returns the version number of the latest playback control file to the client.
- Step S104 The client or the server compares the version number of the playback control file of the client with the version number of the latest playback control file of the server, and determines whether the two are the same. If yes, step S106 is performed; otherwise, step S105 is performed;
- Step S105 The client updates and downloads the latest playback control file, and stores it
- Step S106 Align the identifiers of the patch data files in the playback control file with the identifiers of the patch data files already existing in the client, and determine whether the client stores all the patch data that is the same as the identifier in the playback control file. Then step S108 is performed, otherwise step S107 is performed;
- Step S107 downloading the patch data file that the client does not have the identifier in the playback control file, and then executing step S111;
- Step S108 The client temporarily generates a check code for the patch data file stored in the client but identifies the patch data file recorded in the playback control file according to the check code algorithm predetermined by the server;
- Step S109 comparing the check code of the patch data file in the playback control file one by one with the client side If the check code is generated, it is determined whether the two are the same, otherwise step S110 is performed, and then step S111 is performed; step S110: the client updates the patch data file with the same identifier but different check code from the server side, and The downloaded patch data file is stored on the client;
- Step S111 The client clears the patch data file not recorded in the playback control file, and then executes step S30.
- the server can also actively return to the client to play control files and / or patch data files.
- the server may generate a playback control file according to the personality data reported by the client, that is, select different to-be-played patch data files for the client and formulate different playback policy data according to different characteristics of the client.
- the server When the client does not report the personality data, the server generates a default playback control file for the client.
- the server uses the version number (such as when the playback control file was generated and the object) to distinguish between different playback control files generated for different clients.
- the client downloads the latest playback control file generated by the server for the client.
- step S103 the server returns the latest playback generated for the client. Controlling the version number of the file; in step S104, the client or server compares the version number of the playback control file of the client with the version number of the latest playback control file generated by the server for the client.
- FIG. 3 is a flowchart of a client controlling a play patch data file according to an embodiment of the present invention. As shown in FIG. 3, the step of controlling a play patch data file specifically includes:
- Step S301 extract the identifier of the patch data file to be played by each network video channel from the play control file, generate a patch data file identifier play queue for each channel, and store it in the memory of the client;
- Step S302 Extract the play policy data corresponding to the play queue of the patch data file identifier from the play control file, form a queue, and store it in the client memory;
- Step S303 When the video starts playing, according to the channel of the currently playing video, the above two queues are searched to obtain corresponding data required for playing;
- step S304 while playing the video, the corresponding play is called according to the obtained corresponding data.
- the program plays the patch data.
- the server and the client for playing the patch data provided by the embodiment of the present invention are described below in conjunction with the method for playing the patch data provided by the embodiment of the present invention.
- the server includes a play control file generating module 410, a database 411, a play control file version number comparison module 412, and a check code generating module 413.
- the playback control file generating module 410 generates a playback control file, and stores the generated playback control file in the database 411.
- the database 411 stores the patch data file and the generated playback control file, and the check code generation module 413 performs each patch data file according to a predetermined verification algorithm after each patch data file in the database 411 of the server side is updated. Generate a check code and write the check code to the playback control file.
- the play control file version number comparison module 412 receives the version number of the play control file from the client and compares it with the version number of the play control file in the database 411, when the version number or comparison of the play control file of the client is not obtained. When the result is different, the client is notified to download the latest playback control file.
- the server side may not need to play the control file version number comparison module 412.
- the database 411 directly returns the version number of the latest playback control file to the client.
- the client includes a database 510, an update download module 511, a patch data file identifier and a check code comparison module 512, and a check code generation module. 513.
- the play control module 514 The play control module 514.
- the database 510 stores the patch data file and the playback control file; when the playback control file is not played by itself, the update playback control file command is sent to the update download module; when the playback control file is stored by itself, the control data version number of the control data is reported to the server.
- the update download module 511 downloads the play control file from the database 410 of the server to the database 510 according to the download instruction of the server, and then notifies the tile data file identification and check code comparison module 512.
- the patch data file identifier and check code matching module 512 compares the identifier of the patch data file stored in the database 510 with the downloaded play control file (the same version as the server-side playback control file) to be played. The identifier of the data file.
- the update download module 511 is notified to download the patch data file recorded in the playback control file but not in the database 510;
- the notification check code generating module 513 generates a check code for each local patch data file that is the same as the identifier in the playback control file according to the predetermined check code algorithm, and returns the check code generation module 513.
- the check code of the patch data file is compared with the check code of the patch data file recorded in the play control file in the database 510.
- the update download module 511 is notified that the download identifier is the same but the check code is different.
- the patch data file, the update download module 511 downloads the patch data file and stores it in the database 510.
- the patch data file identification and check code matching module 512 After the patch data file identification and check code matching module 512 receives the notification that the download is completed, the above-mentioned comparison operation is also performed.
- the update download module 511 instructs the database 510 to delete the patch data file stored in the database 510 but not belonging to the to-be-played.
- the playing module 514 of the client is configured to extract, from the playing control file, the identifier of the patch data file that each channel needs to play, generate a patch data file playing queue for each channel, and store it in the database 510;
- the playback policy data of the tile data file to be played by each channel is extracted, formed into a queue, and stored in the database 510.
- the playing module 514 is further configured to: when starting the video playing, searching the two queues according to the currently playing channel to obtain corresponding data required for playing, and calling the corresponding playing program to play the patch data according to the obtained corresponding data.
- the client may further include a playback control file version number comparison module 515.
- the database 510 may not report its own playback control file version number to the server.
- the playback control file version number comparison module 515 receives the latest playback control file version number from the server, and associates it with the database 510.
- the playback control file version number is compared, if the two are the same, the patch data file identifier and the check code comparison module 512 are notified for subsequent processing; if the two are different, the download update module 511 is notified from the server.
- the play control file is downloaded to the database 510 in the database 410, and then the patch data file identification and check code comparison module 512 is notified for subsequent processing.
- the method for playing the patch data provided by the embodiment of the present invention, the server, and the client may set the patch data on the server side according to requirements, such as advertisements, news, announcements, etc., and may set the playback strategy of the patch data according to requirements.
- the operation is flexible.
- the patch video data can be played in another window while playing the network video program. Not only the playback mode is diverse, but also because the patch data has been downloaded to the local, it can also be guaranteed. Smooth playback of patch data.
- the network live broadcast operator can place a patch advertisement on each program channel according to the needs of the present invention, and generate advertisement revenue when the user views the video.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method for playing the adhibiting data, includes the steps of: obtaining a playing control file containing an identifier and playing strategy data of at least one adhibiting data file which is to be played; obtaining at least one adhibiting data file which is to be played according to the identifier of the adhibiting data file which is to be played; playing the obtained adhibiting data with the video which is being played. A client end and a server for realizing adhibiting data playing are provided. Using the method, client end and server of the present invention, a network living broadcaster can put the adhibiting advertisement or announcement in any one of all the TV channel based on its own requirement, and users can view the adhibiting data at the time of watching the network video living broadcast program.
Description
贴片数据播放方法、 客户端及服务器 Patch data playback method, client and server
技术领域 Technical field
本发明属于网絡通信领域, 尤其涉及贴片数据播放的方法、 客户端及服务 器。 背景技术 The invention belongs to the field of network communication, and particularly relates to a method for playing patch data, a client and a server. Background technique
随着计算机技术和网络技术的飞速发展, 互联网在人们的日常生活、 学习 和工作中发挥的作用也越来越大, 网站也随之越来越多。 目前, 很多网站都提 供有网络直播服务, 网络直播是一种基于互联网为用户提供多媒体实时播放的 软件平台, 包括网络电视、 网络广播、 网络电影等多媒体直播服务。 随着网络 传输技术和流媒体技术的不断成熟, 通过互联网提供多媒体直播服务越来越普 及, 涌现出众多的网络直播平台, 如 PPLive、 MySee、 PPStream等。 With the rapid development of computer technology and network technology, the role of the Internet in people's daily life, study and work is also growing, and the number of websites is increasing. At present, many websites provide webcasting services. Webcasting is a software platform that provides multimedia real-time playback for users based on the Internet, including multimedia live broadcast services such as Internet TV, webcast, and online movies. With the continuous maturity of network transmission technologies and streaming media technologies, multimedia live broadcast services are becoming more and more popular through the Internet, and numerous webcast platforms such as PPLive, MySee, and PPStream have emerged.
在网络直播中, 多媒体内容提供商、 提供网络直播平台的运营商和用户三 者组成了参与网络直播的主体。 运营商通过网络直播平台, 向用户播放多媒体 内容提供商提供的视频数据。 客观上, 用户在观看网络直播时, 视频画面是用 户目光停留的主要位置, 因此是投放广告的绝佳位置。 多媒体内容提供商可根 据自身需要在视频数据中插播广告, 让视频数据和广告交替播放, 以此获得广 告收益。 但是由于运营商难以在播放视频画面的同时播放其他视频、 图片等贴 片数据, 丧失了网络直播中的广告商机。 发明内容 In the live webcast, the multimedia content provider, the operator providing the webcast platform, and the user form the main body participating in the webcast. The operator broadcasts the video data provided by the multimedia content provider to the user through the webcast platform. Objectively, when watching a live webcast, the video screen is the main location for the user to stay in the eye, so it is an excellent location for advertising. Multimedia content providers can generate advertising revenue by inserting advertisements in video data according to their own needs, allowing video data and advertisements to be played alternately. However, it is difficult for operators to play other video, pictures and other patch data while playing video images, and the advertising opportunities in the live webcast are lost. Summary of the invention
本发明实施例提供了一种贴片数据的播放方法、 客户端以及服务器, 利用 本发明实施例提供的方法, 运营商可以在网络视频画面中添加贴片数据。 The embodiment of the present invention provides a method for playing a patch data, a client, and a server. With the method provided by the embodiment of the present invention, an operator may add patch data to a network video screen.
本发明实施例提供的贴片数据播放方法包括: The patch data playing method provided by the embodiment of the present invention includes:
获取播放控制文件, 所述播放控制文件包含至少一个待播放贴片数据文件
根据所述待播放贴片数据文件的标识获取至少一个待播放的贴片数据; 根据所述播放策略数据在播放的视频中随播所获取的贴片数据。 Obtaining a play control file, where the play control file includes at least one to-be-played patch data file Acquiring at least one piece of the to-be-played patch data according to the identifier of the to-be-played patch data file; and acquiring the acquired patch data in the played video according to the play policy data.
本发明实施例提供的客户端包括: The client provided by the embodiment of the present invention includes:
更新下载模块, 用于获取播放控制文件, 所述播放控制文件包含至少一个 待播放贴片数据文件的标识及播放策略数据, 以及根据所述待播放贴片数据文 件的标识获取至少一个待播放的贴片数据; And an update downloading module, configured to obtain a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and the play policy data, and acquire at least one to be played according to the identifier of the to-be-played patch data file. Patch data
播放控制模块, 用于根据所述播放策略数据在播放的视频中随播所获取的 贴片数据。 And a play control module, configured to play the acquired patch data in the played video according to the play policy data.
本发明实施例提供的贴片数据播放方法包括: The patch data playing method provided by the embodiment of the present invention includes:
生成播放控制文件, 所述播放控制文件包含至少一个待播放贴片数据文件 的标识及播放策略数据; Generating a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and play policy data;
向客户端提供播放控制文件以及所述播放控制文件中指示的待播放贴片数 据文件。 A playback control file and a to-be-played tile data file indicated in the playback control file are provided to the client.
本发明实施例提供的服务器包括播放控制文件生成模块以及数据库, 其中 播放控制文件生成模块, 用于生成播放控制文件, 并将生成的播放控制文 件存储在数据库中; The server provided by the embodiment of the present invention includes a play control file generating module and a database, wherein the play control file generating module is configured to generate a play control file, and store the generated play control file in a database;
数据库, 用于存储贴片数据文件以及播放控制文件, 并向客户端提供播放 控制文件以及所述播放控制文件中指示的待播放的贴片数据文件。 The database is configured to store the patch data file and the play control file, and provide the client with the play control file and the patch data file to be played as indicated in the play control file.
本发明实施例通过获取待播放的贴片数据文件和播放控制文件 , 并在播放 视频时根据播放控制数据播放贴片数据, 网络直播运营商可以根据自身的需要 在每个节目频道上投放贴片启事或广告, 使用户在观看网絡视频直播节目的同 时收看到贴片数据, 进而产生收益。 附图说明 In the embodiment of the present invention, by acquiring the patch data file and the playback control file to be played, and playing the patch data according to the playback control data when playing the video, the network live broadcast operator can place the patch on each program channel according to its own needs. The announcement or advertisement enables the user to view the patch data while watching the live video of the network video, thereby generating revenue. DRAWINGS
图 1是本发明实施例中贴片数据的播放方法流程图。
图 2是本发明实施例中获取播放控制文件及贴片数据文件的方法流程图。 图 3是本发明实施例中控制播放贴片数据的方法流程图。 1 is a flow chart of a method for playing patch data in an embodiment of the present invention. 2 is a flow chart of a method for obtaining a playback control file and a patch data file in an embodiment of the present invention. 3 is a flow chart of a method for controlling playback of patch data in an embodiment of the present invention.
图 4是本发明实施例中服务器的结构示意图。 4 is a schematic structural diagram of a server in an embodiment of the present invention.
图 5是本发明实施例中客户端的结构示意图。 具体实施方式 为了使本发明实施例的技术方案及优点更加清楚明白, 以下结合附图及实 施例, 对本发明实施例进行进一步详细说明。 应当理解, 此处所描述的具体实 施例仅仅用以解释本发明, 并不用于限定本发明。 FIG. 5 is a schematic structural diagram of a client in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS In order to make the technical solutions and advantages of the embodiments of the present invention more clearly, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供的贴片数据的播放方法包括首先获取贴片数据, 然后在 播放网络视频的同时播放贴片数据。 The method for playing the patch data provided by the embodiment of the present invention includes first acquiring the patch data, and then playing the patch data while playing the network video.
图 1是本发明实施例中贴片数据的播放方法流程图。 如图 1所示, 本发明 实施例提供的贴片数据的播放方法包括两个相对独立的步骤: 1 is a flow chart of a method for playing patch data in an embodiment of the present invention. As shown in FIG. 1, the method for playing the patch data provided by the embodiment of the present invention includes two relatively independent steps:
步骤 S10: 获取播放控制数据, 以及播放控制数据中指示的待播放贴片数 据。 Step S10: Acquire playback control data, and the to-be-played patch data indicated in the playback control data.
为了保证客户端在播放视频时, 能及时播放最新的贴片数据, 客户端首先 从服务器端下载相关文件, 包括贴片数据文件和播放控制数据文件。 其中贴片 数据文件可以是包含一个贴片数据, 也可以包含多个贴片数据, 当一个贴片数 据文件包含多个贴片数据时, 这些贴片数据为一个固定的整体。 这里贴片数据 文件可以是图片文件如 JPG、 BMP等格式的文件, 也可以是动画文件如 GIF、 SWF等格式的文件, 或者是多媒体文件如 MPEG、 AVI、 WMV等格式的文件。 播放控制数据文件中包含播放控制数据, 又可简称为播放控制文件。 In order to ensure that the client can play the latest patch data in time while playing the video, the client first downloads related files, including patch data files and playback control data files, from the server. The patch data file may include one patch data or multiple patch data. When a tile data file contains multiple patch data, the patch data is a fixed whole. Here, the patch data file may be a file file such as a JPG, BMP, or the like, or an animation file such as a file in a format such as GIF or SWF, or a file in a multimedia file such as MPEG, AVI, WMV, or the like. The playback control data file includes playback control data, which may also be referred to as a playback control file.
服务器端可根据需要人工或自动更新贴片数据文件, 以保证贴片数据文件 总是最新的。 这里一个贴片数据文件服务器端更新一个贴片数据文件后, 根据 预定的算法为这个贴片数据文件产生校验码, 每个贴片数据文件都具有唯一校 验码, 并将校验码写入播放控制文件中。
播放控制文件除记载有校验码外, 更重要的是记载有当前播放控制文件的 版本号、 每个贴片数据文件的标识 (未包括贴片数据文件, 只记载其标识) , 如贴片数据文件的文件名, 以及每个贴片数据文件的播放策略数据。 The server side can manually or automatically update the patch data file as needed to ensure that the patch data file is always up to date. Here, after updating a patch data file on the server side of a patch data file, a check code is generated for the patch data file according to a predetermined algorithm, and each patch data file has a unique check code, and the check code is written. In the playback control file. In addition to the check code, the playback control file is more important to record the version number of the current playback control file and the identifier of each patch data file (not including the patch data file, only its logo), such as the patch. The file name of the data file, and the playback policy data for each tile data file.
播放策略数据, 指示每个贴片数据文件与哪个频道同时播放、 播放次序、 显示尺寸、 显示位置、 播放时机和播放时间等一系列内容, 具体来说, 音频贴 片数据文件的播放策略包括: 音频数据的声音大小、 节奏变化等。 视频贴片数 据文件的播放策略可以包括: Playing the policy data, indicating which channel each patch data file plays simultaneously with, playing order, display size, display position, playing time and playing time, etc. Specifically, the playing strategy of the audio patch data file includes: The sound size, rhythm change, etc. of the audio data. The playback strategy of the video tile data file can include:
A、 贴片数据播放窗口的显示尺寸, 客户端根据这个尺寸显示贴片数据的 窗口, 可以用相对视频屏幕尺寸来说比较小的窗口来显示贴片数据; A. The display size of the patch data playback window, the client displays the window of the patch data according to the size, and the widget data can be displayed with a relatively small window relative to the video screen size;
B、 贴片数据动态出现的运动方式, 客户端根据指定的运动方式控制贴片 数据出现时的运动方式, 如旋转方式、 逐渐淡出方式、 百叶窗方式等, 以吸引 用户的注意; B. The motion mode in which the patch data appears dynamically, the client controls the motion mode when the patch data appears according to the specified motion mode, such as the rotation mode, the fade-out mode, the blind method, etc., to attract the user's attention;
C、 贴片数据播放窗口运动的起点和终点位置, 客户端根据这两个位置控 制贴片数据窗口的出现位置和停留位置, 播放窗口的停留的位置应明显但不遮 挡主要的视频画面; C. The starting point and the ending position of the patch data playing window movement, the client controls the appearance position and the staying position of the patch data window according to the two positions, and the position of the playing window staying should be obvious but does not block the main video picture;
D、 贴片数据的播放时间, 客户端根据播放时长控制贴片数据的播放时间, 时间到了, 就把贴片数据窗口隐藏, 贴片数据播放窗口的出现和消失也可配合 网絡视频内容的播放和结束, 当播放网络视频内容时, 配合网络视频播放贴片 数据, 网络视频结束时, 同时结束贴片数据的播放; D. The playing time of the patch data, the client controls the playing time of the patch data according to the playing duration. When the time is up, the patch data window is hidden, and the appearance and disappearance of the patch data playing window can also be matched with the playing of the network video content. And ending, when playing the network video content, playing the patch data with the network video, and ending the playback of the patch data at the end of the network video;
E、 下个贴片数据播放的时间间隔, 客户端根据该时间间隔, 控制下一个 贴片数据的播放时机, 即上一个贴片数据播放结束, 并且贴片数据播放窗口消 失后, 隔多长时间下一个贴片数据窗口会自动出现并进行播放; 以及 E. The time interval for playing the next patch data, according to the time interval, the client controls the playing time of the next patch data, that is, the last patch data playback ends, and after the patch data playing window disappears, how long is the interval The next patch data window will automatically appear and play;
F、 贴片数据窗口的大小是否随着视频画面的大小改变而自动等比例缩放 等。 F. Whether the size of the patch data window is automatically scaled as the size of the video screen changes.
当然, 播放策略也可以根据实际需要做各种变化。 Of course, the playback strategy can also be changed according to actual needs.
这样当客户端从服务器端获取播放控制文件后, 客户端就可以根据播放控
制文件包含至少一个待播放贴片数据文件的标识获取至少一个待播放的贴片数 据。 In this way, when the client obtains the playback control file from the server, the client can control according to the playback. The file contains at least one identifier of the to-be-played tile data file to obtain at least one tile data to be played.
步骤 S30: 客户端控制播放贴片数据; 在播放贴片数据时, 根据贴片数据 文件的格式调用不同的播放程序, 并依照播放控制文件中记载的播放策略数据 在播放的视频中随播步骤 S10中所获取的贴片数据。 Step S30: The client controls to play the patch data. When the patch data is played, different play programs are called according to the format of the patch data file, and the step is followed in the played video according to the play policy data recorded in the play control file. The patch data acquired in S10.
图 2是本发明实施例中获取播放控制文件及贴片数据文件的方法流程图, 以下将结合图 2详细描述客户端获取播放控制文件以及贴片数据文件的方法, 如图 2所示, 包括: 2 is a flowchart of a method for acquiring a playback control file and a patch data file in the embodiment of the present invention. The method for obtaining a playback control file and a patch data file by the client in detail will be described below with reference to FIG. 2, as shown in FIG. 2, including :
步骤 S101: 客户端在启动后判断本地是否已经存在播放控制文件, 是则执 行步骤 S 103 , 否则执行步骤 S 102; Step S101: After the client starts, it is determined whether the playback control file already exists locally, if yes, step S103 is performed, otherwise step S102 is performed;
步骤 S102: 客户端从服务器端下载最新的播放控制文件并储存在本地, 然 后执行步骤 S106; Step S102: The client downloads the latest playback control file from the server and stores it locally, and then performs step S106;
步骤 S103: 客户端将本地存储的播放控制文件的版本号上报给服务器端或 服务器将最新播放控制文件的版本号返回给客户端; Step S103: The client reports the version number of the locally stored playback control file to the server or the server, and returns the version number of the latest playback control file to the client.
步骤 S104: 客户端或服务器端比对客户端的播放控制文件的版本号与服务 器端最新的播放控制文件的版本号, 判断二者是否相同, 是则执行步骤 S106, 否则执行步骤 S 105; Step S104: The client or the server compares the version number of the playback control file of the client with the version number of the latest playback control file of the server, and determines whether the two are the same. If yes, step S106 is performed; otherwise, step S105 is performed;
步骤 S105: 客户端更新下载最新的播放控制文件, 并存储; Step S105: The client updates and downloads the latest playback control file, and stores it;
步骤 S106: 逐一比对播放控制文件中的贴片数据文件的标识与客户端已经 存在的贴片数据文件的标识, 判断客户端是否存储有全部与播放控制文件中标 识相同的贴片数据, 是则执行步骤 S 108 , 否则执行步骤 S 107; Step S106: Align the identifiers of the patch data files in the playback control file with the identifiers of the patch data files already existing in the client, and determine whether the client stores all the patch data that is the same as the identifier in the playback control file. Then step S108 is performed, otherwise step S107 is performed;
步骤 S107: 下载客户端没有但播放控制文件里记载有其标识的贴片数据文 件, 然后执行步骤 S111; Step S107: downloading the patch data file that the client does not have the identifier in the playback control file, and then executing step S111;
步骤 S108: 客户端根据与服务器端预定的校验码算法临时为存储在客户端 但标识被播放控制文件记载的贴片数据文件生成校验码; Step S108: The client temporarily generates a check code for the patch data file stored in the client but identifies the patch data file recorded in the playback control file according to the check code algorithm predetermined by the server;
步骤 S109: 逐一比对播放控制文件中的贴片数据文件的校验码与客户端临
时产生的校验码,判断二者是否相同,否则执行步骤 S110,是则执行步驟 S111 ; 步骤 S110: 客户端从服务器端更新下载标识相同、 但校验码不同的贴片数 据文件, 并将下载的贴片数据文件存储在客户端; Step S109: comparing the check code of the patch data file in the playback control file one by one with the client side If the check code is generated, it is determined whether the two are the same, otherwise step S110 is performed, and then step S111 is performed; step S110: the client updates the patch data file with the same identifier but different check code from the server side, and The downloaded patch data file is stored on the client;
步骤 S111: 客户端清除播放控制文件里没有记载的贴片数据文件, 然后执 行步骤 S30。 Step S111: The client clears the patch data file not recorded in the playback control file, and then executes step S30.
当然, 服务器也可主动返回给客户端播放控制文件和 /或贴片数据文件。 在本发明的实施例中, 服务器可以根据客户端上报的个性数据生成播放控 制文件, 即根据客户端的不同特性, 为客户端选择不同的待播放贴片数据文件 以及制定不同的播放策略数据。 当客户端没有上报个性数据时, 服务器端则为 客户端生成缺省的播放控制文件。 服务器利用版本号 (如用生成播放控制文件 的时间以及对象) 来区分为不同客户端生成的不同的播放控制文件。 那么上述 实施例中, 步骤 S102和 S105中, 客户端下载的是服务器为该客户端生成的最 新的播放控制文件; 步骤 S103中,服务器端返回给客户端的是为该客户端生成 的最新的播放控制文件的版本号; 步骤 S104中,客户端或服务器端比对客户端 的播放控制文件的版本号与服务器端为该客户端生成的最新的播放控制文件的 版本号。 Of course, the server can also actively return to the client to play control files and / or patch data files. In the embodiment of the present invention, the server may generate a playback control file according to the personality data reported by the client, that is, select different to-be-played patch data files for the client and formulate different playback policy data according to different characteristics of the client. When the client does not report the personality data, the server generates a default playback control file for the client. The server uses the version number (such as when the playback control file was generated and the object) to distinguish between different playback control files generated for different clients. In the foregoing embodiment, in step S102 and S105, the client downloads the latest playback control file generated by the server for the client. In step S103, the server returns the latest playback generated for the client. Controlling the version number of the file; in step S104, the client or server compares the version number of the playback control file of the client with the version number of the latest playback control file generated by the server for the client.
图 3是本发明实施例客户端控制播放贴片数据文件的流程图,如图 3所示, 控制播放贴片数据文件的步骤具体包括: 3 is a flowchart of a client controlling a play patch data file according to an embodiment of the present invention. As shown in FIG. 3, the step of controlling a play patch data file specifically includes:
步骤 S301 : 从播放控制文件里提取每个网络视频频道要播放的贴片数据文 件的标识, 为每个频道产生一个贴片数据文件标识播放队列, 并存储在客户端 的内存中; Step S301: extract the identifier of the patch data file to be played by each network video channel from the play control file, generate a patch data file identifier play queue for each channel, and store it in the memory of the client;
步骤 S302: 从播放控制文件里提取与贴片数据文件标识播放队列对应的播 放策略数据, 形成队列, 并存储在客户端内存中; Step S302: Extract the play policy data corresponding to the play queue of the patch data file identifier from the play control file, form a queue, and store it in the client memory;
步骤 S303: 当视频开始播放时, 根据当前播放视频的频道, 查找上述两个 队列以获取播放所需的相应数据; Step S303: When the video starts playing, according to the channel of the currently playing video, the above two queues are searched to obtain corresponding data required for playing;
在步骤 S304中,在播放视频的同时,根据获得的相应数据调用相应的播放
程序播放贴片数据。 In step S304, while playing the video, the corresponding play is called according to the obtained corresponding data. The program plays the patch data.
以下将结合本发明实施例提供的贴片数据的播放方法描述本发明实施例提 供的播放贴片数据的服务器和客户端。 The server and the client for playing the patch data provided by the embodiment of the present invention are described below in conjunction with the method for playing the patch data provided by the embodiment of the present invention.
图 4是本发明实施例中服务器的结构示意图, 如图 4所示, 服务器包括播 放控制文件生成模块 410、 数据库 411、 播放控制文件版本号比较模块 412、 校 验码生成模块 413。 4 is a schematic structural diagram of a server in an embodiment of the present invention. As shown in FIG. 4, the server includes a play control file generating module 410, a database 411, a play control file version number comparison module 412, and a check code generating module 413.
播放控制文件生成模块 410生成播放控制文件, 并将生成的播放控制文件 存放在数据库 411中。数据库 411存储贴片数据文件以及生成的播放控制文件, 校验码生成模块 413在每次服务器端的数据库 411中的贴片数据文件更新后, 都根据预定的校验算法为每个贴片数据文件生成校验码, 并将校验码写入播放 控制文件中。 The playback control file generating module 410 generates a playback control file, and stores the generated playback control file in the database 411. The database 411 stores the patch data file and the generated playback control file, and the check code generation module 413 performs each patch data file according to a predetermined verification algorithm after each patch data file in the database 411 of the server side is updated. Generate a check code and write the check code to the playback control file.
播放控制文件版本号比较模块 412接收来自客户端的播放控制文件的版本 号, 并将其与数据库 411 中的播放控制文件的版本号进行比较, 当没有获得客 户端的播放控制文件的版本号或比对结果为二者不同时, 通知客户端下载最新 的播放控制文件。 The play control file version number comparison module 412 receives the version number of the play control file from the client and compares it with the version number of the play control file in the database 411, when the version number or comparison of the play control file of the client is not obtained. When the result is different, the client is notified to download the latest playback control file.
这里服务器端也可以不需要播放控制文件版本号比较模块 412, 在这种情 况下, 数据库 411直接将最新的播放控制文件的版本号返回给客户端。 Here, the server side may not need to play the control file version number comparison module 412. In this case, the database 411 directly returns the version number of the latest playback control file to the client.
图 5是本发明实施例提供的客户端的结构示意图, 如图 5所示, 客户端包 括数据库 510、 更新下载模块 511、 贴片数据文件标识和校验码比对模块 512、 校验码生成模块 513、 播放控制模块 514。 5 is a schematic structural diagram of a client according to an embodiment of the present invention. As shown in FIG. 5, the client includes a database 510, an update download module 511, a patch data file identifier and a check code comparison module 512, and a check code generation module. 513. The play control module 514.
数据库 510存储贴片数据文件和播放控制文件; 在自身没有播放控制文件 时, 向更新下载模块发送更新播放控制文件指令; 在自身存储有播放控制文件 时, 向服务器上报自身的控制数据版本号。 The database 510 stores the patch data file and the playback control file; when the playback control file is not played by itself, the update playback control file command is sent to the update download module; when the playback control file is stored by itself, the control data version number of the control data is reported to the server.
更新下载模块 511根据服务器的下载指示, 从服务器的数据库 410中下载 播放控制文件到数据库 510, 然后通知贴片数据文件标识和校验码比对模块 512。
贴片数据文件标识和校验码比对模块 512, 比对数据库 510中存储的贴片 数据文件的标识与下载的播放控制文件(与服务器端的播放控制文件相同版本) 中记载的待播放贴片数据文件的标识。 当比对结果为数据库 510未存储全部的 播放控制文件中记载的待播放贴片数据文件, 通知更新下载模块 511下载播放 控制文件里记载但数据库 510中没有的贴片数据文件; 当比对结果为二者相同 时, 通知校验码生成模块 513根据预定的校验码算法为标识与播放控制文件中 相同的每个本地贴片数据文件生成校验码, 并将校验码生成模块 513返回的贴 片数据文件的校验码与数据库 510中播放控制文件记载的贴片数据文件的校验 码比对, 当校验码不同时, 通知更新下载模块 511更新下载标识相同但校验码 不同的贴片数据文件,更新下载模块 511下载贴片数据文件后存储在数据库 510 中。 The update download module 511 downloads the play control file from the database 410 of the server to the database 510 according to the download instruction of the server, and then notifies the tile data file identification and check code comparison module 512. The patch data file identifier and check code matching module 512 compares the identifier of the patch data file stored in the database 510 with the downloaded play control file (the same version as the server-side playback control file) to be played. The identifier of the data file. When the comparison result is that the database 510 does not store all the to-be-played patch data files described in the playback control file, the update download module 511 is notified to download the patch data file recorded in the playback control file but not in the database 510; When the two are the same, the notification check code generating module 513 generates a check code for each local patch data file that is the same as the identifier in the playback control file according to the predetermined check code algorithm, and returns the check code generation module 513. The check code of the patch data file is compared with the check code of the patch data file recorded in the play control file in the database 510. When the check code is different, the update download module 511 is notified that the download identifier is the same but the check code is different. The patch data file, the update download module 511 downloads the patch data file and stores it in the database 510.
贴片数据文件标识和校验码比对模块 512在接收到更新下载模块 511发出 下载完毕的通知后, 同样执行上述比对操作。 After the patch data file identification and check code matching module 512 receives the notification that the download is completed, the above-mentioned comparison operation is also performed.
当数据库 510中存储了最新的播放控制文件以及播放控制文件记载的待播 放贴片数据文件后, 更新下载模块 511指示数据库 510删除数据库 510存储有 但不属于待播放的贴片数据文件。 After the latest playback control file and the to-be-played patch data file recorded in the playback control file are stored in the database 510, the update download module 511 instructs the database 510 to delete the patch data file stored in the database 510 but not belonging to the to-be-played.
客户端的播放模块 514用于从播放控制文件中提取每个频道需要播放的贴 片数据文件的标识, 为每个频道产生一个贴片数据文件播放队列, 并存储在数 据库 510中; 从播放控制文件里提取每个频道要播放的贴片数据文件的播放策 略数据, 形成队列, 存储在数据库 510。 播放模块 514还用于在开始视频播放 时, 根据当前播放的频道, 查找上述两个队列以获取播放所需的相应数据, 并 根据获得的相应数据调用相应的播放程序播放贴片数据。 The playing module 514 of the client is configured to extract, from the playing control file, the identifier of the patch data file that each channel needs to play, generate a patch data file playing queue for each channel, and store it in the database 510; The playback policy data of the tile data file to be played by each channel is extracted, formed into a queue, and stored in the database 510. The playing module 514 is further configured to: when starting the video playing, searching the two queues according to the currently playing channel to obtain corresponding data required for playing, and calling the corresponding playing program to play the patch data according to the obtained corresponding data.
针对于服务器没有播放控制文件版本号比较模块 411的情况, 客户端还可 以包括一个播放控制文件版本号比较模块 515, 在这种情况下, 数据库 510可 以不向服务器上报自身的播放控制文件版本号, 而是播放控制文件版本号比较 模块 515接收来自服务器的最新播放控制文件版本号后, 将其与数据库 510中
的播放控制文件版本号进行比对, 如杲二者相同, 则通知贴片数据文件标识和 校验码比对模块 512, 进行后续处理; 如果两者不同, 则通知下载更新模块 511 从服务器的数据库 410 中下载播放控制文件到数据库 510, 然后通知贴片数据 文件标识和校验码比对模块 512进行后续处理。 For the case where the server does not play the control file version number comparison module 411, the client may further include a playback control file version number comparison module 515. In this case, the database 510 may not report its own playback control file version number to the server. , the playback control file version number comparison module 515 receives the latest playback control file version number from the server, and associates it with the database 510. The playback control file version number is compared, if the two are the same, the patch data file identifier and the check code comparison module 512 are notified for subsequent processing; if the two are different, the download update module 511 is notified from the server. The play control file is downloaded to the database 510 in the database 410, and then the patch data file identification and check code comparison module 512 is notified for subsequent processing.
利用本发明实施例提供的贴片数据的播放方法、 服务器、 客户端, 可根据 需要在服务器端设置贴片数据, 如广告、 新闻、 启事等, 并可根据需要设置贴 片数据的播放策略, 操作灵活, 客户端获得贴片数据和播放策略数据后可在播 放网络视频节目的同时在另一个窗口播放贴片数据 , 不但播放方式多样, 而且 由于贴片数据已经下载到本地, 因此还能够保证贴片数据的流畅播放。 尤其是 对网络直播运营商来说, 通过本发明实施例, 网络直播运营商可以根据自身的 需要在每个节目频道上投放贴片广告, 在用户观看视频的时候产生广告收益。 The method for playing the patch data provided by the embodiment of the present invention, the server, and the client may set the patch data on the server side according to requirements, such as advertisements, news, announcements, etc., and may set the playback strategy of the patch data according to requirements. The operation is flexible. After the client obtains the patch data and the playback policy data, the patch video data can be played in another window while playing the network video program. Not only the playback mode is diverse, but also because the patch data has been downloaded to the local, it can also be guaranteed. Smooth playback of patch data. In particular, for the network live broadcast operator, the network live broadcast operator can place a patch advertisement on each program channel according to the needs of the present invention, and generate advertisement revenue when the user views the video.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应包括在本发明 的保护范围之内。
The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.
Claims
1、 一种贴片数据的播放方法, 其特征在于, 包括: A method for playing patch data, comprising:
获取播放控制文件, 所述播放控制文件包含至少一个待播放贴片数据文件 的标识及播放策略数据; Obtaining a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and play policy data;
根据所述待播放贴片数据文件的标识获取至少一个待播放的贴片数据; 根据所述播放策略数据在播放的视频中随播所获取的贴片数据。 Acquiring at least one piece of the to-be-played patch data according to the identifier of the to-be-played patch data file; and acquiring the acquired patch data in the played video according to the play policy data.
2、 如权利要求 1所述方法, 其特征在于, 所述播放策略数据包括贴片数据 的播放频道、 播放次序、 播放窗口大小、 播放窗口运动方式、 播放时间或者播 放的时间间隔中的一个或多个。 2. The method according to claim 1, wherein the play policy data comprises one of a play channel, a play order, a play window size, a play window motion mode, a play time, or a play time interval of the tile data. Multiple.
3、 如权利要求 1所述方法, 其特征在于, 所述播放控制文件进一步包括播 放控制文件版本号, 所述获取播放控制文件包括: The method of claim 1, wherein the play control file further comprises a play control file version number, and the obtaining the play control file comprises:
判断本地存储的播放控制文件的版本号与待接收的播放控制文件的版本号 是否相同, 若不同, 则下载最新的播放控制文件。 It is judged whether the version number of the locally stored playback control file is the same as the version number of the playback control file to be received, and if different, the latest playback control file is downloaded.
4、 如权利要求 1所述方法, 其特征在于, 所述获取待播放的贴片数据文件 包括: The method of claim 1, wherein the obtaining the patch data file to be played comprises:
判断播放控制文件中的待播放贴片数据文件的标识与本地存储的贴片数据 标识是否相同; 若不相同, 下载本地没有存储但属于待播放的贴片数据文件。 It is determined whether the identifier of the to-be-played patch data file in the playback control file is the same as the locally stored patch data identifier; if not, the download does not store the patch data file to be played.
5、 如权利要求 4所述方法, 其特征在于, 所述播放控制文件进一步包括校 验码; 5. The method of claim 4, wherein the play control file further comprises a check code;
所述获取待播放的贴片数据文件进一步包括: The obtaining the patch data file to be played further includes:
根据预定的校验码算法, 为标识与播放控制文件中相同的每个本地贴片数 据文件产生一个临时校验码; Generating a temporary check code for each local patch data file that identifies the same as in the playback control file according to a predetermined check code algorithm;
判断播放控制文件中的校验码与临时校验码是否相同, 若不相同, 下载校 验码比较结果不同的贴片数据文件。 It is judged whether the check code in the play control file is the same as the temporary check code. If not, download the patch data file with different check code comparison results.
6、 如权利要求 4或 5所述方法, 其特征在于, 根据所述待播放贴片数据文 件的标识获取至少一个待播放的贴片数据之后, 进一步包括:
删除本地存储的但不属于待播放的贴片数据文件。 The method of claim 4 or 5, wherein after acquiring the at least one piece of the to-be-played patch data according to the identifier of the to-be-played patch data file, the method further includes: Delete locally stored but not part of the patch data file to be played.
7、 如权利要求 1所述方法, 其特征在于, 所述根据播放策略数据在播放的 视频中随播所获取的贴片数据包括: 7. The method according to claim 1, wherein the patch data acquired in the broadcasted video according to the play policy data comprises:
生成与视频同时播放的贴片数据文件标识队列; Generating a patch data file identification queue that plays simultaneously with the video;
生成与所述贴片数据文件标识队列对应的播放策略数据队列; Generating a play policy data queue corresponding to the patch data file identifier queue;
在播放视频的同时, 根据所述播放策略数据队列播放所述贴片数据文件标 识队列中的贴片数据。 While playing the video, the patch data file is played according to the play policy data queue to display the patch data in the queue.
8、 一种实现贴片数据播放的客户端, 其特征在于, 包括: 8. A client for implementing patch data playback, characterized in that:
更新下载模块, 用于获取播放控制文件, 所述播放控制文件包含至少一个 待播放贴片数据文件的标识及播放策略数据, 以及根据所述待播放贴片数据文 件的标识获取至少一个待播放的贴片数据; And an update downloading module, configured to obtain a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and the play policy data, and acquire at least one to be played according to the identifier of the to-be-played patch data file. Patch data
播放控制模块, 用于根据所述播放策略数据在播放的视频中随播所获取的 贴片数据。 And a play control module, configured to play the acquired patch data in the played video according to the play policy data.
9、 如权利要求 8所述客户端, 其特征在于, 进一步包括: The client according to claim 8, further comprising:
数据库, 用于存储贴片数据文件和播放控制文件, 在自身没有播放控制文 件时向更新下载模块发送更新播放控制文件指令; 在自身存储有播放控制文件 时, 向服务器上报自身的播放控制文件版本号; The database is configured to store the patch data file and the play control file, and send an update play control file instruction to the update download module when the control file is not played by itself; when the playback control file is stored by itself, report the version of the play control file to the server number;
贴片数据文件标识和校验码比对模块, 用于比较更新下载模块获取的播放 控制文件中的待播放贴片数据文件的标识和数据库中的贴片数据文件的标识, 当比较结果为不同时, 通知更新下载模块获取数据库没有但属于待播放的贴片 数据文件并存储到数据库中。 The patch data file identifier and the check code comparison module are configured to compare the identifier of the to-be-played patch data file in the playback control file obtained by the update module and the identifier of the patch data file in the database, when the comparison result is not At the same time, the notification update download module acquires the patch data file that the database does not belong to but is to be played and stores it in the database.
10、 如权利要求 9所述的客户端, 其特征在于, 进一步包括: The client according to claim 9, further comprising:
校验码生成模块, 用于在接收到贴片数据标识和校验码比对模块输出的比 较结杲为相同时, 依照预定的校验码算法为存储在数据库中且其标识被播放控 制文件所记载的贴片数据文件生成校验码; a check code generating module, configured to: when the comparison result of the patch data identifier and the check code comparison module output is the same, according to a predetermined check code algorithm, the identifier is stored in the database and the identifier is played by the control file. The generated patch data file generates a check code;
所述贴片数据文件标识和校验码比对模块, 进一步用于在接收到来自校验
码生成模块的校验码后, 将校验码生成模块生成的校验码与播放控制文件中的 每个校验码比较, 并当比较结果为不同时, 通知更新下载模块下载校验码比较 结果为不同的贴片数据并存储到数据库中。 The patch data file identifier and the check code comparison module are further used to receive the checksum After the check code of the code generation module, the check code generated by the check code generation module is compared with each check code in the play control file, and when the comparison result is different, the update download module is notified to download the check code. The result is different patch data and stored in the database.
11、 如权利要求 9或 10所述的客户端, 其特征在于, 进一步包括: 播放控制文件版本号比较模块, 用于接收来自服务器的最新播放控制文件 版本号, 并将其与数据库中存储的播放控制文件版本号进行比较, 若比较结果 不同, 通知更新下载模块下载最新的播放控制文件并存储到数据库中; The client according to claim 9 or 10, further comprising: a playback control file version number comparison module, configured to receive a latest playback control file version number from the server, and store the same with the database The playback control file version number is compared, and if the comparison result is different, the update download module is notified to download the latest playback control file and store it in the database;
所述数据库, 用于存储贴片数据文件和播放控制文件, 在自身没有播放控 制文件时向更新下载模块发送更新播放控制文件指令。 The database is configured to store a patch data file and a play control file, and send an update play control file instruction to the update download module when the control file is not played by itself.
12、 一种贴片数据播放方法, 其特征在于, 包括: 12. A method for playing a patch data, comprising:
生成播放控制文件, 所述播放控制文件包含至少一个待播放贴片数据文件 的标识及播放策略数据; Generating a play control file, where the play control file includes at least one identifier of the to-be-played patch data file and play policy data;
向客户端提供播放控制文件以及所述播放控制文件中指示的待播放贴片数 据文件。 A playback control file and a to-be-played tile data file indicated in the playback control file are provided to the client.
13、如权利要求 12所述的方法,其特征在于,所述生成播放控制文件包括: 接收客户端的个性化数据, 根据客户端的个性化数据生成播放控制文件。 The method according to claim 12, wherein the generating the play control file comprises: receiving personalized data of the client, and generating a play control file according to the personalized data of the client.
14、 如权利要求 12所述方法, 其特征在于, 所述播放策略数据包括贴片数 据文件的播放频道、 播放次序、 播放窗口大小、 播放窗口运动方式、 播放时间 或者播放的时间间隔中的一个或多个。 The method of claim 12, wherein the play policy data comprises one of a play channel, a play order, a play window size, a play window motion mode, a play time, or a play time interval of the tile data file. Or multiple.
15、 如权利要求 12所述方法, 其特征在于, 所述播放控制文件进一步包括 播放控制文件版本号, 所述向客户端提供播放控制文件以及所述播放控制文件 中指示的待播放贴片数据文件之前, 进一步包括: The method of claim 12, wherein the play control file further comprises a play control file version number, the providing the client with a play control file and the to-be-played patch data indicated in the play control file Before the file, further include:
接收来自客户端的播放控制文件的版本号; Receiving the version number of the playback control file from the client;
将其与自身的播放控制文件的版本号进行比较; Compare it to the version number of its own playback control file;
当没有获得客户端的播放控制文件的版本号或比对结果为二者不同时, 通 知客户端更新下载模块下载最新的播放控制文件。
When the version number of the playback control file of the client is not obtained or the comparison result is different, the client is notified to update the download module to download the latest playback control file.
16、 如权利要求 12或 15所述方法, 其特征在于, 所述更新贴片数据文件 后, 进一步包括: The method according to claim 12 or 15, wherein after the updating the patch data file, the method further comprises:
根据预定的校验码算法为每个贴片数据文件生成校验码, 并将校驗码写入 播放控制文件中。 A check code is generated for each tile data file according to a predetermined check code algorithm, and the check code is written into the playback control file.
17、 一种实现贴片数据播放的服务器, 其特征在于, 包括播放控制文件生 成模块以及数据库, 其中 17. A server for implementing patch data playback, comprising: a playback control file generation module and a database, wherein
播放控制文件生成模块, 用于生成播放控制文件, 并将生成的播放控制文 件存储在数据库中; a play control file generating module, configured to generate a play control file, and store the generated play control file in a database;
数据库, 用于存储贴片数据文件以及播放控制文件, 并向客户端提供播放 控制文件以及所述播放控制文件中指示的待播放的贴片数据文件。 The database is configured to store the patch data file and the play control file, and provide the client with the play control file and the patch data file to be played as indicated in the play control file.
18、 如权利要求 17所述服务器, 其特征在于, 进一步包括: The server according to claim 17, further comprising:
播放控制文件版本号比较模块, 用于接收来自客户端的播放控制文件的版 本号, 并将其与数据库中的播放控制文件的版本号进行比较, 当没有获得客户 端的播放控制文件的版本号或比对结杲为二者不同时, 通知客户端更新下载模 块下载最新的播放控制文件。 a playback control file version number comparison module, configured to receive a version number of the playback control file from the client, and compare it with a version number of the playback control file in the database, when the version number or ratio of the playback control file of the client is not obtained When the relationship is different, the client is notified to update the download module to download the latest playback control file.
19、 如权利要求 17或 18所述服务器, 其特征在于, 进一步包括: 校验码生成模块, 用于在所述数据库模块更新贴片数据文件后, 根据预定 的校验码算法为每个贴片数据文件生成校验码, 并将校验码写入播放控制文件 中。
The server according to claim 17 or 18, further comprising: a check code generating module, configured to: after the database module updates the patch data file, perform a paste according to a predetermined check code algorithm The slice data file generates a check code and writes the check code into the playback control file.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710075081 CN101087388B (en) | 2007-06-19 | 2007-06-19 | A playing method and system of chip data |
CN200710075081.1 | 2007-06-19 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2008154821A1 true WO2008154821A1 (en) | 2008-12-24 |
Family
ID=38938110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/070562 WO2008154821A1 (en) | 2007-06-19 | 2008-03-21 | Method for playing the adhibiting data, client end and server |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN101087388B (en) |
TW (1) | TW200913661A (en) |
WO (1) | WO2008154821A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101087388B (en) * | 2007-06-19 | 2010-05-26 | 腾讯科技(深圳)有限公司 | A playing method and system of chip data |
CN101594488A (en) * | 2008-05-30 | 2009-12-02 | 新奥特(北京)视频技术有限公司 | A kind of information dynamic substitution method |
CN103731692B (en) * | 2012-10-16 | 2017-04-12 | 阿里巴巴集团控股有限公司 | Method and system for playing SDM data |
CN103607634A (en) * | 2013-11-19 | 2014-02-26 | 四川长虹电器股份有限公司 | Method for reducing network video ordering terminal user waiting time |
CN105100818B (en) * | 2014-04-29 | 2018-12-11 | 腾讯科技(北京)有限公司 | Carry out method, system and the Website server of web video broadcasting |
CN103974123A (en) * | 2014-05-29 | 2014-08-06 | 青岛海信宽带多媒体技术有限公司 | Method and device for automatically updating startup picture |
EP2983373B1 (en) * | 2014-08-04 | 2018-10-03 | TP Vision Holding B.V. | Rendering of an audio and/or video signal comprising trick play limited parts |
CN105208448B (en) * | 2015-09-25 | 2018-07-17 | 北京奇艺世纪科技有限公司 | A kind of advertisement broadcast method and device |
CN105847929A (en) * | 2016-03-21 | 2016-08-10 | 乐视网信息技术(北京)股份有限公司 | Display method and device of advertisement data |
CN108259409B (en) * | 2016-12-28 | 2020-08-11 | 腾讯科技(深圳)有限公司 | Information processing method, terminal and system |
CN107622417A (en) * | 2017-09-15 | 2018-01-23 | 北京奇艺世纪科技有限公司 | A kind of advertisement sending method based on geographical position, device and electronic equipment |
CN112214643B (en) * | 2020-10-15 | 2024-01-12 | 百度(中国)有限公司 | Video patch generation method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1206531A (en) * | 1996-10-29 | 1999-01-27 | 皇家菲利浦电子有限公司 | TV receiver |
CN1225909C (en) * | 1998-12-18 | 2005-11-02 | 艾利森电话股份有限公司 | System and method of providing targeted advertising during video telephone calls |
CN101087388A (en) * | 2007-06-19 | 2007-12-12 | 腾讯科技(深圳)有限公司 | A playing method and system of chip data |
-
2007
- 2007-06-19 CN CN 200710075081 patent/CN101087388B/en active Active
- 2007-09-14 TW TW96134523A patent/TW200913661A/en unknown
-
2008
- 2008-03-21 WO PCT/CN2008/070562 patent/WO2008154821A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1206531A (en) * | 1996-10-29 | 1999-01-27 | 皇家菲利浦电子有限公司 | TV receiver |
CN1225909C (en) * | 1998-12-18 | 2005-11-02 | 艾利森电话股份有限公司 | System and method of providing targeted advertising during video telephone calls |
CN101087388A (en) * | 2007-06-19 | 2007-12-12 | 腾讯科技(深圳)有限公司 | A playing method and system of chip data |
Also Published As
Publication number | Publication date |
---|---|
CN101087388A (en) | 2007-12-12 |
CN101087388B (en) | 2010-05-26 |
TW200913661A (en) | 2009-03-16 |
TWI349476B (en) | 2011-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2008154821A1 (en) | Method for playing the adhibiting data, client end and server | |
US12118573B2 (en) | Messaging service for providing updates for multimedia content of a live event delivered over the internet | |
US8682722B1 (en) | Controlling user experience | |
JP6490635B2 (en) | Information processing apparatus, information processing method, and program | |
JP5917508B2 (en) | Method and apparatus for synchronizing paused playback across platforms | |
US8769565B2 (en) | Inserting branding elements | |
US20160255396A1 (en) | Inserting ad elements | |
CN103780929B (en) | Method and system for inserting an advertisement in a media stream | |
KR101632464B1 (en) | Method and system for sharing digital media content | |
JP5313882B2 (en) | Device for displaying main content and auxiliary content | |
US20120047542A1 (en) | System and method for rule based dynamic server side streaming manifest files | |
JP5026423B2 (en) | Method and apparatus for delivering electronic messages | |
WO2008000191A1 (en) | A method, system and client of playing advertisement | |
US20090300145A1 (en) | Media streaming with seamless ad insertion | |
US20090164601A1 (en) | System and method for providing a primary video stream with a secondary video stream for display on an electronic device | |
US20140063259A1 (en) | Method and system for video production | |
JP2011512714A (en) | Hybrid services: data, audio and clip cast | |
CN102364956A (en) | Method for realizing advertising in starting of Internet protocol television (IPTV) system | |
JP2005503628A (en) | Metadata processing device | |
US9961415B2 (en) | Method and system for identifying events in a streaming media program | |
US9197920B2 (en) | Shared media experience distribution and playback | |
US20090064257A1 (en) | Compact graphics for limited resolution display devices | |
JP2007013312A (en) | Communication terminal and information processing system | |
JP2009105885A (en) | System and method for reproducing external information inside distribution moving image | |
CN107820036A (en) | A kind of home video entertainment system |
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: 08715298 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 08715298 Country of ref document: EP Kind code of ref document: A1 |