CN111800659A - Program synchronization method, device, display terminal and storage medium - Google Patents
Program synchronization method, device, display terminal and storage medium Download PDFInfo
- Publication number
- CN111800659A CN111800659A CN202010496641.6A CN202010496641A CN111800659A CN 111800659 A CN111800659 A CN 111800659A CN 202010496641 A CN202010496641 A CN 202010496641A CN 111800659 A CN111800659 A CN 111800659A
- Authority
- CN
- China
- Prior art keywords
- display terminal
- program
- synchronized
- target
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
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/4302—Content synchronisation processes, e.g. decoder synchronisation
-
- 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明实施例提供了一种节目同步的方法、装置、显示终端和存储介质。该节目同步的方法包括:当前显示端向显示端集群广播第一节目同步消息,显示端集群包括多个显示端,第一节目同步消息包括待同步节目标识;接收多个显示端响应于第一节目同步消息返回的状态消息;基于状态消息将多个显示端的其中一个作为目标显示端,并向目标显示端同步待同步节目标识对应的节目数据,以使目标显示端播放待同步节目,其中,目标显示端与当前显示端不相同;将目标显示端定义为当前显示端,重新执行向显示端集群广播第一节目同步消息的步骤,直至显示端集群中的每个显示端播放待同步节目。达到降低给多个显示端同步节目的耗时的效果。
Embodiments of the present invention provide a method, device, display terminal and storage medium for program synchronization. The method for program synchronization includes: a current display terminal broadcasts a first program synchronization message to a display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes an identifier of a program to be synchronized; The status message returned by the program synchronization message; based on the status message, one of the multiple display terminals is used as the target display terminal, and the program data corresponding to the identifier of the program to be synchronized is synchronized with the target display terminal, so that the target display terminal plays the program to be synchronized, wherein, The target display terminal is different from the current display terminal; the target display terminal is defined as the current display terminal, and the step of broadcasting the first program synchronization message to the display terminal cluster is re-executed until each display terminal in the display terminal cluster plays the program to be synchronized. To achieve the effect of reducing the time-consuming of synchronizing programs for multiple display ends.
Description
技术领域technical field
本发明实施例涉及节目播放技术领域,尤其涉及一种节目同步的方法、装 置、显示终端和存储介质。The embodiments of the present invention relate to the technical field of program playback, and in particular, to a method, a device, a display terminal and a storage medium for program synchronization.
背景技术Background technique
随着节目播放的迅速发展,如何在多个显示终端中快速同步节目越来越重 要。With the rapid development of program broadcasting, how to quickly synchronize programs among multiple display terminals is becoming more and more important.
目前,常用的方案是控制端依次给显示端集群中的每个显示端同步节目数 据,直到显示端集群中的每个显示端都接收到节目数据,从而进行节目播放。At present, a common solution is that the control terminal synchronizes program data to each display terminal in the display terminal cluster in turn, until each display terminal in the display terminal cluster receives the program data, so as to play the program.
然而,常用的方案需要控制端依次给每个显示端,需要耗费较长的时间。However, the commonly used solution requires the control terminal to be assigned to each display terminal in turn, which takes a long time.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种节目同步的方法、装置、显示终端和存储介质,以 实现降低给多个显示端同步节目的耗时。Embodiments of the present invention provide a method, device, display terminal, and storage medium for program synchronization, so as to reduce the time-consuming of synchronizing programs for multiple display terminals.
第一方面,本发明实施例提供了一种节目同步的方法,应用于当前显示端, 所述方法包括:In a first aspect, an embodiment of the present invention provides a method for program synchronization, which is applied to a current display terminal. The method includes:
向显示端集群广播第一节目同步消息,所述显示端集群包括多个显示端, 所述第一节目同步消息包括待同步节目标识;broadcasting a first program synchronization message to a display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes an identifier of a program to be synchronized;
接收所述多个显示端响应于所述第一节目同步消息返回的状态消息;receiving status messages returned by the plurality of display terminals in response to the first program synchronization message;
基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所 述目标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端 播放待同步节目,其中,所述目标显示端与所述当前显示端不相同;Based on the status message, one of the multiple display terminals is used as the target display terminal, and the program data corresponding to the identifier of the program to be synchronized is synchronized to the target display terminal, so that the target display terminal plays the program to be synchronized, Wherein, the target display terminal is different from the current display terminal;
将所述目标显示端定义为所述当前显示端,重新执行向显示端集群广播第 一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述待同步 节目。The target display terminal is defined as the current display terminal, and the step of broadcasting the first program synchronization message to the display terminal cluster is re-executed until each display terminal in the display terminal cluster plays the to-be-synchronized program.
可选的,所述状态消息携带有显示端的第一终端标识和对应的状态是否正 常的标识,所述基于所述状态消息将所述多个显示端的其中一个作为目标显示 端,包括:Optionally, the status message carries the first terminal identification of the display terminal and the identification of whether the corresponding state is normal, and one of the multiple display terminals is used as the target display terminal based on the status message, including:
基于所述状态消息确定所述多个显示端中的候选显示端,所述候选显示端 为所述状态消息表示状态正常的显示端;Determine a candidate display terminal in the plurality of display terminals based on the status message, and the candidate display terminal is a display terminal that the status message indicates that the state is normal;
将所述候选显示端中的其中一个作为所述目标显示端。One of the candidate display terminals is used as the target display terminal.
可选的,所述将所述候选显示端中的其中一个作为所述目标显示端,包括:Optionally, using one of the candidate display terminals as the target display terminal includes:
向所述候选显示端广播第二节目同步消息,所述第二节目同步消息携带有 预同步节目标识;Broadcasting a second program synchronization message to the candidate display terminal, the second program synchronization message carrying a pre-synchronized program identifier;
接收所述候选显示端响应于所述第二节目同步消息返回的响应消息;receiving a response message returned by the candidate display terminal in response to the second program synchronization message;
将所述响应消息为允许同步消息对应的候选显示端作为目标候选显示端, 所述允许同步消息映射所述候选显示端比对所述待同步节目标识和所述预同步 节目标识一致且未接收所述待同步节目标识对应的节目数据的结果;The response message is the candidate display terminal corresponding to the synchronization permission message as the target candidate display terminal, and the synchronization permission message maps the candidate display terminal to compare the identifier of the program to be synchronized with the identifier of the pre-synchronized program and is not received. The result of the program data corresponding to the identifier of the program to be synchronized;
将所述目标候选显示端的其中一个作为所述目标显示端。One of the target candidate display terminals is used as the target display terminal.
可选的,所述目标候选显示端为多个,所述将所述目标候选显示端的其中 一个作为所述目标显示端,包括:Optionally, the target candidate display terminals are multiple, and one of the target candidate display terminals is used as the target display terminal, including:
将最先接收到所述允许同步消息对应的目标候选显示端作为所述目标显示 端。The target candidate display terminal corresponding to the first receiving the synchronization permission message is used as the target display terminal.
可选的,若当前显示端为一个,则在所述向显示端集群广播第一节目同步 消息之前,包括:Optionally, if the current display terminal is one, then before the first program synchronization message is broadcast to the display terminal cluster, it includes:
接收控制端发送的所述节目数据。The program data sent by the control terminal is received.
可选的,所述当前显示端在向所述目标显示端发送节目数据的同时持续播 放所述待同步节目。Optionally, the current display terminal continues to play the to-be-synchronized program while sending program data to the target display terminal.
可选的,同步所述节目数据和/或接收所述节目数据的显示端在节目数据传 输过程中为占用状态,在所述占用状态下所述显示端在所述节目数据传输完成 之前不再接受其余显示端发送的所述节目数据,所述方法还包括:Optionally, the display terminal that synchronizes the program data and/or receives the program data is in an occupied state during the program data transmission process, and in the occupied state, the display terminal is no longer available before the program data transmission is completed. Accepting the program data sent by other display terminals, the method further includes:
接受所述控制端发送的取消同步指令,所述取消同步指令携带有需取消同 步的显示端对应的第二终端标识;Accept the cancellation synchronization instruction sent by the control terminal, and the cancellation synchronization instruction carries the second terminal identification corresponding to the display terminal that needs to be cancelled synchronization;
基于所述第二终端标识取消所述待同步节目的同步。The synchronization of the to-be-synchronized program is canceled based on the second terminal identifier.
第二方面,本发明实施例提供了一种节目同步的装置,应用于当前显示端, 所述装置包括:In a second aspect, an embodiment of the present invention provides an apparatus for program synchronization, which is applied to a current display terminal, and the apparatus includes:
节目同步消息发送模块,用于向显示端集群广播第一节目同步消息,所述 显示端集群包括多个显示端,所述第一节目同步消息包括待同步节目标识;a program synchronization message sending module, configured to broadcast a first program synchronization message to a display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes a program identifier to be synchronized;
状态消息接收模块,用于接收所述多个显示端响应于所述第一节目同步消 息返回的状态消息;a status message receiving module for receiving the status messages returned by the plurality of display terminals in response to the first program synchronization message;
节目数据发送模块,用于基于所述状态消息将所述多个显示端的其中一个 作为目标显示端,并向所述目标显示端同步所述待同步节目标识对应的节目数 据,以使所述目标显示端播放待同步节目,其中,所述目标显示端与所述当前 显示端不相同;A program data sending module, configured to use one of the multiple display terminals as a target display terminal based on the status message, and synchronize the program data corresponding to the identifier of the program to be synchronized to the target display terminal, so that the target display terminal The display terminal plays the program to be synchronized, wherein the target display terminal is different from the current display terminal;
当前显示端定义模块,用于将所述目标显示端定义为所述当前显示端,重 新执行向显示端集群广播第一节目同步消息的步骤,直至所述显示端集群中的 每个显示端播放所述待同步节目。The current display terminal definition module is used to define the target display terminal as the current display terminal, and re-execute the step of broadcasting the first program synchronization message to the display terminal cluster until each display terminal in the display terminal cluster plays the program to be synchronized.
第三方面,本发明实施例提供了一种显示终端,包括:In a third aspect, an embodiment of the present invention provides a display terminal, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个计算机程序,storage means for storing one or more computer programs,
当所述一个或多个计算机程序被所述一个或多个处理器执行,使得所述一 个或多个处理器实现如本发明任意实施例所述的节目同步的方法。When executed by the one or more processors, the one or more computer programs cause the one or more processors to implement the method for program synchronization according to any embodiment of the present invention.
第四方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计 算机程序,该计算机程序被处理器执行时实现如本发明任意实施例所述的节目 同步的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the program synchronization method according to any embodiment of the present invention.
本发明实施例通过当前显示端向显示端集群广播第一节目同步消息,所述 显示端集群包括多个显示端,所述第一节目同步消息包括待同步节目标识;接 收所述多个显示端响应于所述第一节目同步消息返回的状态消息;基于所述状 态消息将所述多个显示端的其中一个作为目标显示端,并向所述目标显示端同 步所述待同步节目标识对应的节目数据,以使所述目标显示端播放待同步节目, 其中,所述目标显示端与所述当前显示端不相同;将所述目标显示端定义为所 述当前显示端,重新执行向显示端集群广播第一节目同步消息的步骤,直至所 述显示端集群中的每个显示端播放所述待同步节目,解决了常用的方案需要控 制端依次给每个显示端,需要耗费较长的时间的问题,实现了降低给多个显示端同步节目的耗时的效果。In this embodiment of the present invention, a first program synchronization message is broadcast to a cluster of display terminals through the current display terminal, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes an identifier of a program to be synchronized; and the plurality of display terminals are received. In response to the status message returned by the first program synchronization message; based on the status message, use one of the multiple display terminals as the target display terminal, and synchronize the program corresponding to the identifier of the program to be synchronized to the target display terminal data, so that the target display terminal plays the program to be synchronized, wherein the target display terminal is different from the current display terminal; the target display terminal is defined as the current display terminal, and the clustering to the display terminal is re-executed. The step of broadcasting the first program synchronization message, until each display terminal in the display terminal cluster plays the to-be-synchronized program, solves the problem that the commonly used solution requires the control terminal to give each display terminal in turn, which takes a long time. The problem is to achieve the effect of reducing the time-consuming of synchronizing programs for multiple display terminals.
附图说明Description of drawings
图1是本发明实施例一提供的一种节目同步的方法的流程示意图;1 is a schematic flowchart of a method for program synchronization provided in Embodiment 1 of the present invention;
图2是本发明实施例一提供的一种多个显示端进行节目同步的场景示意图;2 is a schematic diagram of a scenario in which multiple display terminals perform program synchronization according to Embodiment 1 of the present invention;
图3是本发明实施例二提供的一种节目同步的方法的流程示意图;3 is a schematic flowchart of a method for program synchronization provided by Embodiment 2 of the present invention;
图4是本发明实施例三提供的一种节目同步的装置的结构示意图;4 is a schematic structural diagram of an apparatus for program synchronization provided in Embodiment 3 of the present invention;
图5是本发明实施例四提供的一种显示终端的结构示意图。FIG. 5 is a schematic structural diagram of a display terminal according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此 处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需 要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结 构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被 描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理, 但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺 序可以被重新安排。当其操作完成时处理可以被终止,但是还可以具有未包括 在附图中的附加步骤。处理可以对应于方法、函数、规程、子例程、子计算机 程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. A process may correspond to a method, function, procedure, subroutine, subcomputer program, or the like.
此外,术语“第一”、“第二”等可在本文中用于描述各种方向、动作、步 骤或元件等,但这些方向、动作、步骤或元件不受这些术语限制。这些术语仅 用于将第一个方向、动作、步骤或元件与另一个方向、动作、步骤或元件区分。 举例来说,在不脱离本申请的范围的情况下,可以将第一终端标识为第二终端 标识,且类似地,可将第二终端标识称为第一终端标识。第一终端标识和第二 终端标识两者都是终端标识,但其不是同一终端标识。术语“第一”、“第二” 等而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。 由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多 个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等, 除非另有明确具体的限定。Furthermore, the terms "first", "second", etc. may be used herein to describe various directions, acts, steps or elements, etc., but are not limited by these terms. These terms are only used to distinguish a first direction, act, step or element from another direction, act, step or element. For example, without departing from the scope of this application, a first terminal may be identified as a second terminal identification, and similarly, a second terminal identification may be referred to as a first terminal identification. Both the first terminal identification and the second terminal identification are terminal identifications, but they are not the same terminal identification. The terms "first", "second" etc. should not be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first", "second" may expressly or implicitly include one or more of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless expressly and specifically defined otherwise.
实施例一Example 1
图1为本发明实施例一提供的一种节目同步的方法的流程示意图,可适用 于对多个显示端进行节目同步的场景,该方法可以由节目同步的装置来执行, 该装置可以采用软件和/或硬件的方式实现,并可集成在显示终端上。1 is a schematic flowchart of a method for program synchronization provided in Embodiment 1 of the present invention, which can be applied to a scenario in which programs are synchronized on multiple display terminals. The method can be executed by a program synchronization device, and the device can use software and/or hardware, and can be integrated on the display terminal.
如图1所示,本发明实施例一提供的节目同步的方法包括:As shown in FIG. 1 , the method for program synchronization provided by Embodiment 1 of the present invention includes:
S110、当前显示端向显示端集群广播第一节目同步消息,所述显示端集群 包括多个显示端,所述第一节目同步消息包括待同步节目标识;S110, the current display terminal broadcasts the first program synchronization message to the display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes the identifier of the program to be synchronized;
其中,当前显示端是指存储有带同步节目的节目数据的显示端,是显示端 集群包括的多个显示端中的其中一个。具体的,多个显示端接入统一局域网中, 按照预先定义的网络协议进行数据传输。第一节目同步消息是指为了确定显示 端集群中显示端是否可以正常接收节目的而发送的消息。待同步节目标识是指 需要进行同步的节目的标识。具体的,待同步节目可以是一段视频、一幅图像 等,此处不作具体限制。在本实施例中,可选的,可以是预先将节目数据存储 在显示端集群的其中一个显示端中,作为第一个当前显示端向其他显示端进行 节目的同步,也可以是通过控制端向其中一个显示端同步节目数据。Wherein, the current display terminal refers to the display terminal that stores the program data with the synchronized program, and is one of the multiple display terminals included in the display terminal cluster. Specifically, multiple display terminals are connected to a unified local area network, and data transmission is performed according to a predefined network protocol. The first program synchronization message refers to a message sent to determine whether the display terminal in the display terminal cluster can normally receive the program. The identifier of the program to be synchronized refers to the identifier of the program to be synchronized. Specifically, the program to be synchronized may be a piece of video, an image, etc., which is not specifically limited here. In this embodiment, optionally, the program data may be stored in one of the display terminals of the display terminal cluster in advance, as the first current display terminal to synchronize the program to other display terminals, or it may be through the control terminal Synchronize program data to one of the displays.
在一个可选的实施方式中,若当前显示端为一个,则在所述向显示端集群 广播第一节目同步消息之前,可以包括当前显示端接收控制端发送的所述节目 数据。具体的,控制端和显示端集群在同一局域网下。可以理解的是,控制端 选择一个显示端发送节目数据可以参考任一实施例中当前显示端发送节目数据 的方案,此处不作具体限制。In an optional implementation manner, if there is one current display terminal, before the broadcast of the first program synchronization message to the display terminal cluster, it may include that the current display terminal receives the program data sent by the control terminal. Specifically, the control terminal and the display terminal cluster are under the same local area network. It can be understood that, when the control terminal selects a display terminal to send program data, reference may be made to the solution of the current display terminal sending program data in any embodiment, and no specific limitation is made here.
在一个可选的实施方式中,同步所述节目数据和/或接收所述节目数据的显 示端在节目数据传输过程中为占用状态,在所述占用状态下所述显示端在所述 节目数据传输完成之前不再接受其余显示端发送的所述节目数据,该节目同步 的方法还包括:In an optional implementation manner, the display terminal that synchronizes the program data and/or receives the program data is in an occupied state during the transmission of the program data, and in the occupied state, the display terminal is in the program data The program data sent by the other display terminals is no longer accepted before the transmission is completed, and the method for synchronizing the program further includes:
接受所述控制端发送的取消同步指令,所述取消同步指令携带有需取消同 步的显示端对应的第二终端标识;基于所述第二终端标识取消所述待同步节目 的同步。Accept the cancellation synchronization instruction sent by the control terminal, and the cancellation synchronization instruction carries the second terminal identification corresponding to the display terminal that needs to be canceled; cancel the synchronization of the program to be synchronized based on the second terminal identification.
其中,取消同步指令用于控制显示端结束节目的同步。第二终端标识是指 需要取消同步节目的显示端对应的标识。本实施方式中,与第二终端标识的对 应的显示端才取消节目同步,可以根据需要确定具体的第二终端标识,可以避 免显示端之间数据没有同步完成,控制端想要发送新的节目而产生冲突的情况, 并且可以选择部分或全部显示取消节目的同步。可选的,当前显示端在发送节 目数据的过程中和目标显示端在接收节目数据的过程中,还可以向控制端反馈 数据同步的进度,则控制端可以收集当前在进行同步的显示端的同步状态,从 而反馈给用户。Wherein, the cancel synchronization instruction is used to control the display terminal to end the synchronization of the program. The second terminal identifier refers to the identifier corresponding to the display terminal that needs to cancel the synchronized program. In this embodiment, only the display terminal corresponding to the second terminal identifier cancels the program synchronization, and the specific second terminal identifier can be determined as needed, which can prevent the data synchronization between the display terminals from not being completed and the control terminal wanting to send a new program. In the event of a conflict, a partial or full display can be selected to cancel the synchronization of the program. Optionally, the current display terminal can also feed back the progress of data synchronization to the control terminal in the process of sending the program data and the target display terminal is in the process of receiving the program data, and the control terminal can collect the synchronization of the display terminal that is currently synchronizing. status, so as to give feedback to the user.
S120、当前显示端接收所述多个显示端响应于所述第一节目同步消息返回 的状态消息;S120, the current display terminal receives the status messages returned by the multiple display terminals in response to the first program synchronization message;
其中,状态消息用于表征显示端是否能正常接收数据。可选的,状态消息 可以包括状态正常和状态异常。具体的,状态正常则表示可以正常接收数据, 状态异常则不能正常接收数据。Among them, the status message is used to represent whether the display terminal can receive data normally. Optionally, the status message may include status normal and status abnormal. Specifically, if the status is normal, it means that data can be received normally, and if the status is abnormal, data cannot be received normally.
S130、当前显示端基于所述状态消息将所述多个显示端的其中一个作为目 标显示端,并向所述目标显示端同步所述待同步节目标识对应的节目数据,以 使所述目标显示端播放待同步节目,其中,所述目标显示端与所述当前显示端 不相同;S130. The current display terminal uses one of the multiple display terminals as the target display terminal based on the status message, and synchronizes the program data corresponding to the identifier of the program to be synchronized with the target display terminal, so that the target display terminal Play the program to be synchronized, wherein the target display terminal is different from the current display terminal;
其中,目标显示端是指多个显示端中,即将接收当前显示端发送的节目数 据且与当前显示端不相同的显示端。具体的,当前显示端将节目数据发给目标 显示端,则目标显示端接收到该节目数据后,可以正常播放待同步节目。The target display terminal refers to a display terminal that is about to receive program data sent by the current display terminal and is different from the current display terminal among the multiple display terminals. Specifically, if the current display terminal sends the program data to the target display terminal, the target display terminal can play the program to be synchronized normally after receiving the program data.
可选的,当前显示端在向目标显示端发送节目数据的同时还持续播放待同 步节目。Optionally, the current display terminal continues to play the program to be synchronized while sending the program data to the target display terminal.
S140、将所述目标显示端定义为所述当前显示端,重新执行向显示端集群 广播第一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述 待同步节目。S140. Define the target display terminal as the current display terminal, and re-execute the step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program.
在本实施例中,具体的,当目标显示端接收到节目数据进行播放后,该目 标显示端也会变为当前显示端,参与到同步节目的过程中来,直到每个显示端 都播放该待同步节目。需要说明的是,当多个显示端的数量大于或等于4时, 采用本实施例的技术方案会有更好的效果。In this embodiment, specifically, after the target display terminal receives the program data for playback, the target display terminal will also become the current display terminal and participate in the process of synchronizing the program until each display terminal plays the program data. Program to be synchronized. It should be noted that when the number of multiple display terminals is greater than or equal to 4, the technical solution of this embodiment will have better effects.
具体的,可以参考图2,图2是本实施例提供的一种多个显示端进行节目 同步的场景示意图。通过图2可知,每一个显示端210在接收到节目数据后都 会变成当前显示端,参与到同步节目的过程中来。Specifically, reference may be made to FIG. 2, which is a schematic diagram of a scenario in which multiple display terminals perform program synchronization according to this embodiment. It can be seen from FIG. 2 that each
本发明实施例的技术方案,通过当前显示端向显示端集群广播第一节目同 步消息,所述显示端集群包括多个显示端,所述第一节目同步消息包括待同步 节目标识;接收所述多个显示端响应于所述第一节目同步消息返回的状态消息; 基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所述目 标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端播放 待同步节目,其中,所述目标显示端与所述当前显示端不相同;将所述目标显 示端定义为所述当前显示端,重新执行向显示端集群广播第一节目同步消息的 步骤,直至所述显示端集群中的每个显示端播放所述待同步节目,接收到节目 数据的显示端可以参与到节目同步的过程中来,达到降低给多个显示端同步节 目的耗时的技术效果。In the technical solution of the embodiment of the present invention, a first program synchronization message is broadcast to a cluster of display ends through the current display end, the display end cluster includes a plurality of display ends, and the first program synchronization message includes an identifier of a program to be synchronized; Status messages returned by multiple display terminals in response to the first program synchronization message; Based on the status messages, one of the multiple display terminals is used as a target display terminal, and the program to be synchronized is synchronized with the target display terminal Identify the corresponding program data, so that the target display terminal plays the program to be synchronized, wherein the target display terminal is not the same as the current display terminal; define the target display terminal as the current display terminal, and re-execute The step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program, and the display terminal that receives the program data can participate in the process of program synchronization to achieve Reduce the time-consuming technical effect of synchronizing programs for multiple display terminals.
实施例二Embodiment 2
图3是本发明实施例二提供的一种节目同步的方法的流程示意图。本实施 例是在上述技术方案的进一步细化。该方法可以由节目同步的装置来执行,该 装置可以采用软件和/或硬件的方式实现,并可集成在显示终端上。FIG. 3 is a schematic flowchart of a method for program synchronization according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The method can be performed by a program synchronization device, which can be implemented in software and/or hardware, and can be integrated on a display terminal.
如图3所示,本发明实施例二提供的节目同步的方法包括:As shown in FIG. 3 , the method for program synchronization provided by the second embodiment of the present invention includes:
S310、当前显示端向显示端集群广播第一节目同步消息,所述显示端集群 包括多个显示端,所述第一节目同步消息包括待同步节目标识;S310, the current display terminal broadcasts the first program synchronization message to the display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes the identifier of the program to be synchronized;
S320、接收所述多个显示端响应于所述第一节目同步消息返回的状态消息, 所述状态消息携带有显示端的第一终端标识和对应的状态是否正常的标识;S320, receiving the status messages returned by the multiple display terminals in response to the first program synchronization message, where the status messages carry the first terminal identifier of the display terminals and an identifier indicating whether the corresponding state is normal;
具体的,显示端的第一终端标识和对应的状态是否正常的标识是相互绑定 的。当前显示端根据绑定的第一终端标识和对应的状态是否正常的标识可以确 定哪些显示端可以正常接收数据。具体的,对应的状态是否正常的标识可以是 预先定义的状态码,例如状态“1”表示状态正常,状态“0”表示状态异常。Specifically, the first terminal identifier of the display terminal and the corresponding identifier of whether the state is normal are bound to each other. The current display terminal can determine which display terminals can normally receive data according to the bound first terminal identifier and the corresponding identifier of whether the state is normal. Specifically, whether the corresponding state is normal or not may be a pre-defined state code, for example, state "1" indicates that the state is normal, and state "0" indicates that the state is abnormal.
S330、基于所述状态消息确定所述多个显示端中的候选显示端,所述候选 显示端为所述状态消息表示状态正常的显示端;S330, determine a candidate display terminal in the multiple display terminals based on the status message, and the candidate display terminal is the display terminal that the status message indicates that the state is normal;
在本步骤中,先确定多个显示端中的候选显示端,候选显示端为状态正常 的显示端。可以理解的是,候选显示端的状态正常时,向该候选显示端发送节 目数据才有意义。In this step, a candidate display terminal among the plurality of display terminals is first determined, and the candidate display terminal is a display terminal in a normal state. It can be understood that when the state of the candidate display terminal is normal, it is meaningful to send the program data to the candidate display terminal.
S340、将所述候选显示端中的其中一个作为所述目标显示端,并向所述目 标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端播放 待同步节目,其中,所述目标显示端与所述当前显示端不相同;S340. Use one of the candidate display terminals as the target display terminal, and synchronize the program data corresponding to the identifier of the program to be synchronized to the target display terminal, so that the target display terminal plays the program to be synchronized, Wherein, the target display terminal is different from the current display terminal;
在本步骤中,目标显示端是候选显示端中的其中一个。本实施例中对于如 何在候选显示端中选择目标显示端不作具体限定。In this step, the target display terminal is one of the candidate display terminals. In this embodiment, there is no specific limitation on how to select the target display terminal from the candidate display terminals.
在一个可选的实施方式中,将所述候选显示端中的其中一个作为所述目标 显示端,包括:In an optional embodiment, one of the candidate display terminals is used as the target display terminal, including:
向所述候选显示端广播第二节目同步消息,所述第二节目同步消息携带有 预同步节目标识;接收所述候选显示端响应于所述第二节目同步消息返回的响 应消息;将所述响应消息为允许同步消息对应的候选显示端作为目标候选显示 端,所述允许同步消息映射所述候选显示端比对所述待同步节目标识和所述预 同步节目标识一致且未接收所述待同步节目标识对应的节目数据的结果;将所 述目标候选显示端的其中一个作为所述目标显示端。broadcasting a second program synchronization message to the candidate display terminal, the second program synchronization message carrying a pre-synchronized program identifier; receiving a response message returned by the candidate display terminal in response to the second program synchronization message; The response message is that the candidate display terminal corresponding to the synchronization message is allowed to be the target candidate display terminal. The synchronization permission message maps the candidate display terminal to compare the identifier of the program to be synchronized with the identifier of the pre-synchronized program and does not receive the program identifier to be synchronized. Synchronizing the result of the program data corresponding to the program identifier; taking one of the target candidate display ends as the target display end.
其中,第二节目同步消息是指为了确定候选显示端中的目标候选显示端而 发送的消息。预同步节目标识是指即将要向目标显示端同步的节目的标识。具 体的,候选显示端接收到该第二节目同步消息时,会响应第二节目同步消息得 到相应消息并返回至当前显示端,当前显示端根据响应消息可以确定候选显示 端中的目标候选显示端。具体的,将响应消息为允许同步消息对应的候选显示 端作为目标候选显示端。需要说明的是,允许同步消息映射所述候选显示端比 对所述待同步节目标识和所述预同步节目标识一致且未接收所述待同步节目标 识对应的节目数据的结果。具体的,当候选显示端接收到第二节目同步消息时, 从第二节目同步消息提取预同步节目标识,将预同步节目标识和第一节目同步消息中包括的待同步节目标识比对,若一致,则判断待同步节目标识对应的节 目数据是否曾经接收过,如果否,则生成允许同步消息返回至当前显示端,当 前显示端则根据允许同步消息确定出目标候选显示端,将所述目标候选显示端 的其中一个作为所述目标显示端发送节目数据。Wherein, the second program synchronization message refers to a message sent to determine a target candidate display terminal among the candidate display terminals. The pre-synchronized program identifier refers to the identifier of the program to be synchronized to the target display terminal. Specifically, when the candidate display terminal receives the second program synchronization message, it will respond to the second program synchronization message to obtain a corresponding message and return to the current display terminal. The current display terminal can determine the target candidate display terminal among the candidate display terminals according to the response message. . Specifically, the candidate display terminal corresponding to the response message allowing the synchronization message is used as the target candidate display terminal. It should be noted that the candidate display terminal is allowed to map the synchronization message to the result that the identifier of the program to be synchronized is consistent with the identifier of the pre-synchronized program and the program data corresponding to the identifier of the program to be synchronized is not received. Specifically, when the candidate display terminal receives the second program synchronization message, it extracts the pre-synchronized program identifier from the second program synchronization message, and compares the pre-synchronized program identifier with the program identifier to be synchronized included in the first program synchronization message. If they are consistent, then determine whether the program data corresponding to the program identifier to be synchronized has been received, if not, generate a synchronization permit message and return it to the current display, and the current display determines the target candidate display end according to the synchronization permit message, and the target One of the candidate display terminals serves as the target display terminal to send program data.
在本实施例中,可选的,可以当接收的所有候选显示端的响应消息为拒绝 同步消息时,则认为节目同步完成。In this embodiment, optionally, when the received response messages of all candidate display terminals are synchronization rejection messages, it may be considered that the program synchronization is completed.
可选的,若目标候选显示端为多个,则将最先接收到所述允许同步消息对 应的目标候选显示端作为所述目标显示端进行节目数据的同步。Optionally, if there are multiple target candidate display terminals, the target candidate display terminal corresponding to the first receiving the synchronization permission message is used as the target display terminal to perform program data synchronization.
S350、将所述目标显示端定义为所述当前显示端,重新执行向显示端集群 广播第一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述 待同步节目。S350. Define the target display terminal as the current display terminal, and re-execute the step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program.
本发明实施例的技术方案,通过当前显示端向显示端集群广播第一节目同 步消息,所述显示端集群包括多个显示端,所述第一节目同步消息包括待同步 节目标识;接收所述多个显示端响应于所述第一节目同步消息返回的状态消息, 所述状态消息携带有显示端的第一终端标识和对应的状态是否正常的标识;基 于所述状态消息确定所述多个显示端中的候选显示端,所述候选显示端为所述 状态消息表示状态正常的显示端;将所述候选显示端中的其中一个作为所述目 标显示端,并向所述目标显示端同步所述待同步节目标识对应的节目数据,以 使所述目标显示端播放待同步节目,其中,所述目标显示端与所述当前显示端 不相同;将所述目标显示端定义为所述当前显示端,重新执行向显示端集群广 播第一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述待 同步节目,在显示端进行校验后且判断是否接收过该节目数据时才同步,达到 避免节目数据传输错误或重复传输的技术效果。In the technical solution of the embodiment of the present invention, a first program synchronization message is broadcast to a cluster of display ends through the current display end, the display end cluster includes a plurality of display ends, and the first program synchronization message includes an identifier of a program to be synchronized; The status messages returned by the plurality of display terminals in response to the first program synchronization message, the status messages carry the first terminal identification of the display terminals and the corresponding identification of whether the status is normal; determine the plurality of display terminals based on the status messages A candidate display terminal in the terminal, the candidate display terminal is a display terminal whose status message indicates that the state is normal; one of the candidate display terminals is used as the target display terminal, and the target display terminal is synchronized with the target display terminal. The program data corresponding to the identifier of the program to be synchronized, so that the target display terminal plays the program to be synchronized, wherein the target display terminal is different from the current display terminal; the target display terminal is defined as the current display terminal. terminal, re-execute the step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program, after the display terminal checks and judges whether the program has been received Only when the data is synchronized, the technical effect of avoiding program data transmission errors or repeated transmissions is achieved.
实施例三Embodiment 3
图4是本发明实施例三提供的一种节目同步的装置的结构示意图,本实施 例可适用于对多个显示端进行节目同步的场景,该装置可以采用软件和/或硬件 的方式实现,并可集成在显示终端上。4 is a schematic structural diagram of a program synchronization device provided in Embodiment 3 of the present invention. This embodiment is applicable to a scenario in which programs are synchronized on multiple display terminals, and the device can be implemented in software and/or hardware. And can be integrated on the display terminal.
如图4所示,本实施例提供的节目同步的装置可以包括节目同步消息发送 模块410、状态消息接收模块420、节目数据发送模块430和当前显示端定义模 块440,其中:As shown in Figure 4, the device for program synchronization provided by the present embodiment can include a program synchronization
节目同步消息发送模块410,用于向显示端集群广播第一节目同步消息, 所述显示端集群包括多个显示端,所述第一节目同步消息包括待同步节目标识;a program synchronization
状态消息接收模块420,用于接收所述多个显示端响应于所述第一节目同 步消息返回的状态消息;Status message receiving module 420, for receiving the status messages returned by the plurality of display terminals in response to the first program synchronization message;
节目数据发送模块430,用于基于所述状态消息将所述多个显示端的其中 一个作为目标显示端,并向所述目标显示端同步所述待同步节目标识对应的节 目数据,以使所述目标显示端播放待同步节目,其中,所述目标显示端与所述 当前显示端不相同;The program
当前显示端定义模块440,用于将所述目标显示端定义为所述当前显示端, 重新执行向显示端集群广播第一节目同步消息的步骤,直至所述显示端集群中 的每个显示端播放所述待同步节目。The current display terminal definition module 440 is configured to define the target display terminal as the current display terminal, and re-execute the step of broadcasting the first program synchronization message to the display terminal cluster until each display terminal in the display terminal cluster Play the program to be synchronized.
可选的,所述状态消息携带有显示端的第一终端标识和对应的状态是否正 常的标识,节目数据发送模块430包括:Optionally, the status message carries the first terminal identification of the display terminal and the identification of whether the corresponding state is normal, and the program
候选显示端确定单元,用于基于所述状态消息确定所述多个显示端中的候 选显示端,所述候选显示端为所述状态消息表示状态正常的显示端;A candidate display terminal determination unit, for determining a candidate display terminal in the plurality of display terminals based on the status message, and the candidate display terminal is a display terminal in which the status message indicates that the state is normal;
目标显示端确定单元,用于将所述候选显示端中的其中一个作为所述目标 显示端。A target display terminal determination unit, configured to use one of the candidate display terminals as the target display terminal.
可选的,目标显示端确定单元包括:Optionally, the target display terminal determination unit includes:
节目同步消息发送子单元,用于向所述候选显示端广播第二节目同步消息, 所述第二节目同步消息携带有预同步节目标识;a program synchronization message sending subunit, configured to broadcast a second program synchronization message to the candidate display terminal, where the second program synchronization message carries a pre-synchronized program identifier;
响应消息接收子单元,用于接收所述候选显示端响应于所述第二节目同步 消息返回的响应消息;A response message receiving subunit, for receiving the response message returned by the candidate display terminal in response to the second program synchronization message;
目标候选显示端确定子单元,用于将所述响应消息为允许同步消息对应的 候选显示端作为目标候选显示端,所述允许同步消息映射所述候选显示端比对 所述待同步节目标识和所述预同步节目标识一致且未接收所述待同步节目标识 对应的节目数据的结果;The target candidate display terminal determination subunit is configured to use the response message as the candidate display terminal corresponding to the synchronization permission message as the target candidate display terminal, and the synchronization permission message maps the candidate display terminal to compare the program identifier to be synchronized and the candidate display terminal. The pre-synchronized program identifiers are consistent and the result of not receiving the program data corresponding to the to-be-synchronized program identifiers;
目标显示端确定子单元,用于将所述目标候选显示端的其中一个作为所述 目标显示端。A target display terminal determination subunit, configured to use one of the target candidate display terminals as the target display terminal.
可选的,所述目标候选显示端为多个,目标显示端确定子单元具体用于将 最先接收到所述允许同步消息对应的目标候选显示端作为所述目标显示端。Optionally, there are multiple target candidate display terminals, and the target display terminal determination subunit is specifically configured to use the target candidate display terminal corresponding to the first receiving the synchronization permission message as the target display terminal.
可选的,若当前显示端为一个,该装置还包括:Optionally, if the current display terminal is one, the device further includes:
节目数据接收模块,用于接收控制端发送的所述节目数据。The program data receiving module is used for receiving the program data sent by the control terminal.
可选的,所述当前显示端在向所述目标显示端发送节目数据的同时持续播 放所述待同步节目。Optionally, the current display terminal continues to play the to-be-synchronized program while sending program data to the target display terminal.
可选的,同步所述节目数据和/或接收所述节目数据的显示端在节目数据传 输过程中为占用状态,在所述占用状态下所述显示端在所述节目数据传输完成 之前不再接受其余显示端发送的所述节目数据,该装置还包括:Optionally, the display terminal that synchronizes the program data and/or receives the program data is in an occupied state during the program data transmission process, and in the occupied state, the display terminal is no longer available before the program data transmission is completed. Accepting the program data sent by other display terminals, the device further includes:
取消同步模块,用于接受所述控制端发送的取消同步指令,所述取消同步 指令携带有需取消同步的显示端对应的第二终端标识;基于所述第二终端标识 取消所述待同步节目的同步。A cancel synchronization module, configured to accept a cancel synchronization instruction sent by the control terminal, where the cancel synchronization instruction carries a second terminal identifier corresponding to the display terminal that needs to be canceled; cancel the program to be synchronized based on the second terminal identifier synchronization.
本发明实施例所提供的节目同步的装置可执行本发明任意实施例所提供的 节目同步的方法,具备执行方法相应的功能模块和有益效果。本发明实施例中 未详尽描述的内容可以参考本发明任意方法实施例中的描述。The program synchronization apparatus provided by the embodiment of the present invention can execute the program synchronization method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For content that is not described in detail in the embodiments of the present invention, reference may be made to the description in any method embodiment of the present invention.
实施例四Embodiment 4
图5是本发明实施例四提供的一种显示终端的结构示意图。图5示出了适 于用来实现本发明实施方式的示例性显示终端612的框图。图5显示的显示终 端612仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 5 is a schematic structural diagram of a display terminal according to Embodiment 4 of the present invention. Figure 5 shows a block diagram of an
如图5所示,显示终端612以通用显示终端的形式表现。显示终端612的 组件可以包括但不限于:一个或者多个处理器616,存储装置628,连接不同系 统组件(包括存储装置628和处理器616)的总线618。As shown in FIG. 5, the
总线618表示几类总线结构中的一种或多种,包括存储装置总线或者存储 装置控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任 意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系 结构(Industry SubversiveAlliance,ISA)总线,微通道体系结构(Micro Channel Architecture,MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连 (Peripheral Component Interconnect,PCI)总线。
显示终端612典型地包括多种计算机系统可读介质。这些介质可以是任何 能够被显示终端612访问的可用介质,包括易失性和非易失性介质,可移动的 和不可移动的介质。
存储装置628可以包括易失性存储器形式的计算机系统可读介质,例如随 机存取存储器(Random Access Memory,RAM)630和/或高速缓存存储器632。 显示终端612可以进一步包括其它可移动/不可移动的、易失性/非易失性计算 机系统存储介质。仅作为举例,存储系统634可以用于读写不可移动的、非易 失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可 以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对 可移动非易失性光盘,例如只读光盘(Compact Disc Read-Only Memory,CD-ROM), 数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数 据介质接口与总线618相连。存储装置628可以包括至少一个计算机程序产品, 该计算机程序产品具有一组(例如至少一个)计算机程序模块,这些计算机程 序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)计算机程序模块642的计算机程序/实用工具640, 可以存储在例如存储装置628中,这样的计算机程序模块642包括但不限于操 作系统、一个或者多个应用计算机程序、其它计算机程序模块以及计算机程序 数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。计算机程 序模块642通常执行本发明所描述的实施例中的功能和/或方法。A computer program/
显示终端612也可以与一个或多个外部设备614(例如键盘、指向显示终 端、显示器624等)通信,还可与一个或者多个使得用户能与该显示终端612 交互的显示终端通信,和/或与使得该显示终端612能与一个或多个其它计算显 示终端进行通信的任何显示终端(例如网卡,调制解调器等等)通信。这种通 信可以通过输入/输出(I/O)接口622进行。并且,显示终端612还可以通过 网络适配器620与一个或者多个网络(例如局域网(LocalArea Network,LAN), 广域网(Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图 5所示,网络适配器620通过总线618与显示终端612的其它模块通信。应当 明白,尽管图中未示出,可以结合显示终端612使用其它硬件和/或软件模块, 包括但不限于:微代码、显示终端驱动器、冗余处理器、外部磁盘驱动阵列、 磁盘阵列(Redundant Arrays ofIndependent Disks,RAID)系统、磁带驱动 器以及数据备份存储系统等。
处理器616通过运行存储在存储装置628中的计算机程序,从而执行各种 功能应用以及数据处理,例如实现本发明任意实施例所提供的一种节目同步的 方法,该方法可以包括:The
向显示端集群广播第一节目同步消息,所述显示端集群包括多个显示端, 所述第一节目同步消息包括待同步节目标识;broadcasting a first program synchronization message to a display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes an identifier of a program to be synchronized;
接收所述多个显示端响应于所述第一节目同步消息返回的状态消息;receiving status messages returned by the plurality of display terminals in response to the first program synchronization message;
基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所 述目标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端 播放待同步节目,其中,所述目标显示端与所述当前显示端不相同;Based on the status message, one of the multiple display terminals is used as the target display terminal, and the program data corresponding to the identifier of the program to be synchronized is synchronized to the target display terminal, so that the target display terminal plays the program to be synchronized, Wherein, the target display terminal is different from the current display terminal;
将所述目标显示端定义为所述当前显示端,重新执行向显示端集群广播第 一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述待同步 节目。The target display terminal is defined as the current display terminal, and the step of broadcasting the first program synchronization message to the display terminal cluster is re-executed until each display terminal in the display terminal cluster plays the to-be-synchronized program.
本发明实施例的技术方案,通过当前显示端向显示端集群广播第一节目同 步消息,所述显示端集群包括多个显示端,所述第一节目同步消息包括待同步 节目标识;接收所述多个显示端响应于所述第一节目同步消息返回的状态消息; 基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所述目 标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端播放 待同步节目,其中,所述目标显示端与所述当前显示端不相同;将所述目标显 示端定义为所述当前显示端,重新执行向显示端集群广播第一节目同步消息的 步骤,直至所述显示端集群中的每个显示端播放所述待同步节目,接收到节目 数据的显示端可以参与到节目同步的过程中来,达到降低给多个显示端同步节 目的耗时的技术效果。In the technical solution of the embodiment of the present invention, a first program synchronization message is broadcast to a cluster of display ends through the current display end, the display end cluster includes a plurality of display ends, and the first program synchronization message includes an identifier of a program to be synchronized; Status messages returned by multiple display terminals in response to the first program synchronization message; Based on the status messages, one of the multiple display terminals is used as a target display terminal, and the program to be synchronized is synchronized with the target display terminal Identify the corresponding program data, so that the target display terminal plays the program to be synchronized, wherein the target display terminal is not the same as the current display terminal; define the target display terminal as the current display terminal, and re-execute The step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program, and the display terminal that receives the program data can participate in the process of program synchronization to achieve Reduce the time-consuming technical effect of synchronizing programs for multiple display terminals.
实施例五Embodiment 5
本发明实施例五还提供了一种计算机可读存储介质,其上存储有计算机程 序,该计算机程序被处理器执行时实现如本发明任意实施例所提供的一种节目 同步的方法,该方法可以包括:Embodiment 5 of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements a program synchronization method as provided in any embodiment of the present invention, the method Can include:
向显示端集群广播第一节目同步消息,所述显示端集群包括多个显示端, 所述第一节目同步消息包括待同步节目标识;broadcasting a first program synchronization message to a display terminal cluster, the display terminal cluster includes a plurality of display terminals, and the first program synchronization message includes an identifier of a program to be synchronized;
接收所述多个显示端响应于所述第一节目同步消息返回的状态消息;receiving status messages returned by the plurality of display terminals in response to the first program synchronization message;
基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所 述目标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端 播放待同步节目,其中,所述目标显示端与所述当前显示端不相同;Based on the status message, one of the multiple display terminals is used as the target display terminal, and the program data corresponding to the identifier of the program to be synchronized is synchronized to the target display terminal, so that the target display terminal plays the program to be synchronized, Wherein, the target display terminal is different from the current display terminal;
将所述目标显示端定义为所述当前显示端,重新执行向显示端集群广播第 一节目同步消息的步骤,直至所述显示端集群中的每个显示端播放所述待同步 节目。The target display terminal is defined as the current display terminal, and the step of broadcasting the first program synchronization message to the display terminal cluster is re-executed until each display terminal in the display terminal cluster plays the to-be-synchronized program.
本发明实施例的计算机可读存储介质,可以采用一个或多个计算机可读的 介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读 存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电 磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可 读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电 连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、 可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器 (CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件 中,计算机可读存储介质可以是任何包含或存储计算机程序的有形介质,该计 算机程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a computer program that can be used by or in connection with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据 信号,其中承载了计算机可读的计算机程序代码。这种传播的数据信号可以采 用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算 机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质, 该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器 件使用或者与其结合使用的计算机程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with computer-readable computer program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium, other than a computer-readable storage medium, that can transmit, propagate, or transmit a computer-readable medium for use by or in connection with the instruction execution system, apparatus, or device. program.
存储介质上包含的计算机程序代码可以用任何适当的介质传输,包括—— 但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Computer program code embodied on a storage medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种计算机程序设计语言或其组合来编写用于执行本发明操 作的计算机程序代码,所述计算机程序设计语言包括面向对象的计算机程序设 计语言—诸如Java、Smalltalk、C++,还包括常规的过程式计算机程序设计语 言—诸如“C”语言或类似的计算机程序设计语言。计算机程序代码可以完全地 在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执 行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或 显示终端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类 的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以 连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more computer programming languages, or combinations thereof, including object-oriented computer programming languages—such as Java, Smalltalk, C++, and also This includes conventional procedural computer programming languages - such as the "C" language or similar computer programming languages. The computer program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or display terminal . In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
本发明实施例的技术方案,通过当前显示端向显示端集群广播第一节目同 步消息,所述显示端集群包括多个显示端,所述第一节目同步消息包括待同步 节目标识;接收所述多个显示端响应于所述第一节目同步消息返回的状态消息; 基于所述状态消息将所述多个显示端的其中一个作为目标显示端,并向所述目 标显示端同步所述待同步节目标识对应的节目数据,以使所述目标显示端播放 待同步节目,其中,所述目标显示端与所述当前显示端不相同;将所述目标显 示端定义为所述当前显示端,重新执行向显示端集群广播第一节目同步消息的 步骤,直至所述显示端集群中的每个显示端播放所述待同步节目,接收到节目 数据的显示端可以参与到节目同步的过程中来,达到降低给多个显示端同步节 目的耗时的技术效果。In the technical solution of the embodiment of the present invention, a first program synchronization message is broadcast to a cluster of display ends through the current display end, the display end cluster includes a plurality of display ends, and the first program synchronization message includes an identifier of a program to be synchronized; Status messages returned by multiple display terminals in response to the first program synchronization message; Based on the status messages, one of the multiple display terminals is used as a target display terminal, and the program to be synchronized is synchronized with the target display terminal Identify the corresponding program data, so that the target display terminal plays the program to be synchronized, wherein the target display terminal is not the same as the current display terminal; define the target display terminal as the current display terminal, and re-execute The step of broadcasting the first program synchronization message to the display terminal cluster, until each display terminal in the display terminal cluster plays the to-be-synchronized program, and the display terminal that receives the program data can participate in the process of program synchronization to achieve Reduce the time-consuming technical effect of synchronizing programs for multiple display terminals.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员 会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进 行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽 然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以 上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例, 而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made to those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010496641.6A CN111800659B (en) | 2020-06-03 | 2020-06-03 | Program synchronization method, device, display terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010496641.6A CN111800659B (en) | 2020-06-03 | 2020-06-03 | Program synchronization method, device, display terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111800659A true CN111800659A (en) | 2020-10-20 |
| CN111800659B CN111800659B (en) | 2022-05-24 |
Family
ID=72806074
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010496641.6A Active CN111800659B (en) | 2020-06-03 | 2020-06-03 | Program synchronization method, device, display terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111800659B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102143194A (en) * | 2010-06-10 | 2011-08-03 | 华为技术有限公司 | Data synchronization method and system, immediate data node and terminal data node |
| US20150163757A1 (en) * | 2013-12-05 | 2015-06-11 | Cisco Technology, Inc. | Synchronization of streaming data |
| CN104754016A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团河南有限公司 | Node cluster implementation method, device and system in peer-to-peer network |
| US20170070765A1 (en) * | 2015-09-07 | 2017-03-09 | Samsung Electronics Co., Ltd. | Method and apparatus for transmitting and receiving data in communication system |
| CN108881231A (en) * | 2018-06-21 | 2018-11-23 | 郑州云海信息技术有限公司 | The method, apparatus and storage medium of synchronous account information in a kind of group system |
| CN109150662A (en) * | 2018-08-30 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | Method for message transmission, distributed system, equipment, medium and unmanned vehicle |
| CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
| CN209642685U (en) * | 2019-05-31 | 2019-11-15 | 深圳市灰度软件有限公司 | A Content Update System |
-
2020
- 2020-06-03 CN CN202010496641.6A patent/CN111800659B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102143194A (en) * | 2010-06-10 | 2011-08-03 | 华为技术有限公司 | Data synchronization method and system, immediate data node and terminal data node |
| US20150163757A1 (en) * | 2013-12-05 | 2015-06-11 | Cisco Technology, Inc. | Synchronization of streaming data |
| CN104754016A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团河南有限公司 | Node cluster implementation method, device and system in peer-to-peer network |
| US20170070765A1 (en) * | 2015-09-07 | 2017-03-09 | Samsung Electronics Co., Ltd. | Method and apparatus for transmitting and receiving data in communication system |
| CN108881231A (en) * | 2018-06-21 | 2018-11-23 | 郑州云海信息技术有限公司 | The method, apparatus and storage medium of synchronous account information in a kind of group system |
| CN109150662A (en) * | 2018-08-30 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | Method for message transmission, distributed system, equipment, medium and unmanned vehicle |
| CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
| CN209642685U (en) * | 2019-05-31 | 2019-11-15 | 深圳市灰度软件有限公司 | A Content Update System |
Non-Patent Citations (1)
| Title |
|---|
| 曹庆兰: "基于DLNA的视频多屏互动系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111800659B (en) | 2022-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220214932A1 (en) | Methods, devices and computer storage media for inter-mini program platform communication | |
| CN109947387B (en) | Audio acquisition method, audio playing method, system, device and storage medium | |
| CN107341062B (en) | Data pushing method, device, equipment and storage medium | |
| CN112291082B (en) | Computer room disaster recovery processing method, terminal and storage medium | |
| US20160210173A1 (en) | Methods and systems for providing software applications | |
| CN111556353A (en) | Video playing method, video playing management device and terminal equipment | |
| WO2021013247A1 (en) | Method and device for running applet, and computer storage medium | |
| CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
| CN112395097A (en) | Message processing method, device, equipment and storage medium | |
| CN109218393A (en) | A kind of implementation method of push, device, equipment and computer storage medium | |
| WO2020143555A1 (en) | Method and device used for displaying information | |
| US20220245005A1 (en) | Methods, devices and computer storage media for inter-mini program platform discovery | |
| CN109284108A (en) | Date storage method, device, electronic equipment and storage medium | |
| CN108874441B (en) | Board card configuration method, device, server and storage medium | |
| CN107817962B (en) | Remote control method, device, control server and storage medium | |
| US20160286004A1 (en) | Method for providing service to client using browser of virtual server and virtual server and computer-readable recording medium using the same | |
| CN113742093B (en) | A message processing method, device, equipment and storage medium | |
| CN111800659A (en) | Program synchronization method, device, display terminal and storage medium | |
| CN113312209A (en) | Data hot standby method, device, server and storage medium | |
| CN119669357A (en) | Data synchronization method, device, equipment and medium | |
| CN112925796A (en) | Write consistency control method, device, equipment and storage medium | |
| CN110493646A (en) | Method, apparatus, TV and the system of TV upgrading are carried out by external equipment | |
| WO2021189253A1 (en) | Data transmission method and apparatus | |
| CN117093147A (en) | Data migration method, device, server and storage medium based on data storage | |
| CN110515749A (en) | Method, device, server and storage medium for information sending queue scheduling |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 518000Guangdong Province, Shenzhen City, Bao'an District, Shiyan Street, Langxin Community, Tangtou Avenue No. 196, A Building 18th Floor, 17th and 19th Floors, and B Building 18th and 19th Floors (one license multiple addresses enterprise) Patentee after: Shenzhen Gradient Technology Co., Ltd. Country or region after: China Address before: 518000 Guangdong Province Shenzhen City Bao'an District Shiyan Street Langxin Community Tangtou Avenue 196 A Building 18th Floor Patentee before: SHENZHEN HUIDU TECHNOLOGY Co.,Ltd. Country or region before: China |