CN102143387A - Method and system for processing media data and streaming media server - Google Patents
Method and system for processing media data and streaming media server Download PDFInfo
- Publication number
- CN102143387A CN102143387A CN 201010213634 CN201010213634A CN102143387A CN 102143387 A CN102143387 A CN 102143387A CN 201010213634 CN201010213634 CN 201010213634 CN 201010213634 A CN201010213634 A CN 201010213634A CN 102143387 A CN102143387 A CN 102143387A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- media data
- live
- request
- range
- 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
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明提供一种媒体数据的处理方法及系统、流媒体服务器,方法包括:接收移动终端发送的包含直播频道信息的描述请求消息;若根据直播频道信息,确认直播频道信息对应的频道允许进行直播回看,则向移动终端返回包含相对时间播放范围的会话描述协议信息;接收移动终端根据包含相对时间播放范围的会话描述协议信息发送的操作请求;对与操作请求相应的媒体数据进行操作。本发明实施例中的移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。
The present invention provides a media data processing method and system, and a streaming media server. The method includes: receiving a description request message containing live channel information sent by a mobile terminal; and confirming that the channel corresponding to the live channel information is allowed to perform live broadcast according to the live channel information Look back, then return the session description protocol information containing the relative time play range to the mobile terminal; receive the operation request sent by the mobile terminal according to the session description protocol information containing the relative time play range; operate the media data corresponding to the operation request. The mobile terminal in the embodiment of the present invention can request to obtain the media data before the live broadcast time point according to the above SDP information, so that even if the user of the mobile terminal misses the TV program before the live broadcast time point, he can still watch it according to the streaming media server preset The strategy is to watch part or all of the programs before the live broadcast time point, which improves the continuity and operability of the mobile terminal to obtain media data.
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种媒体数据的处理方法及系统、流媒体服务器。The embodiments of the present invention relate to the technical field of communications, and in particular, to a media data processing method and system, and a streaming media server.
背景技术Background technique
随着网络基础设施的不断完善,移动流媒体业务逐渐推广和普及,移动终端能够向用户直播各种媒体数据。当流媒体服务器接收到移动终端的流媒体业务请求之后,以相应时刻为开始时间点将播放的媒体数据发送给移动终端,从而使得上述移动终端能够播放获取到的媒体数据。With the continuous improvement of network infrastructure, mobile streaming media services are gradually promoted and popularized, and mobile terminals can broadcast various media data to users. After receiving the streaming media service request from the mobile terminal, the streaming media server sends the played media data to the mobile terminal with the corresponding time as the start time, so that the mobile terminal can play the acquired media data.
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:上述现有技术中的流媒体服务器只能够以当前接收到移动终端的流媒体业务请求的时刻(直播时间点)为开始时间点将播放的媒体数据发送给用户终端,不能以上述直播时间点之前的任一时间点为开始时间点将播放的媒体数据发送给用户终端,使得移动终端无法获取到直播时间点之前的媒体数据,导致了移动终端的用户一旦错过了直播时间点之前的电视节目,将无法观看,从而降低了移动终端获取媒体数据的连续性和用户观看体验。In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: the streaming media server in the above prior art can only start from the moment (live broadcast time point) that currently receives the streaming media service request of the mobile terminal Send the played media data to the user terminal at the time point, and cannot start sending the played media data to the user terminal at any time point before the above live broadcast time point, so that the mobile terminal cannot obtain the media before the live broadcast time point Once the user of the mobile terminal misses the TV program before the live broadcast time point, he will not be able to watch it, thereby reducing the continuity of the mobile terminal's acquisition of media data and the user's viewing experience.
发明内容Contents of the invention
本发明实施例提供一种媒体数据的处理方法及系统、流媒体服务器,用以解决现有技术中由于流媒体服务器无法向进行直播业务的移动终端发送直播时间点之前的媒体数据而导致的移动终端的用户一旦错过了直播时间点之前的电视节目,将无法观看的缺陷,提高移动终端获取媒体数据的连续性。Embodiments of the present invention provide a media data processing method and system, and a streaming media server, which are used to solve the problem in the prior art that the streaming media server cannot send media data before the live broadcasting time point to the mobile terminal performing the live broadcasting service. Once the user of the terminal misses the TV program before the live broadcast time point, he will not be able to watch the defect, which improves the continuity of the mobile terminal to obtain media data.
本发明实施例提供了一种媒体数据的处理方法,包括:An embodiment of the present invention provides a method for processing media data, including:
接收移动终端发送的包含直播频道信息的描述请求消息;receiving a description request message including live channel information sent by the mobile terminal;
若根据所述直播频道信息,确认所述直播频道信息对应的频道允许进行直播回看,则向所述移动终端返回包含相对时间播放范围的会话描述协议信息;If according to the live channel information, it is confirmed that the channel corresponding to the live channel information allows live review, then return the session description protocol information including the relative time play range to the mobile terminal;
接收所述移动终端根据所述包含相对时间播放范围的会话描述协议信息发送的操作请求;receiving the operation request sent by the mobile terminal according to the session description protocol information including the relative time playing range;
对与所述操作请求相应的媒体数据进行操作。An operation is performed on the media data corresponding to the operation request.
本发明实施例还提供了一种流媒体服务器,包括:The embodiment of the present invention also provides a streaming media server, including:
第一接收模块,用于接收移动终端发送的包含直播频道信息的描述请求消息;The first receiving module is configured to receive a description request message containing live channel information sent by the mobile terminal;
返回模块,用于若根据所述直播频道信息,确认所述直播频道信息对应的频道允许进行直播回看,则向所述移动终端返回包含相对时间播放范围的会话描述协议信息;The return module is used to return the session description protocol information including the relative time playing range to the mobile terminal if it is confirmed that the channel corresponding to the live channel information is allowed to perform live review according to the live channel information;
第二接收模块,用于接收所述移动终端根据所述包含相对时间播放范围的会话描述协议信息发送的操作请求;The second receiving module is configured to receive the operation request sent by the mobile terminal according to the session description protocol information including the relative time playing range;
操作模块,用于对与所述操作请求相应的媒体数据进行操作。An operation module, configured to operate the media data corresponding to the operation request.
本发明实施例再提供了一种媒体数据的处理系统,包括流媒体服务器,所述流媒体服务器以可通信的方式与移动终端相连,The embodiment of the present invention further provides a media data processing system, including a streaming media server, the streaming media server is connected to the mobile terminal in a communicable manner,
所述流媒体服务器用于接收所述移动终端发送的包含直播频道信息的描述请求消息,若根据所述直播频道信息,确认所述直播频道信息对应的频道允许进行直播回看,则向所述移动终端返回包含相对时间播放范围的会话描述协议信息,接收所述移动终端根据所述包含相对时间播放范围的会话描述协议信息发送的操作请求,对与所述操作请求相应的媒体数据进行操作。The streaming media server is configured to receive a description request message containing live channel information sent by the mobile terminal, and if it is confirmed according to the live channel information that the channel corresponding to the live channel information is allowed to perform live review, then send a message to the The mobile terminal returns the SDP information including the relative time playing range, receives the operation request sent by the mobile terminal according to the SDP information including the relative time playing range, and operates the media data corresponding to the operation request.
由上述技术方案可知,本发明实施例在移动终端进行流媒体直播业务时,通过流媒体服务器向移动终端返回包含相对时间播放范围的SDP信息,使得移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。It can be seen from the above technical solution that in the embodiment of the present invention, when the mobile terminal performs live streaming services, the streaming media server returns SDP information including the relative time playback range to the mobile terminal, so that the mobile terminal can request the live broadcast time point according to the above SDP information The previous media data enables mobile terminal users to watch part or all of the programs before the live broadcast time according to the preset playback strategy of the streaming media server even if they miss the TV programs before the live broadcast time, which improves the acquisition of mobile terminals. Continuity and operability of media data.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例一提供的媒体数据的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for processing media data provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的媒体数据的处理方法的流程示意图;FIG. 2 is a schematic flowchart of a method for processing media data provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的流媒体服务器的结构示意图;FIG. 3 is a schematic structural diagram of a streaming media server provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的流媒体服务器的结构示意图;FIG. 4 is a schematic structural diagram of a streaming media server provided in Embodiment 4 of the present invention;
图5为本发明实施例五提供的媒体数据的处理系统的结构示意图。FIG. 5 is a schematic structural diagram of a media data processing system provided by Embodiment 5 of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图1为本发明实施例一提供的媒体数据的处理方法的流程示意图,如图1所示,本实施例的媒体数据的处理方法可以包括以下步骤:FIG. 1 is a schematic flowchart of a method for processing media data provided by Embodiment 1 of the present invention. As shown in FIG. 1 , the method for processing media data in this embodiment may include the following steps:
步骤101、流媒体服务器接收移动终端发送的包含直播频道信息的描述(DESCRIBE)请求消息;
所述移动终端可以是移动电话、个人数字助理(Personal DigitalAssistant,简称PDA)、笔记本电脑、上网本(Netbook)、数码相框(DigitalPhoto Frame,简称DPF)等移动设备。The mobile terminal may be a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA for short), a notebook computer, a netbook (Netbook), a digital photo frame (Digital Photo Frame, DPF for short) and other mobile devices.
步骤102、上述流媒体服务器若根据上述直播频道信息,确认上述直播频道信息对应的频道允许进行直播回看,则向上述移动终端返回包含相对时间播放范围的会话描述协议(Session Description Protocol,简称SDP)信息;
步骤103、上述流媒体服务器接收上述移动终端根据上述包含相对时间播放范围的SDP信息发送的操作请求;
可以理解的是操作请求可以通过消息或信令的方式发送。It can be understood that the operation request can be sent by way of message or signaling.
本步骤中,上述操作请求可以包括请求播放(PLAY)或请求暂停(PAUSE)。或者操作请求还可以包括:请求向前定位(前进播放)操作、请求向后定位(后退播放)操作In this step, the above operation request may include a request to play (PLAY) or a request to pause (PAUSE). Or the operation request can also include: requesting forward positioning (forward playback) operation, requesting backward positioning (backward playback) operation
步骤104、上述流媒体服务器对与上述操作请求相应的媒体数据进行操作。
上述流媒体服务器对媒体数据进行的操作可以包括播放操作、暂停操作、暂停再播放操作、向前定位(前进播放)操作、向后定位(后退播放)操作等操作。The above-mentioned operations performed by the streaming media server on the media data may include operations such as play operation, pause operation, pause and replay operation, forward positioning (forward playing) operation, backward positioning (backward playing) operation, and the like.
进一步地,上述步骤103中的操作请求中还可以进一步包含请求操作的相对时间范围,以明确请求操作的具体时间范围内的媒体数据。相应地,上述步骤104中,流媒体服务器可以进一步根据上述请求操作的相对时间范围、上述移动终端发起上述描述请求消息的时间点、当前的直播时间点和预先设置的回看策略,确定可操作的绝对时间范围,以及对上述可操作的绝对时间范围内的媒体数据进行操作。Further, the operation request in
本实施例中,当移动终端进行流媒体直播业务时,流媒体服务器能够向移动终端返回包含相对时间播放范围的SDP信息,使得移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得移动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。In this embodiment, when the mobile terminal performs the live streaming service, the streaming server can return SDP information including the relative time playing range to the mobile terminal, so that the mobile terminal can request to obtain the media data before the live broadcast time point according to the above SDP information, Even if the user of the mobile terminal misses the TV program before the live broadcast time point, he can still watch some or all of the programs before the live broadcast time point according to the playback strategy preset by the streaming media server, which improves the continuity of the mobile terminal to obtain media data and operability.
图2为本发明实施例二提供的媒体数据的处理方法的流程示意图,如图2所示,本实施例的媒体数据的处理方法可以包括以下步骤:FIG. 2 is a schematic flowchart of a method for processing media data provided in Embodiment 2 of the present invention. As shown in FIG. 2 , the method for processing media data in this embodiment may include the following steps:
步骤201、移动终端与流媒体服务器建立信令连接;Step 201, the mobile terminal establishes a signaling connection with the streaming media server;
步骤202、移动终端向流媒体服务器发送包含直播频道信息的描述(DESCRIBE)请求消息;
步骤203、流媒体服务器根据上述直播频道信息,确认上述直播频道信息对应的频道允许进行直播回看,则构造SDP信息,上述SDP信息包含相对时间播放范围字段;
例如:相对时间播放范围字段表示为a=Range:npt=0-T2,表示流媒体服务器可以向移动终端发送播放的媒体数据的相对时间范围为0~T2。For example, the relative time playing range field is expressed as a=Range:npt=0-T2, indicating that the relative time range of the streaming media server to send the played media data to the mobile terminal is 0-T2.
步骤204、流媒体服务器向移动终端返回200OK消息,上述200OK消息包含上述SDP信息;
步骤205、移动终端根据上述SDP信息中的相对时间播放范围字段,显示与播放媒体数据相关的功能控件,例如:播放、暂停或暂停再播放、向前定位(前进播放)、向后定位(后退播放)等功能控件;
本步骤中的上述功能控件可以在显示界面的任意位置。The above-mentioned functional controls in this step can be located anywhere on the display interface.
步骤206、移动终端与流媒体服务器建立媒体数据发送通道;
步骤207、移动终端接收用户通过功能控件输入的功能触发信号,向流媒体服务器发送操作请求;Step 207, the mobile terminal receives the function trigger signal input by the user through the function control, and sends an operation request to the streaming media server;
例如:移动终端接收到用户通过播放功能控件输入的播放触发信号,则向流媒体服务器发送播放(PLAY)消息,上述播放消息中还可以进一步包含请求播放的相对时间范围;或者For example: the mobile terminal receives the play trigger signal input by the user through the play function control, then sends a play (PLAY) message to the streaming media server, and the above play message can further include the relative time range of the request play; or
移动终端接收到用户通过暂停功能控件输入的暂停触发信号,则向流媒体服务器发送暂停(PAUSE)消息;或者The mobile terminal receives the pause trigger signal input by the user through the pause function control, then sends a pause (PAUSE) message to the streaming media server; or
移动终端接收到用户通过向前定位功能控件输入的向前定位触发信号,则向流媒体服务器发送前进播放(PLAY)消息,上述前进播放消息中还可以进一步包含请求前进播放的相对时间范围;或者When the mobile terminal receives the forward positioning trigger signal input by the user through the forward positioning function control, it sends a forward playing (PLAY) message to the streaming media server, and the above-mentioned forward playing message can further include a relative time range for requesting forward playing; or
移动终端接收到用户通过向后定位功能控件输入的向后定位触发信号,则向流媒体服务器发送后退播放(PLAY)消息,上述后退播放消息中还可以进一步包含请求后退播放的相对时间范围。The mobile terminal receives the backward positioning trigger signal input by the user through the backward positioning function control, and then sends a backward playback (PLAY) message to the streaming media server. The above-mentioned backward playback message can further include a relative time range for requesting backward playback.
步骤208、流媒体服务器对与上述操作请求相应的媒体数据进行操作。
本实施例可以假设移动终端发起描述请求消息的时间点为t0,当前的直播时间点为t1,预先设置的回看策略为允许回看移动终端发起描述请求消息的时间点之前T1时间的节目,允许播放的总时间为T2,则移动终端可获取的播放的媒体数据的相对时间播放范围为[0,T2],对应的播放的媒体数据的绝对时间范围为[t0-T1,t0+T2-T1]。例如:可以假设移动终端发起描述请求消息的时间点为2010年01月07日09时50分45秒,当前的直播时间点为t1,预先设置的回看策略为允许回看移动终端发起描述请求消息的时间点之前30分钟的节目,允许播放的总时间为24小时,则移动终端可获取的播放的媒体数据的相对时间播放范围为[0,86400],对应的播放的媒体数据的绝对时间范围为[2010年01月07日09时20分45秒,2010年01月08日09时20分45秒]。In this embodiment, it can be assumed that the time point when the mobile terminal initiates the description request message is t0, the current live broadcast time point is t1, and the preset review strategy is to allow viewing of programs at T1 time before the time point when the mobile terminal initiates the description request message, The total time allowed to be played is T2, then the relative time range of the media data to be played by the mobile terminal is [0, T2], and the corresponding absolute time range of the media data to be played is [t0-T1, t0+T2- T1]. For example: it can be assumed that the time point when the mobile terminal initiates the description request message is 09:50:45 on January 07, 2010, the current live broadcast time point is t1, and the pre-set review policy is to allow the mobile terminal to initiate a description request For programs 30 minutes before the time point of the message, the total allowed playback time is 24 hours, then the relative time playback range of the media data that can be played by the mobile terminal is [0, 86400], and the corresponding absolute time of the media data to be played The range is [2010-01-07 09:20:45, 2010-01-08 09:20:45].
1、初始播放1. Initial playback
若移动终端接收到用户通过播放功能控件输入的播放触发信号,则向流媒体服务器发送播放(PLAY)消息,若该播放(PLAY)消息中包含的移动终端请求播放的相对时间范围为[a,b],则[a,b]应为[0,T2]的子集,其对应的请求操作的绝对时间范围为[t0+a-T1,t0+b-T1]。If the mobile terminal receives the play trigger signal input by the user through the play function control, it sends a play (PLAY) message to the streaming media server, and if the relative time range of the mobile terminal requesting playback contained in the play (PLAY) message is [a, b], then [a, b] should be a subset of [0, T2], and the absolute time range of the corresponding request operation is [t0+a-T1, t0+b-T1].
流媒体服务器可以根据上述播放(PLAY)消息中包含的请求播放的相对时间范围[a,b]、移动终端发起描述请求消息的时间点t0、当前的直播时间点t1和预先设置的回看策略T1,确定可播放的绝对时间范围,从而开始向移动终端发送上述可播放的绝对时间范围内的媒体数据:The streaming media server can request playback according to the relative time range [a, b] contained in the above play (PLAY) message, the time point t0 when the mobile terminal initiates the description request message, the current live broadcast time point t1, and the preset look-back strategy T1, determine the absolute playable time range, and start sending the media data within the above playable absolute time range to the mobile terminal:
若t1>t0+b-T1,则可播放的绝对时间范围为[t0+a-T1,t0+b-T1],则流媒体服务器可以通过200OK消息返回的对应的可播放的相对时间范围为[a,b],即200OK消息中携带字段Range:npt=a-b,流媒体服务器根据上述可播放的绝对时间范围,向移动终端发送上述可播放的绝对时间范围内的非直播媒体数据;If t1>t0+b-T1, the absolute playable time range is [t0+a-T1, t0+b-T1], and the corresponding playable relative time range returned by the streaming media server through the 200OK message is [a, b], that is, the field Range:npt=a-b is carried in the 200OK message, and the streaming media server sends the non-live media data within the above-mentioned playable absolute time range to the mobile terminal according to the above-mentioned playable absolute time range;
若t0+a-T1<t1≤t0+b-T1,则可播放的绝对时间范围为[t0+a-T1,t1],则流媒体服务器可以通过200OK消息返回的对应的可播放的相对时间范围为[a,t1-t0+T1],即200OK消息中携带字段Range:npt=a-(t1-t0+T1),流媒体服务器根据上述可播放的绝对时间范围,向移动终端发送上述可播放的绝对时间范围内的非直播媒体数据;If t0+a-T1<t1≤t0+b-T1, the absolute playable time range is [t0+a-T1, t1], and the streaming media server can return the corresponding playable relative time through the 200OK message The range is [a, t1-t0+T1], that is, the field Range:npt=a-(t1-t0+T1) is carried in the 200OK message, and the streaming media server sends the above-mentioned playable time range to the mobile terminal according to the above-mentioned absolute playable Non-live media data within the absolute time range of playback;
若t1<t0+a-T1,则可播放的绝对时间范围为[t1,t0+T2-T1],则流媒体服务器可以通过200OK消息返回的对应的可播放的相对时间范围为[t1-t0+T1,T2],即200OK消息中携带字段Range:npt=(t1-t0+T1)-T2,流媒体服务器根据上述可播放的绝对时间范围,向移动终端发送上述可播放的绝对时间范围内的直播媒体数据。If t1<t0+a-T1, the absolute playable time range is [t1, t0+T2-T1], and the corresponding playable relative time range returned by the streaming media server through the 200OK message is [t1-t0 +T1, T2], that is, the 200OK message carries the field Range: npt=(t1-t0+T1)-T2, and the streaming media server sends the above-mentioned playable absolute time range to the mobile terminal according to the above-mentioned playable absolute time range live media data.
2、初始播放到暂停2. Initial play to pause
若流媒体服务器当前正在向移动终端发送非直播或直播媒体数据,而此时移动终端再次接收到用户通过暂停功能控件输入的暂停触发信号,则向流媒体服务器发送暂停(PAUSE)消息。流媒体服务器根据上述暂停(PAUSE)消息,停止向移动终端发送媒体数据。进一步地,本实施例中,流媒体服务器还可以进一步记录停止向移动终端发送媒体数据的暂停时间点。If the streaming server is currently sending non-live or live media data to the mobile terminal, and now the mobile terminal receives the pause trigger signal input by the user through the pause function control again, it sends a pause (PAUSE) message to the streaming server. The streaming media server stops sending media data to the mobile terminal according to the above-mentioned pause (PAUSE) message. Furthermore, in this embodiment, the streaming media server may further record the pause time point at which the sending of media data to the mobile terminal is stopped.
3、暂停到播放(暂停再播放)3. Pause to play (pause and then play)
若流媒体服务器当前已经停止向移动终端发送非直播或直播媒体数据,而此时移动终端再次接收到用户通过暂停对应的播放功能控件输入的播放触发信号,则向流媒体服务器发送播放(PLAY)消息。流媒体服务器则可以根据所记录的停止向移动终端发送媒体数据的暂停时间点,继续从该暂停时间点对应的媒体数据开始向移动终端发送媒体数据。If the streaming media server has currently stopped sending non-live or live media data to the mobile terminal, and at this time the mobile terminal receives the playback trigger signal input by the user again by pausing the corresponding playback function control, it will send a playback (PLAY) to the streaming media server. information. The streaming media server may continue to send media data to the mobile terminal from the media data corresponding to the pause time point according to the recorded pause time point at which it stops sending media data to the mobile terminal.
4、初始播放(非直播)到向前定位4. From initial playback (non-live) to forward positioning
若流媒体服务器当前正在向移动终端发送非直播媒体数据,而此时移动终端再次接收到用户通过向前定位功能控件输入的向前定位触发信号,则向流媒体服务器发送前进播放(PLAY)消息,若该前进播放(PLAY)消息中包含的移动终端请求播放的相对时间范围为[a,b],则[a,b]应为[0,T2]的子集,其对应的请求操作的绝对时间范围为[t0+a-T1,t0+b-T1]。If the streaming media server is currently sending non-live media data to the mobile terminal, and this time the mobile terminal receives the forward positioning trigger signal input by the user through the forward positioning function control again, it will send a forward playback (PLAY) message to the streaming media server , if the relative time range that the mobile terminal requests to play contained in the forward play (PLAY) message is [a, b], then [a, b] should be a subset of [0, T2], and the corresponding request operation The absolute time range is [t0+a-T1, t0+b-T1].
流媒体服务器可以根据上述前进播放(PLAY)消息中包含的请求前进播放的相对时间范围[a,b]、移动终端发起描述请求消息的时间点t0、当前的直播时间点t1和预先设置的回看策略T1,确定可前进播放的绝对时间范围,从而开始向移动终端发送上述可前进播放的绝对时间范围内的媒体数据:The streaming media server can request forward playback relative time range [a, b] contained in the above PLAY message, the time point t0 when the mobile terminal initiates the description request message, the current live broadcast time point t1, and the preset return time. Look at strategy T1, determine the absolute time range that can be played forward, and start sending the media data within the absolute time range that can be played forward to the mobile terminal:
若t1>t0+b-T1,则可前进播放的绝对时间范围为[t0+a-T1,t0+b-T1],则流媒体服务器可以通过200OK消息返回的对应的可前进播放的相对时间范围为[a,b],即200OK消息中携带字段Range:npt=a-b,流媒体服务器根据上述可前进播放的绝对时间范围,向移动终端发送上述可前进播放的绝对时间范围内的非直播媒体数据;If t1>t0+b-T1, the absolute time range that can be played forward is [t0+a-T1, t0+b-T1], and the streaming media server can return the corresponding relative time that can be played forward through the 200OK message The range is [a, b], that is, the field Range:npt=a-b is carried in the 200OK message, and the streaming media server sends the non-live media within the absolute time range that can be played forward to the mobile terminal according to the absolute time range that can be played forward data;
若t0+a-T1<t1≤t0+b-T1,则可前进播放的绝对时间范围为[t0+a-T1,t1],则流媒体服务器可以通过200OK消息返回的对应的可前进播放的相对时间范围为[a,t1-t0+T1],即200OK消息中携带字段Range:npt=a-(t1-t0+T1),流媒体服务器根据上述可前进播放的绝对时间范围,向移动终端发送上述可前进播放的绝对时间范围内的非直播媒体数据;If t0+a-T1<t1≤t0+b-T1, the absolute time range that can be played forward is [t0+a-T1, t1], and the streaming media server can return the corresponding time that can be played forward through the 200OK message The relative time range is [a, t1-t0+T1], that is, the field Range:npt=a-(t1-t0+T1) is carried in the 200OK message, and the streaming media server sends the mobile terminal an Send non-live media data within the absolute time range that can be played forward;
若t1<t0+a-T1,则可前进播放的绝对时间范围为[t1,t0+T2-T1],则流媒体服务器可以通过200OK消息返回的对应的可前进播放的相对时间范围为[t1-t0+T1,T2],即200OK消息中携带字段Range:npt=(t1-t0+T1)-T2,流媒体服务器根据上述可前进播放的绝对时间范围,向移动终端发送上述可前进播放的绝对时间范围内的直播媒体数据。If t1<t0+a-T1, the absolute time range that can be played forward is [t1, t0+T2-T1], and the relative time range that the streaming server can return through the 200OK message is [t1 -t0+T1, T2], that is, the 200OK message carries the field Range: npt=(t1-t0+T1)-T2, and the streaming media server sends the above-mentioned forward-playable content to the mobile terminal according to the above-mentioned absolute time range for forward-playable Live media data in absolute time ranges.
5、初始播放(直播)到向前定位5. Initial playback (live broadcast) to forward positioning
若流媒体服务器当前正在向移动终端发送直播媒体数据,而此时移动终端再次接收到用户通过向前定位功能控件输入的向前定位触发信号,则向流媒体服务器发送前进播放(PLAY)消息。流媒体服务器则可以继续向移动终端发送上述直播媒体数据。If the streaming media server is currently sending live media data to the mobile terminal, and now the mobile terminal receives the forward positioning trigger signal input by the user through the forward positioning function control again, it will send forward playback (PLAY) messages to the streaming media server. The streaming media server can continue to send the above live media data to the mobile terminal.
6、初始播放到向后定位6. Initial playback to backward positioning
若流媒体服务器当前正在向移动终端发送非直播或直播媒体数据,而此时移动终端再次接收到用户通过向后定位功能控件输入的向后定位触发信号,则向流媒体服务器发送后退播放(PLAY)消息,若该后退播放(PLAY)消息中包含的移动终端请求播放的相对时间范围为[a,b],则[a,b]应为[0,T2]的子集,其对应的请求操作的绝对时间范围为[t0+a-T1,t0+b-T1]。If the streaming media server is currently sending non-live or live media data to the mobile terminal, and at this time the mobile terminal receives the backward positioning trigger signal input by the user through the backward positioning function control again, it will send the backward playback (PLAY ) message, if the relative time range that the mobile terminal requests to play contained in the backward play (PLAY) message is [a, b], then [a, b] should be a subset of [0, T2], and its corresponding request The absolute time range of the operation is [t0+a-T1, t0+b-T1].
流媒体服务器可以根据上述后退播放(PLAY)消息中包含的请求后退播放的相对时间范围[a,b]、移动终端发起描述请求消息的时间点t0、当前的直播时间点t1和预先设置的回看策略T1,确定可后退播放的绝对时间范围,从而开始向移动终端发送上述可后退播放的绝对时间范围内的媒体数据:The streaming media server can request backward playback according to the relative time range [a, b] contained in the above PLAY message, the time point t0 when the mobile terminal initiates the description request message, the current live broadcast time point t1, and the preset response time. Look at strategy T1, determine the absolute time range that can be played backwards, and start sending the media data within the absolute time range that can be played backwards to the mobile terminal:
若t1>t0+b-T1,则可后退播放的绝对时间范围为[t0+a-T1,t0+b-T1],则流媒体服务器可以通过200OK消息返回的对应的可后退播放的相对时间范围为[a,b],即200OK消息中携带字段Range:npt=a-b,流媒体服务器根据上述可后退播放的绝对时间范围,向移动终端发送上述可后退播放的绝对时间范围内的非直播媒体数据;If t1>t0+b-T1, the absolute time range that can be played back is [t0+a-T1, t0+b-T1], and the streaming server can return the corresponding relative time that can be played back through the 200OK message The range is [a, b], that is, the field Range:npt=a-b is carried in the 200OK message, and the streaming media server sends non-live media within the absolute time range that can be played back to the mobile terminal according to the absolute time range that can be played backwards data;
若t0+a-T1<t1≤t0+b-T1,则可后退播放的绝对时间范围为[t0+a-T1,t1],则流媒体服务器可以通过200OK消息返回的对应的可后退播放的相对时间范围为[a,t1-t0+T1],即200OK消息中携带字段Range:npt=a-(t1-t0+T1),流媒体服务器根据上述可后退播放的绝对时间范围,向移动终端发送上述可后退播放的绝对时间范围内的非直播媒体数据。If t0+a-T1<t1≤t0+b-T1, then the absolute time range that can be played backwards is [t0+a-T1, t1], and the streaming server can return the corresponding time that can be played backwards through the 200OK message The relative time range is [a, t1-t0+T1], that is, the field Range:npt=a-(t1-t0+T1) is carried in the 200OK message, and the streaming server sends the mobile terminal an Send non-live media data within the above absolute time range that can be played backwards.
进一步地,本实施例中在流媒体服务器根据上述请求操作的相对时间范围、移动终端发起描述请求消息的时间点、当前的直播时间点和预先设置的回看策略,确定可操作的绝对时间范围之后,还可以进一步通过向移动终端返回包含可操作的相对时间范围的200OK消息,通知操作成功。Further, in this embodiment, the streaming media server determines the absolute time range that can be operated according to the relative time range of the above-mentioned request operation, the time point when the mobile terminal initiates the description request message, the current live broadcast time point, and the preset review strategy Afterwards, a 200 OK message including an operable relative time range may be further returned to the mobile terminal to notify that the operation is successful.
本实施例中,当移动终端进行流媒体直播业务时,流媒体服务器能够向移动终端返回包含相对时间播放范围的SDP信息,使得移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。In this embodiment, when the mobile terminal performs the live streaming service, the streaming server can return SDP information including the relative time playing range to the mobile terminal, so that the mobile terminal can request to obtain the media data before the live broadcast time point according to the above SDP information, Even if the user of the mobile terminal misses the TV program before the live broadcast time point, he can still watch some or all of the programs before the live broadcast time point according to the playback strategy preset by the streaming media server, which improves the continuity of the mobile terminal to obtain media data and operability.
需要说明的是:对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
图3为本发明实施例三提供的流媒体服务器的结构示意图,如图3所示,本实施例的流媒体服务器可以包括第一接收模块31、返回模块32、第二接收模块33和操作模块34。其中,第一接收模块31接收移动终端发送的包含直播频道信息的描述请求消息,返回模块32若根据上述直播频道信息,确认上述直播频道信息对应的频道允许进行直播回看,则向上述移动终端返回包含相对时间播放范围的会话描述协议信息,第二接收模块33接收上述移动终端根据上述包含相对时间播放范围的会话描述协议信息发送的操作请求,操作模块34对与上述操作请求相应的媒体数据进行操作。Figure 3 is a schematic structural diagram of the streaming media server provided by Embodiment 3 of the present invention, as shown in Figure 3, the streaming media server of this embodiment may include a
上述本发明实施例一、本发明实施例二中流媒体服务器的功能均可以由本发明实施例提供的流媒体服务器实现。The above-mentioned functions of the streaming media server in Embodiment 1 and Embodiment 2 of the present invention can be realized by the streaming media server provided in the embodiment of the present invention.
本实施例中,第二接收模块33接收到的上述操作请求可以包括请求播放(PLAY)或请求暂停(PAUSE),操作模块34对媒体数据进行的操作可以包括播放操作、暂停操作、暂停再播放操作、向前定位(前进播放)操作、向后定位(后退播放)操作等操作。In this embodiment, the above-mentioned operation request that the
本实施例中,当第一接收模块获知移动终端请求流媒体直播业务时,返回模块能够向移动终端返回包含相对时间播放范围的SDP信息,使得移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。In this embodiment, when the first receiving module learns that the mobile terminal requests a streaming media live broadcast service, the returning module can return SDP information including the relative time playing range to the mobile terminal, so that the mobile terminal can request to obtain the time before the live broadcast time point according to the above SDP information. Even if mobile terminal users miss the TV programs before the live broadcast time, they can still watch some or all of the programs before the live broadcast time according to the playback strategy preset by the streaming media server, which improves the mobile terminal’s access to media Data Continuity and Actionability.
图4为本发明实施例四提供的流媒体服务器的结构示意图,如图4所示,与上一实施例相比,本实施例的流媒体服务器中第二接收模块33接收到的上述操作请求中可以包含请求操作的相对时间范围,相应地,操作模块34可以进一步包括确定单元41根据上述请求操作的相对时间范围、上述移动终端发起上述描述请求消息的时间点、当前的直播时间点和预先设置的回看策略,确定可操作的绝对时间范围,操作单元42对上述可操作的绝对时间范围内的媒体数据进行操作。具体地,操作单元42具体可以向上述移动终端发送上述可操作的绝对时间范围内的媒体数据。Fig. 4 is a schematic structural diagram of the streaming media server provided by Embodiment 4 of the present invention. As shown in Fig. 4, compared with the previous embodiment, the above-mentioned operation request received by the
图5为本发明实施例五提供的媒体数据的处理系统的结构示意图,如图5所示,本实施例的媒体数据的处理系统可以包括流媒体服务器51,流媒体服务器51以可通信的方式与移动终端52相连,流媒体服务器51用于接收移动终端52发送的包含直播频道信息的描述请求消息,若根据所述直播频道信息,确认所述直播频道信息对应的频道允许进行直播回看,则向移动终端52返回包含相对时间播放范围的会话描述协议信息,接收移动终端52根据所述包含相对时间播放范围的会话描述协议信息发送的操作请求,对与所述操作请求相应的媒体数据进行操作。FIG. 5 is a schematic structural diagram of a media data processing system provided in Embodiment 5 of the present invention. As shown in FIG. 5 , the media data processing system of this embodiment may include a
上述本发明实施例一、本发明实施例二中流媒体服务器的功能均可以由本发明实施例提供的媒体数据的处理系统中的流媒体服务器51实现。The functions of the streaming media server in the first embodiment of the present invention and the second embodiment of the present invention can be realized by the
本实施例中,当移动终端进行流媒体直播业务时,流媒体服务器能够向移动终端返回包含相对时间播放范围的SDP信息,使得移动终端能够根据上述SDP信息请求获取直播时间点之前的媒体数据,使得移动终端的用户即使错过了直播时间点之前的电视节目,还可以根据流媒体服务器预设的回看策略观看到直播时间点之前的部分或全部节目,提高了移动终端获取媒体数据的连续性和可操作性。In this embodiment, when the mobile terminal performs live streaming services, the streaming server can return SDP information including the relative time playing range to the mobile terminal, so that the mobile terminal can request to obtain media data before the live broadcast time point according to the above SDP information, Even if the user of the mobile terminal misses the TV program before the live broadcast time point, he can still watch some or all of the programs before the live broadcast time point according to the playback strategy preset by the streaming media server, which improves the continuity of the mobile terminal to obtain media data and operability.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010102136347A CN102143387B (en) | 2010-06-24 | 2010-06-24 | Method and system for processing media data and streaming media server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010102136347A CN102143387B (en) | 2010-06-24 | 2010-06-24 | Method and system for processing media data and streaming media server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102143387A true CN102143387A (en) | 2011-08-03 |
| CN102143387B CN102143387B (en) | 2012-11-21 |
Family
ID=44410566
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2010102136347A Expired - Fee Related CN102143387B (en) | 2010-06-24 | 2010-06-24 | Method and system for processing media data and streaming media server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102143387B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872573A (en) * | 2015-12-15 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Video playing method and apparatus |
| CN114339432A (en) * | 2022-01-12 | 2022-04-12 | 中国联合网络通信集团有限公司 | Video fake live broadcast method, device, equipment and medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003228641A (en) * | 2003-01-21 | 2003-08-15 | Sun Corp | Point system |
| CN1917465A (en) * | 2006-09-22 | 2007-02-21 | 华为技术有限公司 | Method and system for realizing interaction of stream meadia |
| JP2007103005A (en) * | 2006-11-30 | 2007-04-19 | Sony Corp | Recording/reproducing apparatus, transmitting/receiving method and storage medium |
| CN101127884A (en) * | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | Program switching method |
| CN101159845A (en) * | 2007-08-01 | 2008-04-09 | 华为技术有限公司 | Interactive service providing method, streaming media server and terminal, and interactive service system |
-
2010
- 2010-06-24 CN CN2010102136347A patent/CN102143387B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003228641A (en) * | 2003-01-21 | 2003-08-15 | Sun Corp | Point system |
| CN1917465A (en) * | 2006-09-22 | 2007-02-21 | 华为技术有限公司 | Method and system for realizing interaction of stream meadia |
| JP2007103005A (en) * | 2006-11-30 | 2007-04-19 | Sony Corp | Recording/reproducing apparatus, transmitting/receiving method and storage medium |
| CN101159845A (en) * | 2007-08-01 | 2008-04-09 | 华为技术有限公司 | Interactive service providing method, streaming media server and terminal, and interactive service system |
| CN101127884A (en) * | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | Program switching method |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872573A (en) * | 2015-12-15 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Video playing method and apparatus |
| WO2017101345A1 (en) * | 2015-12-15 | 2017-06-22 | 乐视控股(北京)有限公司 | Video playing method and apparatus |
| CN114339432A (en) * | 2022-01-12 | 2022-04-12 | 中国联合网络通信集团有限公司 | Video fake live broadcast method, device, equipment and medium |
| CN114339432B (en) * | 2022-01-12 | 2023-05-12 | 中国联合网络通信集团有限公司 | Video false live broadcast method, device, equipment and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102143387B (en) | 2012-11-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9979690B2 (en) | Method and apparatus for social network communication over a media network | |
| US20140213227A1 (en) | Mobile device capable of substantially synchronized sharing of streaming media, calls and other content with other devices | |
| US20120233644A1 (en) | Mobile device capable of substantially synchronized sharing of streaming media with other devices | |
| CN101277209B (en) | Network streaming media transmission disconnection reconnection technology | |
| WO2014063297A1 (en) | Method and apparatus for playing streaming media files | |
| US9756373B2 (en) | Content streaming and broadcasting | |
| US9736518B2 (en) | Content streaming and broadcasting | |
| CN112291500A (en) | Method and apparatus for dual-mode multimedia messaging | |
| US9749373B2 (en) | System and method for improved content streaming | |
| CN106998485B (en) | Video live broadcasting method and device | |
| CN110536028A (en) | Video color ring realization method, color ring platform and terminal | |
| CN103052121B (en) | A kind of local communication network business switch method, device and system | |
| CN103096128A (en) | Method capable of achieving video interaction, server, terminal and system | |
| CN112399190A (en) | Audio and video data acquisition method and device | |
| CN102413309A (en) | Method and device for joining video conference | |
| CN107580235A (en) | A live video replay method, replay server and system | |
| JP7463552B2 (en) | SESSION CREATION METHOD, ELECTRONIC DEVICE, AND READABLE STORAGE MEDIUM | |
| CN114401430A (en) | Video playback method, device, server, system and storage medium | |
| CN101552796A (en) | Time-shifting operation method and device thereof | |
| CN101459976B (en) | Method, equipment and system for stream media playing control | |
| CN101668172B (en) | Method, system and device for playing service content | |
| CN102143387A (en) | Method and system for processing media data and streaming media server | |
| CN101399964B (en) | Media playback control method, system, media control device, and media processing device | |
| US9413664B1 (en) | Resuming media objects delivered via streaming services upon data loss events | |
| WO2009089648A1 (en) | A communication method and a communication device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121121 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |