CN102196303B - Media synchronization method and system - Google Patents
Media synchronization method and system Download PDFInfo
- Publication number
- CN102196303B CN102196303B CN201010122719.4A CN201010122719A CN102196303B CN 102196303 B CN102196303 B CN 102196303B CN 201010122719 A CN201010122719 A CN 201010122719A CN 102196303 B CN102196303 B CN 102196303B
- Authority
- CN
- China
- Prior art keywords
- media
- stream
- time
- streams
- function module
- 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.)
- Expired - Fee Related
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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种媒体同步的方法,包括:确定需要同步的多个媒体流,并选择其中一个媒体流作为参考媒体流;获取参考媒体流的时间参数,该时间参数包括播放绝对时间和播放相对时间;根据参考媒体流的时间参数,调整多个媒体流中的其他媒体流的播放状态与参考媒体流同步。本发明还公开了一种媒体同步的系统。通过本发明的方法和系统,实现了多个媒体流之间的同步,为媒体统一控制的实现提供了前提。
The invention discloses a method for media synchronization, which includes: determining a plurality of media streams that need to be synchronized, and selecting one of the media streams as a reference media stream; obtaining the time parameters of the reference media streams, the time parameters include the absolute time of playing and the time of playing Relative time: according to the time parameter of the reference media stream, adjust the playback status of other media streams in the multiple media streams to synchronize with the reference media stream. The invention also discloses a system for media synchronization. Through the method and system of the present invention, the synchronization between multiple media streams is realized, which provides a premise for the realization of unified media control.
Description
技术领域 technical field
本发明涉及通信领域的多媒体同步技术,尤其涉及一种媒体同步的方法和系统。The invention relates to multimedia synchronization technology in the communication field, in particular to a method and system for media synchronization.
背景技术 Background technique
网络电视(IPTV,Internet Protocol Television)能为用户提供丰富多样的多媒体业务,包括直播、点播等节目形式。随着“三屏合一”、甚至“三网合一”的发展,同一种业务在多种类型的终端上显示将成为基本的业务形式。所谓“三屏合一”是指对手机、电脑、电视这三大资讯传播渠道的融合,“三网合一”是指电信网、计算机网和有线电视网的融合,以此提供包括语音、数据、图像等综合多媒体的通信业务。Internet Protocol Television (IPTV) can provide users with a variety of multimedia services, including live broadcast, on-demand and other program forms. With the development of "three screens in one" or even "three networks in one", displaying the same service on multiple types of terminals will become a basic service form. The so-called "three screens in one" refers to the integration of the three major information dissemination channels of mobile phones, computers, and televisions. Integrated multimedia communication services such as data and images.
基于“三屏合一”和“三网合一”的发展,媒体推荐业务也将广泛应用。所谓媒体推荐业务,是指一种可以实现不同用户之间、或者同一个用户的不同设备之间相互推荐多媒体的业务。在媒体推荐业务中,媒体统一控制将给用户提供较好的业务体验,并且只有两个由媒体推荐的媒体流的播放位置同步,媒体统一控制才有意义。Based on the development of "three screens in one" and "three networks in one", the media recommendation service will also be widely used. The so-called media recommendation service refers to a service that enables mutual recommendation of multimedia between different users or between different devices of the same user. In the media recommendation service, unified media control will provide users with a better service experience, and only when the playback positions of two media streams recommended by the media are synchronized, the unified media control is meaningful.
然而,现有技术中只有终端和系统侧之间实现媒体同步的技术方案,并无法提供一种实现多个媒体流之间同步的技术方案,这就给媒体统一控制的实现带来了困难。However, in the prior art, there is only a technical solution for realizing media synchronization between the terminal and the system side, and cannot provide a technical solution for realizing synchronization between multiple media streams, which brings difficulties to the realization of unified media control.
发明内容 Contents of the invention
有鉴于此,本发明的主要目的在于提供一种媒体同步的方法和系统,以实现多个媒体流之间的同步。In view of this, the main purpose of the present invention is to provide a method and system for media synchronization, so as to realize the synchronization among multiple media streams.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明提供了一种媒体同步的方法,该方法包括:The present invention provides a method for media synchronization, the method comprising:
确定需要同步的多个媒体流,并选择其中一个媒体流作为参考媒体流;Determine multiple media streams that need to be synchronized, and select one of the media streams as the reference media stream;
获取所述参考媒体流的时间参数,所述时间参数包括播放绝对时间和播放相对时间;Acquiring time parameters of the reference media stream, the time parameters include absolute playback time and relative playback time;
根据所述参考媒体流的时间参数,调整所述多个媒体流中的其他媒体流的播放状态与所述参考媒体流同步。According to the time parameter of the reference media stream, adjust the playback status of other media streams in the multiple media streams to be synchronized with the reference media stream.
所述根据参考媒体流的时间参数,调整多个媒体流中的其他媒体流的播放状态与参考媒体流同步,具体为:According to the time parameter of the reference media stream, adjust the playback status of other media streams in the multiple media streams to synchronize with the reference media stream, specifically:
根据所述参考媒体流的播放绝对时间,获取其他各媒体流在所述播放绝对时间所对应的播放相对时间;According to the playing absolute time of the reference media stream, obtain the relative playing time corresponding to the playing absolute time of other media streams;
将获取的其他各媒体流的播放相对时间分别与参考媒体流的播放相对时间进行比较,得到播放相对时间的差值;Comparing the acquired relative playback times of other media streams with the relative playback times of the reference media streams to obtain the difference in the relative playback times;
根据其他各媒体流与参考媒体流的播放相对时间的差值,调整其他各媒体流的播放状态与参考媒体流同步。According to the relative time difference between other media streams and the reference media stream, the playback status of other media streams is adjusted to be synchronized with the reference media stream.
所述媒体同步由业务控制模块发起,或由播放所述媒体流的终端发起。The media synchronization is initiated by the service control module, or by the terminal playing the media stream.
所述媒体同步在媒体推荐过程中执行,具体包括:The media synchronization is performed during the media recommendation process, specifically including:
媒体推荐的主动方向业务控制模块请求媒体推荐业务,并在请求中携带主动方所推荐媒体流的时间参数;The active direction service control module of the media recommendation requests the media recommendation service, and carries the time parameter of the media stream recommended by the active party in the request;
所述业务控制模块向被动方发送媒体推荐,并将所推荐媒体流的时间参数发送给所述被动方的媒体功能模块;The service control module sends a media recommendation to the passive party, and sends the time parameters of the recommended media stream to the media function module of the passive party;
所述被动方的媒体功能模块根据接收的时间参数,调整所推荐媒体流在被动方开始播放的状态与在主动方当前的播放状态同步。The media function module of the passive side adjusts the starting state of the recommended media stream on the passive side to synchronize with the current playing state on the active side according to the received time parameter.
所述媒体同步在媒体推荐后的媒体播放过程中执行,具体包括:The media synchronization is performed during media playback after media recommendation, specifically including:
媒体推荐的主动方向被动方推荐媒体流,且所述主动方和被动方分别与各自的媒体功能模块建立起相应的媒体流;The active direction of the media recommendation recommends media streams to the passive party, and the active party and the passive party respectively establish corresponding media streams with their respective media function modules;
业务控制模块选择主动方播放的媒体流作为参考媒体流,并从主动方的媒体功能模块获取参考媒体流的时间参数;The service control module selects the media stream played by the active party as the reference media stream, and obtains the time parameters of the reference media stream from the media function module of the active party;
所述业务控制模块请求被动方的媒体功能模块调整被动方媒体流的播放状态,并在所述请求中携带参考媒体流的时间参数;The service control module requests the media function module of the passive side to adjust the playing state of the media stream of the passive side, and carries the time parameter of the reference media stream in the request;
所述被动方的媒体功能模块根据请求中的时间参数,调整所述被动方的媒体流播放状态与在主动方的参考媒体流的播放状态同步。The media function module of the passive side adjusts the media stream playback state of the passive side to be synchronized with the reference media stream playback state of the active side according to the time parameter in the request.
本发明还提供了一种媒体同步的系统,该系统包括:业务控制模块和媒体功能模块,其中,The present invention also provides a system for media synchronization, which includes: a service control module and a media function module, wherein,
所述业务控制模块,用于确定需要同步的多个媒体流,选择其中一个媒体流作为参考媒体流,并从所述媒体功能模块获取所述参考媒体流的时间参数,所述时间参数包括播放绝对时间和播放相对时间;还用于根据所述参考媒体流的时间参数,通知所述媒体功能模块调整多个媒体流中其他媒体流的播放状态;The service control module is configured to determine a plurality of media streams that need to be synchronized, select one of the media streams as a reference media stream, and obtain time parameters of the reference media stream from the media function module, the time parameters include playing Absolute time and relative playing time; it is also used to notify the media function module to adjust the playing status of other media streams in multiple media streams according to the time parameter of the reference media stream;
所述媒体功能模块,用于提供媒体服务,并为所述业务控制模块提供媒体流的时间参数;还用于根据所述业务控制模块的通知,调整多个媒体流中其他媒体流的播放状态,将所述其他媒体流调整到与参考媒体流相同的播放相对时间。The media function module is used to provide media services and provide time parameters of media streams for the service control module; it is also used to adjust the playback status of other media streams in multiple media streams according to the notification of the service control module , adjusting the other media stream to the same playing relative time as the reference media stream.
所述媒体功能模块进一步用于,根据所述参考媒体流的播放绝对时间,获取其他各媒体流在所述播放绝对时间所对应的播放相对时间;将获取的其他各媒体流的播放相对时间分别与参考媒体流的播放相对时间进行比较,得到播放相对时间的差值;根据其他各媒体流与参考媒体流的播放相对时间的差值,调整其他各媒体流的播放状态与参考媒体流同步。The media function module is further used for, according to the playing absolute time of the reference media stream, obtains the relative playing time of other media streams corresponding to the playing absolute time; Comparing with the playing relative time of the reference media stream, the difference of the playing relative time is obtained; according to the difference of the playing relative time of other media streams and the reference media stream, the playing status of other media streams is adjusted to be synchronized with the reference media stream.
所述媒体同步由业务控制模块发起,或由播放所述媒体流的终端发起。The media synchronization is initiated by the service control module, or by the terminal playing the media stream.
所述媒体同步在媒体推荐过程中执行,相应的,The media synchronization is performed during the media recommendation process, correspondingly,
所述业务控制模块进一步用于,在接收到媒体推荐的主动方发送的媒体推荐业务请求时,向被动方发送媒体推荐,并将所述请求中携带的主动方所推荐媒体流的时间参数发送给所述被动方的媒体功能模块;The service control module is further configured to, when receiving the media recommendation service request sent by the active party for media recommendation, send the media recommendation to the passive party, and send the time parameter of the media stream recommended by the active party carried in the request A media function module for the passive party;
所述被动方的媒体功能模块进一步用于,根据接收的时间参数,调整所推荐媒体流在被动方开始播放的状态与在主动方当前的播放状态同步。The media function module of the passive side is further configured to, according to the received time parameter, adjust the starting state of the recommended media stream on the passive side to be synchronized with the current playing state on the active side.
所述媒体同步在媒体推荐后的媒体播放过程中执行,相应的,The media synchronization is performed during media playback after media recommendation, and correspondingly,
所述业务控制模块进一步用于,选择主动方播放的媒体流作为参考媒体流,并从主动方的媒体功能模块获取参考媒体流的时间参数;还用于请求被动方的媒体功能模块调整被动方媒体流的播放状态,并在所述请求中携带参考媒体流的时间参数;The service control module is further used to select the media stream played by the active party as the reference media stream, and obtain the time parameters of the reference media stream from the media function module of the active party; it is also used to request the media function module of the passive party to adjust the media stream of the passive party. The playback state of the media stream, and carry the time parameter of the reference media stream in the request;
所述媒体功能模块进一步用于,分别与媒体推荐的主动方和被动方建立起相应的媒体流;被动方的媒体功能模块根据来自业务控制模块的请求中的时间参数,调整被动方媒体流的播放状态与在主动方的参考媒体流播放状态同步。The media function module is further used to set up corresponding media streams respectively with the active party and the passive party recommended by the media; the media function module of the passive party adjusts the time parameter of the media stream of the passive party according to the time parameter in the request from the service control module. The playback state is synchronized with the playback state of the reference media stream on the active side.
本发明所提供的一种媒体同步的方法和系统,首先确定需要同步的多个媒体流,并选择其中一个媒体流作为参考媒体流;然后获取参考媒体流的时间参数,该时间参数包括播放绝对时间和播放相对时间;再根据参考媒体流的时间参数,调整多个媒体流中的其他媒体流的播放状态与参考媒体流同步。通过本发明的方法和系统,实现了多个媒体流之间的同步,为媒体统一控制的实现提供了前提。A method and system for media synchronization provided by the present invention firstly determines a plurality of media streams that need to be synchronized, and selects one of the media streams as a reference media stream; then obtains the time parameters of the reference media streams, which include the absolute Time and relative playback time; then adjust the playback status of other media streams in the multiple media streams to synchronize with the reference media stream according to the time parameters of the reference media stream. Through the method and system of the present invention, the synchronization between multiple media streams is realized, which provides a premise for the realization of unified media control.
附图说明 Description of drawings
图1为本发明一种媒体同步方法的流程图;Fig. 1 is the flowchart of a kind of media synchronization method of the present invention;
图2为本发明实施例中基于下一代网络(NGN,Next Generation Network)的IPTV系统的组成结构示意图;Fig. 2 is the composition structural representation of the IPTV system based on next generation network (NGN, Next Generation Network) in the embodiment of the present invention;
图3为本发明实施例一的媒体同步方法的流程图;FIG. 3 is a flowchart of a media synchronization method according to Embodiment 1 of the present invention;
图4为本发明实施例二的媒体同步方法的流程图。FIG. 4 is a flowchart of a media synchronization method according to Embodiment 2 of the present invention.
具体实施方式 Detailed ways
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。The technical solutions of the present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments.
本发明提供了一种媒体同步方法,旨在从多个相关的媒体流中间选择一个媒体流作为参考媒体流,并根据参考媒体流的播放位置,调整其他相关媒体流的播放位置,从而实现多个媒体流的播放同步。如图1所示,该方法主要包括以下步骤:The present invention provides a media synchronization method, aiming to select a media stream from multiple related media streams as a reference media stream, and adjust the playback position of other related media streams according to the playback position of the reference media stream, so as to realize multiple The playback of the two media streams is synchronized. As shown in Figure 1, the method mainly includes the following steps:
步骤101,确定需要同步的多个媒体流,并选择其中一个媒体流作为参考媒体流。
因为只有媒体文件相同的媒体流才有同步的必要,所以需要同步的多个媒体流必须是从媒体文件相同的媒体流中选择的。参考媒体流的选择依据可以根据实际需要确定,本发明中不做限定。Because only the media streams with the same media file need to be synchronized, the multiple media streams to be synchronized must be selected from the media streams with the same media file. The basis for selecting the reference media stream can be determined according to actual needs, which is not limited in the present invention.
步骤102,获取参考媒体流的时间参数,该时间参数包括播放绝对时间和播放相对时间。In
对于媒体播放,表述媒体播放位置的参数通常是偏移时间,也称播放相对时间,其表示当前媒体播放相对媒体文件起始位置的偏移时间。所谓播放绝对时间,是指获取播放相对时间时的系统时间。系统通过播放绝对时间和播放相对时间,就可以确定在某一时间媒体播放的准确位置。For media playback, the parameter representing the media playback position is usually an offset time, also called playback relative time, which represents the offset time of the current media playback relative to the start position of the media file. The so-called absolute playback time refers to the system time when the relative playback time is obtained. The system can determine the exact position of the media at a certain time by playing the absolute time and the relative time.
步骤103,根据参考媒体流的时间参数,调整多个媒体流中的其他媒体流的播放状态与参考媒体流同步。
具体同步处理包括:首先根据参考媒体流的播放绝对时间,获取其他各媒体流在播放绝对时间所对应的播放相对时间;然后将获取的其他各媒体流的播放相对时间分别与参考媒体流的播放相对时间进行比较,得到播放相对时间的差值;再根据其他各媒体流与参考媒体流的播放相对时间的差值,调整其他各媒体流的播放状态与参考媒体流同步。The specific synchronization processing includes: first, according to the absolute time of playing the reference media stream, obtain the relative playing time of other media streams corresponding to the absolute time of playing; The relative time is compared to obtain the difference of the relative playing time; and then according to the difference of the relative playing time of other media streams and the reference media stream, the playback status of other media streams is adjusted to be synchronized with the reference media stream.
对应上述媒体同步方法,本发明还提供了一种对应的媒体同步系统,包括:业务控制模块和媒体功能模块。其中,业务控制模块,用于确定需要同步的多个媒体流,选择其中一个媒体流作为参考媒体流,并从媒体功能模块获取参考媒体流的时间参数,该时间参数包括播放绝对时间和播放相对时间;还用于根据参考媒体流的时间参数,通知媒体功能模块调整多个媒体流中其他媒体流的播放状态。媒体功能模块,用于提供媒体服务,并为业务控制模块提供媒体流的时间参数;还用于根据业务控制模块的通知,调整多个媒体流中其他媒体流的播放状态,将其他媒体流调整到与参考媒体流相同的播放相对时间。Corresponding to the above media synchronization method, the present invention also provides a corresponding media synchronization system, including: a service control module and a media function module. Among them, the business control module is used to determine multiple media streams that need to be synchronized, select one of the media streams as the reference media stream, and obtain the time parameters of the reference media stream from the media function module, the time parameters include the absolute time of playback and the relative time of playback. Time; it is also used to notify the media function module to adjust the playing status of other media streams in the multiple media streams according to the time parameter of the reference media stream. The media function module is used to provide media services and provide time parameters of media streams for the service control module; it is also used to adjust the playback status of other media streams in multiple media streams and adjust other media streams according to the notification of the service control module. to the same playback relative time as the reference media stream.
下面结合图2所示基于NGN的IPTV系统,对本发明的媒体同步方法进一步详细阐述。在图2所示IPTV系统的结构中,终端可以是数字电视的机顶盒、掌上电脑(PDA,Personal Digital Assistant)等设备。媒体功能模块是IPTV系统中内容分发网络(CDN,Content Delivery Network)的主要组成部分,其为终端提供媒体服务,包括媒体控制和媒体交付等功能。媒体控制功能在不同的标准中,其名称和结构有所不同,在国际电信联盟电信标准化部门(ITU-T,International Telecommunication Union Telecommunications standardization sector)标准中,媒体控制功能对应内容分发和存储(Content Delivery and Storage);在用于高级网络的通信和互联网融合的业务和协议(TISPAN,Telecommunicationand Internet converged Services and Protocols for Advanced Networking)中对应媒体功能(MF,Media Function);在开放IPTV论坛(OIPF,Open IPTV Forum)标准中对应集群控制(CC,Clustered Control)和媒体交付功能(CDF)。业务控制模块是业务的控制功能实体,包括该业务的使用权限控制、业务逻辑控制等等;对应IPTV的业务控制模块,负责IPTV业务的逻辑控制,所有IPTV业务都在该业务控制模块的控制下进行。业务会话控制模块,负责NGN中的IP多媒体子系统(IMS,IP Multimedia Subsystem)控制功能,负责所有IMS信令的统一控制。The media synchronization method of the present invention will be further described in detail below in conjunction with the NGN-based IPTV system shown in FIG. 2 . In the structure of the IPTV system shown in FIG. 2 , the terminal may be a set-top box of a digital TV, a personal digital assistant (PDA, Personal Digital Assistant) or other equipment. The media function module is the main component of the content distribution network (CDN, Content Delivery Network) in the IPTV system, which provides media services for the terminal, including functions such as media control and media delivery. The name and structure of the media control function are different in different standards. In the International Telecommunication Union Telecommunication Standardization Sector (ITU-T, International Telecommunication Union Telecommunications standardization sector) standard, the media control function corresponds to content distribution and storage (Content Delivery) and Storage); corresponding to the media function (MF, Media Function) in the business and protocol (TISPAN, Telecommunication and Internet converged Services and Protocols for Advanced Networking) for advanced network communication and Internet convergence; in the Open IPTV Forum (OIPF, Open IPTV Forum) standard corresponds to cluster control (CC, Clustered Control) and media delivery function (CDF). The service control module is the control function entity of the service, including the use authority control of the service, service logic control, etc.; the service control module corresponding to IPTV is responsible for the logic control of the IPTV service, and all IPTV services are under the control of the service control module conduct. The service session control module is responsible for the IP Multimedia Subsystem (IMS, IP Multimedia Subsystem) control function in the NGN, and is responsible for the unified control of all IMS signaling.
其中,IPTV业务控制模块,用于确定需要同步的多个媒体流,选择其中一个媒体流作为参考媒体流,并从媒体功能模块获取参考媒体流的时间参数,该时间参数包括播放绝对时间和播放相对时间;还用于根据参考媒体流的时间参数,通知媒体功能模块调整多个媒体流中其他媒体流的播放状态。媒体功能模块,用于提供媒体服务,并为业务控制模块提供媒体流的时间参数;还用于根据业务控制模块的通知,调整多个媒体流中其他媒体流的播放状态,将其他媒体流调整到与参考媒体流相同的播放相对时间。例如:图2中,IPTV业务控制模块确定需要同步的媒体流1和媒体流2,并选择媒体流1为参考媒体流,从媒体功能模块获取媒体流1的时间参数;根据媒体流1的时间参数,通知媒体功能模块调整媒体流2的播放状态,该通知中携带媒体流1的时间参数;媒体功能模块接收到通知后,根据媒体流1的时间参数调整媒体流2的播放状态,将媒体流2调整到与媒体流1相同的播放相对时间,从而实现媒体流2和媒体流1的播放同步。Among them, the IPTV service control module is used to determine a plurality of media streams that need to be synchronized, select one of the media streams as the reference media stream, and obtain the time parameters of the reference media stream from the media function module. Relative time; it is also used to notify the media function module to adjust the playback status of other media streams in the multiple media streams according to the time parameter of the reference media stream. The media function module is used to provide media services and provide time parameters of media streams for the service control module; it is also used to adjust the playback status of other media streams in multiple media streams and adjust other media streams according to the notification of the service control module. to the same playback relative time as the reference media stream. For example: in Fig. 2, IPTV service control module determines the media stream 1 and media stream 2 that need to be synchronized, and selects media stream 1 as the reference media stream, obtains the time parameter of media stream 1 from the media function module; According to the time of media stream 1 Parameters, notify the media function module to adjust the playback state of media stream 2, the notification carries the time parameter of media stream 1; after receiving the notification, the media function module adjusts the playback state of media stream 2 according to the time parameter of media stream 1, Stream 2 is adjusted to the same playback relative time as media stream 1, so that the playback of media stream 2 and media stream 1 is synchronized.
需要说明的是,本发明中需要同步的多个媒体流既可以是由相同的媒体功能模块来控制的,也可以是由不同的媒体功能模块来控制的。另外,本发明的媒体同步方法适用于媒体推荐业务,并且媒体同步操作既可以在媒体推荐过程中执行,也可以在媒体推荐后的媒体播放过程中执行。下面结合具体实施例进行说明。It should be noted that the multiple media streams that need to be synchronized in the present invention can be controlled by the same media function module, or can be controlled by different media function modules. In addition, the media synchronization method of the present invention is applicable to the media recommendation service, and the media synchronization operation can be performed during the media recommendation process, and can also be performed during the media playback process after the media recommendation. The following will be described in conjunction with specific embodiments.
在图3所示的实施例一中,媒体同步操作发生在媒体推荐后的媒体播放过程中,且需要同步的多个媒体流(媒体流1、媒体流2)是由不同的媒体功能模块来控制。如图3所示,媒体同步主要包括以下步骤:In the first embodiment shown in Figure 3, the media synchronization operation occurs during the media playback process after media recommendation, and multiple media streams (media stream 1, media stream 2) that need to be synchronized are performed by different media function modules control. As shown in Figure 3, media synchronization mainly includes the following steps:
步骤301,通过媒体推荐的方式,终端1(媒体推荐的主动方)与媒体功能模块1建立起相应的媒体流,终端2(媒体推荐的被动方)与媒体功能模块2建立起相应的媒体流。Step 301, through media recommendation, terminal 1 (the active party of media recommendation) establishes a corresponding media stream with media function module 1, and terminal 2 (the passive party of media recommendation) establishes a corresponding media stream with media function module 2 .
一个业务网络中的终端1、终端2分别与媒体功能模块1和媒体功能模块2建起相关的媒体流服务。这两个相关的媒体流是通过媒体推荐的方式建立的,例如:终端1的用户将其正在播放的媒体流推荐给终端2的用户,让终端2的用户一同观看;那么在推荐之后,终端1与媒体功能模块1建立起相应的媒体流,终端2与媒体功能模块2建立起相应的媒体流。Terminal 1 and terminal 2 in a service network establish media streaming services with media function module 1 and media function module 2 respectively. These two related media streams are established through media recommendation, for example: the user of terminal 1 recommends the media stream he is playing to the user of terminal 2, so that the user of terminal 2 can watch it together; then after the recommendation, the terminal 1 establishes a corresponding media stream with the media function module 1, and the terminal 2 establishes a corresponding media stream with the media function module 2.
步骤302,IPTV业务控制模块选择媒体流1作为参考媒体流,并通过业务会话控制模块发起获取媒体流1时间参数的请求到媒体功能模块1。Step 302 , the IPTV service control module selects media stream 1 as a reference media stream, and sends a request to the media function module 1 to obtain the time parameter of media stream 1 through the service session control module.
需要说明的是,在实际应用中,媒体流的同步请求既可以由终端1或终端2来发起,也可以来自IPTV业务控制功能模块自身;当IPTV业务控制功能模块获知有媒体流同步需求时,才开始执行步骤302的操作。It should be noted that, in practical applications, the synchronization request of the media stream can be initiated by terminal 1 or terminal 2, or from the IPTV service control function module itself; when the IPTV service control function module learns that there is a media stream synchronization requirement, The operation of step 302 is only started.
步骤303,媒体功能模块1通过业务会话控制模块返回媒体流1的时间参数给IPTV业务控制模块,该时间参数包括:播放绝对时间和播放相对时间。In step 303, the media function module 1 returns the time parameter of the media stream 1 to the IPTV service control module through the service session control module. The time parameter includes: the absolute playing time and the relative playing time.
所谓播放相对时间,是指当前媒体流1的播放相对于媒体文件起始位置的偏移时间;播放绝对时间,是指获取该偏移时间时的系统时间。The so-called relative playback time refers to the offset time of the playback of the current media stream 1 relative to the starting position of the media file; the absolute playback time refers to the system time when the offset time is obtained.
步骤304~305,IPTV业务控制模块通过业务会话控制模块,请求媒体功能模块2根据媒体流1的时间参数修改媒体流2的播放状态。In steps 304-305, the IPTV service control module requests the media function module 2 to modify the playing state of the media stream 2 according to the time parameter of the media stream 1 through the service session control module.
在发送给媒体功能模块2的请求中,携带了媒体流1的时间参数,即媒体流1的播放绝对时间和播放相对时间,这是媒体功能模块2调整媒体流2播放状态的依据。In the request sent to the media function module 2, the time parameter of the media stream 1 is carried, that is, the absolute playing time and the relative playing time of the media stream 1, which is the basis for the media function module 2 to adjust the playing status of the media stream 2.
步骤306~308,媒体功能模块2根据请求中的时间参数,调整媒体流2的播放状态,并通过业务会话控制模块返回确认响应给IPTV业务控制模块。In steps 306-308, the media function module 2 adjusts the playing state of the media stream 2 according to the time parameter in the request, and returns a confirmation response to the IPTV service control module through the service session control module.
媒体功能模块2根据请求中的时间参数(媒体流1的播放绝对时间和播放相对时间),计算媒体流2与媒体流1在播放相对时间上的差值,然后根据该差值调整媒体流2当前的播放相对时间,进而实现媒体流2的播放状态与媒体流1的播放状态同步。The media function module 2 calculates the difference between the media stream 2 and the media stream 1 in the relative playing time according to the time parameter in the request (the absolute playing time and the playing relative time of the media stream 1), and then adjusts the media stream 2 according to the difference The current playing relative time, and then the playing state of media stream 2 is synchronized with the playing state of media stream 1.
在图4所示的实施例二中,媒体同步操作发生在媒体推荐过程中,且需要同步的多个媒体流(媒体流1、媒体流2)是由不同的媒体功能模块来控制。如图4所示,媒体同步主要包括以下步骤:In the second embodiment shown in FIG. 4 , the media synchronization operation occurs during the media recommendation process, and the multiple media streams (media stream 1 and media stream 2 ) that need to be synchronized are controlled by different media function modules. As shown in Figure 4, media synchronization mainly includes the following steps:
步骤401,终端1(媒体推荐的主动方)向IPTV业务控制模块请求媒体推荐业务,并在请求中携带终端1当前播放的媒体流1的时间参数,即媒体流1的播放绝对时间和播放相对时间。Step 401, terminal 1 (the active party of media recommendation) requests the media recommendation service from the IPTV service control module, and carries the time parameter of the media stream 1 currently played by terminal 1 in the request, that is, the absolute time of playing media stream 1 and the relative time of playing media stream 1. time.
步骤402,IPTV业务控制模块向终端2(媒体推荐的被动方)发送媒体推荐,并将推荐的媒体流1的时间参数发送给媒体功能模块2。Step 402 , the IPTV service control module sends the media recommendation to the terminal 2 (the passive party of the media recommendation), and sends the time parameter of the recommended media stream 1 to the media function module 2 .
IPTV业务控制模块接收到终端1的媒体推荐业务请求后,通知媒体功能模块2建立与终端2的媒体连接,并将推荐的媒体流1的时间参数发送给媒体功能模块2。After receiving the media recommendation service request from the terminal 1, the IPTV service control module notifies the media function module 2 to establish a media connection with the terminal 2, and sends the time parameter of the recommended media stream 1 to the media function module 2.
步骤403,媒体功能模块2根据媒体流1的时间参数,直接调整在终端2上播放的媒体流2的播放状态,使媒体流2开始播放的状态与媒体流1当前的播放状态同步。Step 403, the media function module 2 directly adjusts the playing state of the media stream 2 played on the terminal 2 according to the time parameter of the media stream 1, so that the starting state of the media stream 2 is synchronized with the current playing state of the media stream 1.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010122719.4A CN102196303B (en) | 2010-03-02 | 2010-03-02 | Media synchronization method and system |
| PCT/CN2011/071381 WO2011107017A1 (en) | 2010-03-02 | 2011-02-28 | Method and system for media synchronization |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010122719.4A CN102196303B (en) | 2010-03-02 | 2010-03-02 | Media synchronization method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102196303A CN102196303A (en) | 2011-09-21 |
| CN102196303B true CN102196303B (en) | 2014-03-19 |
Family
ID=44541658
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010122719.4A Expired - Fee Related CN102196303B (en) | 2010-03-02 | 2010-03-02 | Media synchronization method and system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102196303B (en) |
| WO (1) | WO2011107017A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103533005B (en) * | 2012-07-06 | 2018-12-07 | 南京中兴新软件有限责任公司 | Processing method, system and relevant apparatus based on broadcast state synchronizing information |
| CN104020839B (en) * | 2013-02-28 | 2017-09-01 | 联想(北京)有限公司 | A kind of information processing method and device |
| CN115174979B (en) * | 2022-06-20 | 2023-12-29 | 阿里巴巴(中国)有限公司 | Streaming media transmission network, transmission control method, device, equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1810017A (en) * | 2003-06-19 | 2006-07-26 | 索尼爱立信移动通讯股份有限公司 | Media stream mixing |
| CN101047842A (en) * | 2006-03-27 | 2007-10-03 | 中兴通讯股份有限公司 | Method for playing flow media audio-vedio on radio binary operation environment mobile phone |
| CN101271720A (en) * | 2008-04-22 | 2008-09-24 | 中兴通讯股份有限公司 | A method for synchronizing mobile phone streaming audio and video |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006527518A (en) * | 2003-06-06 | 2006-11-30 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Video compression |
| KR100513290B1 (en) * | 2003-06-30 | 2005-09-09 | 삼성전자주식회사 | System and Method for synchronizing between multimedia contents and segment metadata |
| CN100450163C (en) * | 2006-11-30 | 2009-01-07 | 中兴通讯股份有限公司 | A method for synchronously playing video and audio in mobile multimedia broadcasting |
-
2010
- 2010-03-02 CN CN201010122719.4A patent/CN102196303B/en not_active Expired - Fee Related
-
2011
- 2011-02-28 WO PCT/CN2011/071381 patent/WO2011107017A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1810017A (en) * | 2003-06-19 | 2006-07-26 | 索尼爱立信移动通讯股份有限公司 | Media stream mixing |
| CN101047842A (en) * | 2006-03-27 | 2007-10-03 | 中兴通讯股份有限公司 | Method for playing flow media audio-vedio on radio binary operation environment mobile phone |
| CN101271720A (en) * | 2008-04-22 | 2008-09-24 | 中兴通讯股份有限公司 | A method for synchronizing mobile phone streaming audio and video |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102196303A (en) | 2011-09-21 |
| WO2011107017A1 (en) | 2011-09-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9237179B2 (en) | Method and system for synchronizing the output of terminals | |
| EP2241078B1 (en) | Method and internet protocol television (iptv) content manager server for iptv servicing | |
| US8514705B2 (en) | Method and system for synchronizing a group of end-terminals | |
| CN102356619B (en) | Change stream synchronization | |
| CN102685563B (en) | IPTV content sharing method, device and terminal equipment | |
| US20090055540A1 (en) | Methods and Systems for Multicast Control and Channel Switching for Streaming Media in an IMS Environment | |
| CN107241564A (en) | Multi-stream video conference method based on IMS network architecture, apparatus and system | |
| WO2010045826A1 (en) | Method, system and user device for obtaining key frame in streaming media service | |
| US8908853B2 (en) | Method and device for displaying information | |
| CN102196303B (en) | Media synchronization method and system | |
| Marfil et al. | IDMS solution for hybrid broadcast broadband delivery within the context of HbbTV standard | |
| CN101883333B (en) | Method, system and device for acquiring real-time media play information of designated user | |
| CN101188740A (en) | Multicast Method of Live Network TV | |
| CN101848200A (en) | Method, device, application layer entity and system for inserting media contents | |
| CN102150407B (en) | Method and the corresponding apparatus for realizing internet protocol television channel services | |
| CN107801103A (en) | Multimedia resource adaptive synchronicity method based on network condition under heterogeneous network | |
| CN102143391B (en) | Method and device for realizing IPTV service based on IMS | |
| CN102006504A (en) | Media unified control method and system | |
| HK1165129A (en) | Modified stream synchronization | |
| HK1146990A (en) | Method and system for synchronizing the output of terminals | |
| HK1146990B (en) | Method and system for synchronizing the output of terminals |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140319 |