WO2009049509A1 - A stream media data playing control method and apparatus - Google Patents

A stream media data playing control method and apparatus Download PDF

Info

Publication number
WO2009049509A1
WO2009049509A1 PCT/CN2008/071710 CN2008071710W WO2009049509A1 WO 2009049509 A1 WO2009049509 A1 WO 2009049509A1 CN 2008071710 W CN2008071710 W CN 2008071710W WO 2009049509 A1 WO2009049509 A1 WO 2009049509A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
media data
playing
message
sip
Prior art date
Application number
PCT/CN2008/071710
Other languages
French (fr)
Chinese (zh)
Inventor
Futang Li
Original Assignee
Shenzhen Coship Electronics Co., Ltd.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Coship Electronics Co., Ltd. filed Critical Shenzhen Coship Electronics Co., Ltd.
Publication of WO2009049509A1 publication Critical patent/WO2009049509A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/613Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]

Definitions

  • the invention belongs to the field of streaming media data processing, and in particular relates to a streaming media data playing control method and device.
  • Streaming Media also known as Streaming Media
  • Streaming Media is a new way of media delivery.
  • the entire audio/video (Audio/Video) and three-dimensional (3D) multimedia files are divided into compression packages by special compression methods, and are continuously and real-time transmitted by the streaming media server to the user computer.
  • the user does not have to wait for the entire file to be downloaded as in the download mode, and only needs a few seconds or tens of seconds of startup delay to decompress the compressed Audio/Video, 3D and other multimedia files on the user's computer using the decompression device. After playing and watching.
  • streaming media data playback is generally controlled by a Microsoft Media Server (MMS) protocol or a Real Time Streaming Protocol (RTSP) protocol.
  • MMS Microsoft Media Server
  • RTSP Real Time Streaming Protocol
  • the MMS protocol and the RTSP protocol have incomplete definitions of the streaming media data playback control, and can only realize the operations of playing and stopping the single stream, and the playback control mode of the streaming media data stream is single, and the playback control function is limited.
  • the object of the embodiments of the present invention is to provide a method for controlling streaming data playback, which aims to solve the problem that the definition of the streaming media data playing control is incomplete in the prior art, and the playback control mode of the streaming media data stream is single, and the playback control is performed. A problem with limited functionality.
  • a streaming media data playing control method where the method includes the following steps:
  • Another object of the present invention is to provide a streaming media data playing terminal, where the terminal includes:
  • a session connection unit configured to send a session connection SIP message to the streaming media server, and establish a SIP session connection channel with the streaming media server;
  • a play control message sending unit configured to send a streaming media play control SIP message to the streaming media server by using the SIP session connection channel, and carry the streaming media play control information
  • Another object of the embodiments of the present invention is to provide a streaming media data playing method, the method comprising the following steps:
  • Another object of the present invention is to provide a streaming media data playing device, which is configured in a streaming media server, and the device includes:
  • a session connection unit configured to receive a session connection SIP message sent by the play terminal, and establish a SIP session connection channel with the play terminal;
  • a playing control unit configured to transmit the multimedia data stream to the playing terminal according to the streaming media data playing control information.
  • FIG. 1 is a flowchart of streaming media data playback control according to an embodiment of the present invention
  • the play terminal establishes a session connection with the streaming media server through the SIP protocol, and controls the playing of the streaming media data by using the streaming media data playing control information carried in the SIP message.
  • the SIP protocol defines, for example, REGISTER, INVITE, ACK, CANCEL, BYE, OPTIONS, NOTIFY, PUBLISH, SUBSCRIBE, Messages such as signaling (INFO), which can be carried and transmitted using the UDP protocol or other message protocols, and each message carries a request or response message.
  • INFO signaling
  • FIG. 1 shows a flow of implementing streaming media data playback control by using a SIP protocol according to an embodiment of the present invention, which is described in detail as follows:
  • INVITE sip cam3@a.com SIP/2.0
  • the response message indicates that the request is successful, and includes Session Description Protocol (SDP) description information of the streaming media data requested by the playback terminal. From the description information, the playback terminal can know the related information of the requested streaming media data. If an exception occurs when the INVITE message is processed by the streaming server, the streaming server returns a response message indicating that the request failed to the playback terminal.
  • SDP Session Description Protocol
  • the playback terminal sends a streaming media playback control SIP message to the streaming media server, and carries the streaming media data playback control information. After receiving the message, the streaming media server returns a response message to the playback terminal.
  • the INFO message in the existing SIP protocol is extended, and the streaming media data playing control information is carried, and of course, other messages in the existing SIP protocol may be extended, or a new SIP message may be configured. .
  • the streaming data playing control information may specifically include the following parameters:
  • Streaming data stream playback control word used to identify streaming media data playback, pause or stop;
  • streaming media data stream playback range defined by the playback start time and end time of the streaming media data stream, or by streaming media data stream Instantly identifying the broadcast of the streaming media data stream;
  • Streaming data stream advance and retreat rate control word Used to identify the playback rate of the streaming media data stream, using a non-zero value identifier. When the value is a positive number, it indicates that the streaming server is requested to fast play the streaming media data stream at a double speed of the value; when the value is a negative number, it indicates that the streaming server is requested to fast playback of the streaming media data stream at a multiple speed of the value. ;
  • Video track identification The video terminal is requested to control the video signal for the playback terminal, and is used to identify the video data for selection and playback. A value of 0 indicates that the playback terminal requests the streaming server to transmit only the audio signal.
  • the message body can be described by an extensible markup language (XML) or other text language.
  • XML extensible markup language
  • the parameter Method is a streaming data stream playback control word, and its value can be Play, Pause, or Stop.
  • the value of the parameter Method is Pause or Stop, the other parameters in the message body are invalid.
  • the parameter Range is a playback range of the streaming media data stream, and may be defined by the playback start time and the end time of the streaming media data stream, or the playback time of the streaming media data stream is used as the playback start time of the streaming media data stream, for example, the message body.
  • the parameter AudioTrackID is the track identifier, which is the playback track number that the playback terminal needs to select. Specifically, a value of 0 indicates that the playback terminal requests the streaming server to transmit only the video signal, and the value of 1 indicates that the playback terminal requests the streaming server to simultaneously transmit the video signal and the audio signal.
  • the parameter VideoTrackID is the video track identifier that requests the playback terminal to control the video signal.
  • a value of 0 indicates that the playback terminal requests the streaming server to only transmit audio signals.
  • the value is 1, indicating that the playback terminal requests the streaming server to simultaneously transmit the video signal and the audio signal.
  • the streaming media server receives the streaming media playback control SIP message, extracts the streaming media playback control information, and controls the playback of the streaming media accordingly. If the streaming media control SIP message is processed normally in the streaming server, the streaming server indicates success in the response message; if the streaming media control SIP message is processed in the streaming server, an exception occurs, the streaming server responds The message indicates an error.
  • the streaming media server sends a streaming media playback indication SIP message to the playback terminal, and carries the streaming media playback indication information. After receiving the streaming media playback indication SIP message, the playback terminal returns a response message to the streaming media server.
  • the NOTIFY message in the existing SIP protocol is extended, and the streaming media data playing indication information is carried, and of course, other messages in the existing SIP protocol may be extended, or a new SIP message may be configured. .
  • the playing terminal periodically sends a heartbeat message to the sending streaming server to maintain a session connection with the streaming server.
  • the playing terminal after the session connection is established, the playing terminal periodically sends The NOTIFY message is sent to the streaming server as a heartbeat message, requesting to maintain the session connection until the BYE message is sent to terminate the session.
  • the playback terminal sends a BYE message to the streaming media server to terminate the session. After receiving the BYE message, the streaming media server returns a response message to the playback terminal.
  • FIG. 2 shows the structure of a playback terminal according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the session connection unit 21 sends a session connection SIP message to the streaming server, and establishes a SIP session connection channel with the streaming server.
  • the play control message sending unit 22 sends a streaming media play control SIP message to the streaming media server through the SIP session connection channel established by the streaming media server, where the streaming media play control SIP message carries the streaming media play control information.
  • the data playback unit 23 receives and plays the multimedia data stream transmitted by the streaming media server.
  • the streaming media playback control SIP message may be an extended INFO message, and the message body includes streaming media playback control information, and the streaming media playback control information includes corresponding media playback control parameters, and the specific format of the message. And the content is as shown above, and will not be described again.
  • FIG. 3 shows the structure of a streaming media server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the session connection unit 31 receives the session connection SIP message sent by the playback terminal, and establishes a SIP session connection channel with the playback terminal.
  • the play control message receiving unit 32 receives the streaming media data play control SIP message sent by the play terminal through the SIP session connection channel, and extracts the streaming media data play control information carried in the message.
  • the playback control unit 33 transmits the multimedia data stream to the playback terminal based on the streaming media data playback control information.
  • the play indication message sending unit 34 sends a streaming media data play instruction SIP message to the play terminal, and carries the streaming media data play indication information.
  • the streaming media data playback indication information includes a streaming media data stream advance and retreat position control word parameter for indicating that the current streaming media data stream is fast forwarded to the end position or rewinded to the start position.
  • the streaming media playback indicates that the SIP message can be an extended NOTIFY message, and the streaming media playback control information includes corresponding media playback control parameters.
  • the specific format and content of the message are as shown above, and are not described again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A stream media data playing control method, includes: transmitting session connection SIP message to a stream media server, and establishing SIP session connection channel with the stream media server; transmitting a stream media playing control SIP message to the stream media server through the SIP session connection channel, and stream media playing control information is carried. A stream media data playing method, includes: receiving SIP session connection message transmitted by a playing terminal, and establishing SIP session connection channel with the playing terminal; receiving a stream media data playing control SIP message transmitted by the playing terminal through the SIP session connection channel, and the carried stream media data playing control information is extracted; transmitting multimedia data flow to the playing terminal according to stream media data playing control information.

Description

一种流媒体数据播放控制方法及装置  Streaming media data playing control method and device
本申请要求于 2007 年 10 月 17 日提交中国专利局、 申请号为 200710124023.3、 发明名称为 "一种流媒体数据播放控制方法及装置" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710124023.3, entitled "A Streaming Media Data Playback Control Method and Apparatus", filed on October 17, 2007, the entire contents of which are incorporated by reference. In this application.
技术领域 Technical field
本发明属于流媒体数据处理领域,尤其涉及一种流媒体数据播放控制方法 及装置。  The invention belongs to the field of streaming media data processing, and in particular relates to a streaming media data playing control method and device.
背景技术 Background technique
流媒体数据又称流式媒体 ( Streaming Media ), 是一种新的媒体传送方式。 该方式是将整个音频 /视频(Audio/Video )及三维(3D )等多媒体文件经过特 殊的压缩方式分成一个个压缩包, 由流媒体服务器向用户计算机连续、 实时传 送。用户不必像采用下载方式那样等到整个文件全部下载完毕, 而只需经过几 秒或几十秒的启动延时即可在用户的计算机上利用解压设备对压缩的 Audio/Video, 3D等多媒体文件解压后进行播放和观看。  Streaming Media, also known as Streaming Media, is a new way of media delivery. In this way, the entire audio/video (Audio/Video) and three-dimensional (3D) multimedia files are divided into compression packages by special compression methods, and are continuously and real-time transmitted by the streaming media server to the user computer. The user does not have to wait for the entire file to be downloaded as in the download mode, and only needs a few seconds or tens of seconds of startup delay to decompress the compressed Audio/Video, 3D and other multimedia files on the user's computer using the decompression device. After playing and watching.
现有技术中, 一般通过微软媒体服务器 (Microsoft Media Server, MMS) 协议或者实时流协议 ( Real Time Streaming Protocol, RTSP )协议对流媒体数 据播放进行控制。 但 MMS协议和 RTSP协议对流媒体数据播放控制的定义不 完整, 只能实现筒单的播放与停止等操作,对流媒体数据流的播放控制方式单 一, 播放控制功能有限。  In the prior art, streaming media data playback is generally controlled by a Microsoft Media Server (MMS) protocol or a Real Time Streaming Protocol (RTSP) protocol. However, the MMS protocol and the RTSP protocol have incomplete definitions of the streaming media data playback control, and can only realize the operations of playing and stopping the single stream, and the playback control mode of the streaming media data stream is single, and the playback control function is limited.
发明内容 Summary of the invention
本发明实施例的目的在于提供一种流媒体数据播放控制的方法,旨在解决 现有技术所采用的协议对流媒体数据播放控制的定义不完整,对流媒体数据流 的播放控制方式单一, 播放控制功能有限的问题。  The object of the embodiments of the present invention is to provide a method for controlling streaming data playback, which aims to solve the problem that the definition of the streaming media data playing control is incomplete in the prior art, and the playback control mode of the streaming media data stream is single, and the playback control is performed. A problem with limited functionality.
本发明实施例是这样实现的,一种流媒体数据播放控制方法, 所述方法包 括下述步骤:  The embodiment of the present invention is implemented as follows. A streaming media data playing control method, where the method includes the following steps:
向流媒体服务器发送会话连接 SIP消息,与流媒体服务器建立 SIP会话连 接通道;  Sending a session connection SIP message to the streaming server, and establishing a SIP session connection channel with the streaming server;
通过所述 SIP会话连接通道向流媒体服务器发送流媒体播放控制 SIP消 息, 携带流媒体播放控制信息。 本发明实施例的另一目的在于提供一种流媒体数据播放终端,所述终端包 括: And sending, by the SIP session connection channel, a streaming media play control SIP message to the streaming media server, and carrying the streaming media play control information. Another object of the present invention is to provide a streaming media data playing terminal, where the terminal includes:
会话连接单元, 用于向流媒体服务器发送会话连接 SIP消息, 与流媒体服 务器建立 SIP会话连接通道;  a session connection unit, configured to send a session connection SIP message to the streaming media server, and establish a SIP session connection channel with the streaming media server;
播放控制消息发送单元,用于通过所述 SIP会话连接通道向流媒体服务器 发送流媒体播放控制 SIP消息, 携带流媒体播放控制信息; 以及  a play control message sending unit, configured to send a streaming media play control SIP message to the streaming media server by using the SIP session connection channel, and carry the streaming media play control information;
数据播放单元, 用于接收并播放流媒体服务器传送的多媒体数据流。 本发明实施例的另一目的在于提供一种流媒体数据播放方法,所述方法包 括下述步骤:  a data playing unit, configured to receive and play a multimedia data stream transmitted by the streaming media server. Another object of the embodiments of the present invention is to provide a streaming media data playing method, the method comprising the following steps:
接收播放终端发送的会话连接 SIP消息,与播放终端建立 SIP会话连接通 道;  Receiving a session connection SIP message sent by the playing terminal, and establishing a SIP session connection channel with the playing terminal;
通过所述 SIP会话连接通道接收播放终端发送的流媒体数据播放控制 SIP 消息, 提取消息中携带的流媒体数据播放控制信息;  Receiving, by using the SIP session connection channel, a streaming media data play control SIP message sent by the play terminal, and extracting the streaming media data play control information carried in the message;
根据所述流媒体数据播放控制信息向播放终端传送多媒体数据流。  And transmitting, according to the streaming media data playing control information, a multimedia data stream to the playing terminal.
本发明实施例的另一目的在于提供一种流媒体数据播放装置,配置于流媒 体服务器, 所述装置包括:  Another object of the present invention is to provide a streaming media data playing device, which is configured in a streaming media server, and the device includes:
会话连接单元, 用于接收播放终端发送的会话连接 SIP消息, 与播放终端 建立 SIP会话连接通道;  a session connection unit, configured to receive a session connection SIP message sent by the play terminal, and establish a SIP session connection channel with the play terminal;
播放控制消息接收单元,用于通过所述 SIP会话连接通道接收播放终端发 送的流媒体数据播放控制 SIP消息,提取消息中携带的流媒体数据播放控制信 息; 以及  a play control message receiving unit, configured to receive, by using the SIP session connection channel, a streaming media data play control SIP message sent by the play terminal, and extracting the streaming media data play control information carried in the message;
播放控制单元,用于根据所述流媒体数据播放控制信息向播放终端传送多 媒体数据流。  And a playing control unit, configured to transmit the multimedia data stream to the playing terminal according to the streaming media data playing control information.
在本发明的实施例中, 通过对 SIP消息进行扩展, 丰富了流媒体服务器控 制流媒体数据流的方式, 增强了流媒体服务器的控制功能。  In the embodiment of the present invention, the SIP message is extended to enrich the manner in which the streaming media server controls the streaming media data stream, and the control function of the streaming media server is enhanced.
附图说明 DRAWINGS
图 1是本发明实施例提供的流媒体数据播放控制流程图;  1 is a flowchart of streaming media data playback control according to an embodiment of the present invention;
图 2是本发明实施例提供的播放终端的结构图;  2 is a structural diagram of a playback terminal according to an embodiment of the present invention;
图 3是本发明实施例提供的流媒体服务器的结构图。 具体实施方式 FIG. 3 is a structural diagram of a streaming media server according to an embodiment of the present invention. detailed description
为了使本发明的目的、技术方案及优点更加清楚明白, 以下结合附图及实 施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅 仅用以解释本发明, 并不用于限定本发明。  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在本发明实施例中,播放终端与流媒体服务器之间通过 SIP协议建立会话 连接,利用 SIP消息中携带的流媒体数据播放控制信息对流媒体数据播放进行 控制。  In the embodiment of the present invention, the play terminal establishes a session connection with the streaming media server through the SIP protocol, and controls the playing of the streaming media data by using the streaming media data playing control information carried in the SIP message.
会话初始化协议( Session Initiation Protocol, SIP )协议提供了一种在异构 网络上部署流媒体数据业务和视频会议业务时通用的信令控制协议,使得流媒 体数据、 视频会议等基于会话控制的业务与具体的接入手段和底层网络无关。 由于只是一种信令控制协议, SIP协议一般不独立使用, 需要与其它协议例如 传输控制协议 ( Transmission Control Protocol, TCP )协议、 用户数据才艮协议 ( User Datagram Protocol, UDP )协议结合。 SIP协议只负责通信方之间的会 话建立并向通信方提供决定各方媒体类型的会话协商功能,一旦通信方之间建 立联系后, 真正业务的控制将由双方的业务协议甚至是私有协议实现。  The Session Initiation Protocol (SIP) protocol provides a common signaling control protocol for deploying streaming media data services and video conferencing services on heterogeneous networks, enabling session-based services such as streaming media data and video conferencing. It has nothing to do with the specific access means and the underlying network. Since it is only a signaling control protocol, the SIP protocol is generally not used independently, and needs to be combined with other protocols such as the Transmission Control Protocol (TCP) protocol and the User Datagram Protocol (UDP) protocol. The SIP protocol is only responsible for the establishment of the session between the communicating parties and provides the communication party with the session negotiation function that determines the media types of the parties. Once the communication parties establish contact, the real service control will be realized by the business agreement or even the private agreement of both parties.
SIP协议定义了例如注册( REGISTER )、 邀请 ( INVITE )、 确认( ACK )、 取消 ( CANCEL )、 终止( BYE )、 选项 ( OPTIONS )、 通知( NOTIFY )、 发布 ( PUBLISH ), 订阅 (SUBSCRIBE ), 信令(INFO )等消息, 这些消息可以使 用 UDP协议或者其他报文协议进行承载传送, 而且每一个报文携带一个请求 或响应消息。  The SIP protocol defines, for example, REGISTER, INVITE, ACK, CANCEL, BYE, OPTIONS, NOTIFY, PUBLISH, SUBSCRIBE, Messages such as signaling (INFO), which can be carried and transmitted using the UDP protocol or other message protocols, and each message carries a request or response message.
图 1示出了本发明实施例通过 SIP协议实现流媒体数据播放控制的流程, 详述如下:  FIG. 1 shows a flow of implementing streaming media data playback control by using a SIP protocol according to an embodiment of the present invention, which is described in detail as follows:
1、播放终端向流媒体服务器发送会话连接 SIP消息, 请求建立会话连接, 流媒体服务器收到播放终端发送的会话连接 SIP消息后,向播放终端返回响应 消息进行响应。  The playback terminal sends a session connection SIP message to the streaming media server to request to establish a session connection. After receiving the session connection SIP message sent by the playback terminal, the streaming media server returns a response message to the playback terminal to respond.
作为本发明的一个实施例, 播放终端可以利用现有 SIP协议中的 INVITE 消息与流媒体服务器建立会话连接。播放终端将用户的流媒体数据播放请求转 化为 INVITE消息, 通过网络传送至流媒体数据所在的流媒体服务器。  As an embodiment of the present invention, the playback terminal can establish a session connection with the streaming server by using the INVITE message in the existing SIP protocol. The playback terminal converts the user's streaming media data play request into an INVITE message, and transmits the data to the streaming media server where the streaming media data is located.
一个典型的 INVITE消息示例如下: INVITE sip:cam3@a.com SIP/2.0 An example of a typical INVITE message is as follows: INVITE sip:cam3@a.com SIP/2.0
Via:SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637  Via: SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637
Via: SIP/2.0/UDP 192.168.4.117: 1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3@a.com>;tag=27186  Via: SIP/2.0/UDP 192.168.4.117: 1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3@a.com>;tag=27186
From: <sip:testl @a.com>;tag=15718;contrast=add  From: <sip:testl @a.com>;tag=15718;contrast=add
Call-ID: eeae6897a7272b9e4828c4036ac33482  Call-ID: eeae6897a7272b9e4828c4036ac33482
CSeq: 2 INFO  CSeq: 2 INFO
Call-Info: /movies/test.mp4  Call-Info: /movies/test.mp4
Contact: <sip:testl @a.com>  Contact: <sip:testl @a.com>
Max-Forwards: 69  Max-Forwards: 69
Content-Length: 0  Content-Length: 0
如果 INVITE消息在流媒体服务器被正常处理,则响应消息指示请求成功, 并包含播放终端所请求流媒体数据的会话描述协议 ( Session Description Protocol, SDP )描述信息。 从该描述信息中, 播放终端可以知道所请求的流 媒体数据的相关信息。 如果 INVITE消息在流媒体服务器处理时发生异常, 则 流媒体服务器向播放终端返回指示请求失败的响应消息。  If the INVITE message is processed normally in the streaming server, the response message indicates that the request is successful, and includes Session Description Protocol (SDP) description information of the streaming media data requested by the playback terminal. From the description information, the playback terminal can know the related information of the requested streaming media data. If an exception occurs when the INVITE message is processed by the streaming server, the streaming server returns a response message indicating that the request failed to the playback terminal.
一个与上述 INVITE消息对应的响应消息示例如下:  An example of a response message corresponding to the above INVITE message is as follows:
SIP/2.0 200 OK  SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.4.117: 1121 ;branch=z9hG4bK-1170813591a5testl Via: SIP/2.0/UDP 192.168.4.117: 1121; branch=z9hG4bK-1170813591a5testl
To: <sip:cam3@a.com>;tag=27186 To: <sip:cam3@a.com>;tag=27186
From: <sip:testl @a.com>;tag=15718;contrast=add  From: <sip:testl @a.com>;tag=15718;contrast=add
Call-ID: eeae6897a7272b9e4828c4036ac33482  Call-ID: eeae6897a7272b9e4828c4036ac33482
CSeq: 2 INFO  CSeq: 2 INFO
Call-Info: /movies/test.mp4  Call-Info: /movies/test.mp4
Contact: <sip:testl @a.com>  Contact: <sip:testl @a.com>
Max-Forwards: 69  Max-Forwards: 69
Content- Type: application/sdp  Content- Type: application/sdp
Content-Length: 151 v=0 Content-Length: 151 V=0
o=alice 2890844526 2890844526 IN IP4 client.atlanta.example.com  o=alice 2890844526 2890844526 IN IP4 client.atlanta.example.com
s=- c=IN IP4 192.0.2.101  s=- c=IN IP4 192.0.2.101
t=0 0  t=0 0
m=audio 49172 RTP/AVP 0  m=audio 49172 RTP/AVP 0
a=rtpmap:0 PCMU/8000  a=rtpmap:0 PCMU/8000
上述响应消息是一个指示请求成功的消息,表示 INVITE消息在流媒体服 务器被正常处理。消息中 Content-Length: 151以下内容即为所请求流媒体数据 的 SDP描述信息。  The above response message is a message indicating that the request is successful, indicating that the INVITE message is processed normally in the streaming server. In the message, Content-Length: 151 is the SDP description of the requested streaming media data.
2、 播放终端向流媒体服务器发送流媒体播放控制 SIP消息, 携带流媒体 数据播放控制信息, 流媒体服务器收到该消息后, 向播放终端返回响应消息。  2. The playback terminal sends a streaming media playback control SIP message to the streaming media server, and carries the streaming media data playback control information. After receiving the message, the streaming media server returns a response message to the playback terminal.
作为本发明的一个实施例, 对现有 SIP协议中的 INFO消息进行扩展, 携 带有流媒体数据播放控制信息,当然也可以对现有 SIP协议中的其他消息进行 扩展, 或者配置新的 SIP消息。  As an embodiment of the present invention, the INFO message in the existing SIP protocol is extended, and the streaming media data playing control information is carried, and of course, other messages in the existing SIP protocol may be extended, or a new SIP message may be configured. .
流媒体数据播放控制信息中具体可以包括下述参数:  The streaming data playing control information may specifically include the following parameters:
流媒体数据流播放控制字: 用于标识流媒体数据播放、 暂停或停止; 流媒体数据流播放范围: 以流媒体数据流的播放起始时刻和结束时刻界 定, 或以流媒体数据流的制作时刻标识流媒体数据流的播;^始时刻;  Streaming data stream playback control word: used to identify streaming media data playback, pause or stop; streaming media data stream playback range: defined by the playback start time and end time of the streaming media data stream, or by streaming media data stream Instantly identifying the broadcast of the streaming media data stream;
流媒体数据流进退速率控制字: 用于标识流媒体数据流的播放速率, 采用 非零值标识。该值为正数时,表示请求流媒体服务器以该值的倍速快进流媒体 数据流的播放; 该值为负数时,表示请求流媒体服务器以该值的倍速快退流媒 体数据流的播放;  Streaming data stream advance and retreat rate control word: Used to identify the playback rate of the streaming media data stream, using a non-zero value identifier. When the value is a positive number, it indicates that the streaming server is requested to fast play the streaming media data stream at a double speed of the value; when the value is a negative number, it indicates that the streaming server is requested to fast playback of the streaming media data stream at a multiple speed of the value. ;
音轨标识: 为播放终端需要选择的播放音轨号, 用于标识选择播放的音轨 数据, 值为 0表示播放终端请求流媒体服务器只发送视频信号;  Track identification: The playback track number that needs to be selected for the playback terminal, used to identify the track data selected for playback. A value of 0 indicates that the playback terminal requests the streaming server to send only the video signal;
视频轨标识: 为播放终端请求对视频信号的控制, 用于标识选择播放的视 频数据, 值为 0表示播放终端请求流媒体服务器只发送音频信号。  Video track identification: The video terminal is requested to control the video signal for the playback terminal, and is used to identify the video data for selection and playback. A value of 0 indicates that the playback terminal requests the streaming server to transmit only the audio signal.
一个典型的 INFO消息示例如下:  An example of a typical INFO message is as follows:
INFO sip:cam3@a.com SIP/2.0 Via:SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637 INFO sip:cam3@a.com SIP/2.0 Via: SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637
Via: SIP/2.0/UDP 192.168.4.117: 1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3@a.com>;tag=27186  Via: SIP/2.0/UDP 192.168.4.117: 1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3@a.com>;tag=27186
From: <sip:testl @a.com>;tag=15718;contrast=add  From: <sip:testl @a.com>;tag=15718;contrast=add
Call-ID: eeae6897a7272b9e4828c4036ac33482  Call-ID: eeae6897a7272b9e4828c4036ac33482
CSeq: 2 INFO  CSeq: 2 INFO
Contact: <sip:testl @a.com>  Contact: <sip:testl @a.com>
Max-Forwards: 69  Max-Forwards: 69
Content-Length: xxx  Content-Length: xxx
[消息体]  [message]
在上述 INFO消息中, 消息体可以用可扩展标记语言 (extensible Markup Language , XML )或其他文本语言描述, 以 XML为例, 消息体描述示例如下: <?xml version="1.0"?>  In the above INFO message, the message body can be described by an extensible markup language (XML) or other text language. Taking XML as an example, the message body description example is as follows: <?xml version="1.0"?>
<Control>  <Control>
<Method>Play</Method>  <Method>Play</Method>
<Range> npt=123-3400.34</Range>  <Range> npt=123-3400.34</Range>
<Scale>300</Scale>  <Scale>300</Scale>
<AudioTrackID> 1 </AudioTrackID>  <AudioTrackID> 1 </AudioTrackID>
<VideoTrackID>2</VideoTrackID>  <VideoTrackID>2</VideoTrackID>
</ Control>  </ Control>
在上述消息体中, 参数 Method是流媒体数据流播放控制字, 其值可以是 Play (播放)、 Pause (暂停 )或 Stop (停止)。 当参数 Method的值为 Pause (暂 停)或 Stop (停止) 时, 消息体中其他参数均无效。  In the above message body, the parameter Method is a streaming data stream playback control word, and its value can be Play, Pause, or Stop. When the value of the parameter Method is Pause or Stop, the other parameters in the message body are invalid.
参数 Range为流媒体数据流播放范围,可以用流媒体数据流的播放起始时 刻和结束时刻界定,或以流媒体数据流的制作时刻作为流媒体数据流的播放起 始时刻, 例如上述消息体中, npt=123-3400.34表示从流媒体数据流的第 123 秒开始播放,第 3400.34秒结束,或者,当 Range值为 clock=20070820T175412Z 时, 表示从流媒体数据流录制时间 2007年 8月 20日 17时 54分 12秒开始播 放。 The parameter Range is a playback range of the streaming media data stream, and may be defined by the playback start time and the end time of the streaming media data stream, or the playback time of the streaming media data stream is used as the playback start time of the streaming media data stream, for example, the message body. Medium, npt=123-3400.34 means to start playing from the 123rd second of the streaming data stream, the end of the 3403.34 second, or when the Range value is clock=20070820T175412Z, it means the recording time from the streaming data stream August 20, 2007 Started at 17:54:12 Put it.
参数 Scale是流媒体数据流进退速率控制字, 是一个非零的数字, 该值为 正数时,表示请求流媒体服务器以该值的倍速快进流媒体数据流的播放; 该值 为负数时,表示请求流媒体服务器以该值的倍速快退流媒体数据流的播放, 例 如上述消息体中, 300表示请求流媒体服务器以正常播放速度的 300倍将流媒 体数据流快进。  The parameter Scale is a streaming media data flow advance and retreat rate control word, which is a non-zero number. When the value is a positive number, it indicates that the streaming server is requested to play the streaming data stream at a double speed of the value; when the value is negative Indicates that the streaming server is requested to fast playback of the streaming media stream at a multiple speed of the value. For example, in the message body, 300 indicates that the streaming server is requested to fast forward the streaming data stream by 300 times of the normal playback speed.
参数 AudioTrackID是音轨标识, 为播放终端需要选择的播放音轨号。 特 別地,值为 0表示播放终端请求流媒体服务器只发送视频信号, 该值为 1表示 播放终端请求流媒体服务器同时发送视频信号和音频信号。  The parameter AudioTrackID is the track identifier, which is the playback track number that the playback terminal needs to select. Specifically, a value of 0 indicates that the playback terminal requests the streaming server to transmit only the video signal, and the value of 1 indicates that the playback terminal requests the streaming server to simultaneously transmit the video signal and the audio signal.
参数 VideoTrackID是视频轨标识, 为播放终端请求对视频信号的控制。 特別地,值为 0表示播放终端请求流媒体服务器只发送音频信号。在上述消息 体中, 该值为 1 , 表示播放终端请求流媒体服务器同时发送视频信号和音频信 号。  The parameter VideoTrackID is the video track identifier that requests the playback terminal to control the video signal. In particular, a value of 0 indicates that the playback terminal requests the streaming server to only transmit audio signals. In the above message body, the value is 1, indicating that the playback terminal requests the streaming server to simultaneously transmit the video signal and the audio signal.
流媒体服务器收到流媒体播放控制 SIP消息,提取其中的流媒体播放控制 信息, 对流媒体的播放进行相应控制。 如果流媒体播放控制 SIP消息在流媒体 服务器中被正常处理, 则流媒体服务器在响应消息指示成功; 如果流媒体播放 控制 SIP消息在流媒体服务器中被处理时发生异常,则流媒体服务器在响应消 息指示出错。  The streaming media server receives the streaming media playback control SIP message, extracts the streaming media playback control information, and controls the playback of the streaming media accordingly. If the streaming media control SIP message is processed normally in the streaming server, the streaming server indicates success in the response message; if the streaming media control SIP message is processed in the streaming server, an exception occurs, the streaming server responds The message indicates an error.
3、 流媒体服务器向播放终端发送流媒体播放指示 SIP消息,携带流媒体播 放指示信息, 播放终端收到流媒体播放指示 SIP消息后, 向流媒体服务器返回 响应消息。  3. The streaming media server sends a streaming media playback indication SIP message to the playback terminal, and carries the streaming media playback indication information. After receiving the streaming media playback indication SIP message, the playback terminal returns a response message to the streaming media server.
作为本发明的一个实施例, 对现有 SIP协议中的 NOTIFY消息进行扩展, 携带有流媒体数据播放指示信息, 当然也可以对现有 SIP协议中的其他消息进 行扩展, 或者配置新的 SIP消息。  As an embodiment of the present invention, the NOTIFY message in the existing SIP protocol is extended, and the streaming media data playing indication information is carried, and of course, other messages in the existing SIP protocol may be extended, or a new SIP message may be configured. .
流媒体数据播放指示信息中包含有流媒体数据流进退位置控制字参数,用 于指示播放终端对当前流媒体数据流快进到末尾位置或快退到开始位置时进 行处理。  The streaming media data playback indication information includes a streaming media data stream advance and retreat position control word parameter, which is used to instruct the playback terminal to process the current streaming media data stream to the end position or rewind to the start position.
以采用 XML描述的 NOTIFY消息为例, 消息体描述如下:  Take the NOTIFY message described in XML as an example. The message body is described as follows:
NOTIFY sip:cam3@a.com SIP/2.0 Via:SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637 NOTIFY sip:cam3@a.com SIP/2.0 Via: SIP/2.0/UDP192.168.4.124:5060;branch=z9hG4bK-b2230f3bb435fd61b2 98ad85b4de8637
Via: SIP/2.0/UDP 192.168.4.117:1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3 @a.com>;tag=27186  Via: SIP/2.0/UDP 192.168.4.117:1121 ;branch=z9hG4bK-1170813591a5testl To: <sip:cam3 @a.com>;tag=27186
From: <sip:testl @a.com>;tag=15718;contrast=add  From: <sip:testl @a.com>;tag=15718;contrast=add
Call-ID: eeae6897a7272b9e4828c4036ac33482  Call-ID: eeae6897a7272b9e4828c4036ac33482
CSeq: 2 NOTIFY  CSeq: 2 NOTIFY
Contact: <sip:testl @a.com>  Contact: <sip:testl @a.com>
Max-Forwards: 69  Max-Forwards: 69
Content-Length: xxx  Content-Length: xxx
<?xml version="1.0"?>  <?xml version="1.0"?>
<Notice>  <Notice>
<Locate>EOS</Locate>  <Locate>EOS</Locate>
</ Notico  </ Notico
上述消息中, Content-Length: xxx以下部分为采用 XML描述的消息体, 是 In the above message, the following part of Content-Length: xxx is the message body described by XML,
NOTIFY消息中携带的流媒体数据播放指示信息部分。 The streaming media data playback indication information part carried in the NOTIFY message.
参数 Locate为流媒体数据流进退位置控制字, 用于指示播放终端对当前流 媒体数据流快进到末尾位置或快退到开始位置时进行处理。在本发明的实施例 中, 流媒体服务器在流媒体数据流快进到末尾位置时, 即向播放终端发送参数 Locate值为 EOS (结束标记)的 NOTIFY消息, 通知播放终端进行相应的处理; 流媒体服务器在流媒体数据流快退到开始位置时, 即向播放终端发送参数 Locate值为 BOS (开始标记)的 NOTIFY消息, 通知播放终端进行相应的处理。  The parameter Locate is a streaming media data flow advance and retreat position control word, which is used to indicate that the playback terminal processes the current streaming data stream when it fast forwards to the end position or rewinds to the start position. In the embodiment of the present invention, when the streaming media stream fast forwards to the end position, the streaming media server sends a NOTIFY message with a parameter Locate value of EOS (end tag) to the playing terminal, and notifies the playing terminal to perform corresponding processing; When the streaming media data rewinds to the starting position, the media server sends a NOTIFY message with the parameter Locate value to the BOS (starting tag) to the playing terminal, and notifies the playing terminal to perform corresponding processing.
播放终端收到流媒体播放指示 SIP消息后, 提取其中的流媒体播放指示信 息, 对流媒体数据的播放进行相应处理。 如果流媒体播放指示 SIP消息在播放 终端中被正常处理,则播放终端在响应消息指示成功;如果流媒体播放指示 SIP 消息在播放终端中被处理时发生异常, 则播放终端在响应消息指示出错。  After receiving the streaming media playback instruction SIP message, the playback terminal extracts the streaming media playback indication information, and performs corresponding processing on the playback of the streaming media data. If the streaming media playback indicates that the SIP message is normally processed in the playback terminal, the playback terminal indicates success in the response message; if the streaming media playback indicates that the SIP message is processed in the playback terminal, an abnormality occurs, the playback terminal indicates an error in the response message.
4、 播放终端定期向发送流媒体服务器发送心跳消息, 保持与流媒体服务 器之间的会话连接。  4. The playing terminal periodically sends a heartbeat message to the sending streaming server to maintain a session connection with the streaming server.
在本发明的实施例中, 会话连接建立以后, 播放终端周期性地发送 NOTIFY消息作为心跳消息传送至流媒体服务器, 请求保持本次会话连接, 直 到发送 BYE消息终结会话为止。 In an embodiment of the present invention, after the session connection is established, the playing terminal periodically sends The NOTIFY message is sent to the streaming server as a heartbeat message, requesting to maintain the session connection until the BYE message is sent to terminate the session.
5、 流媒体播放完成后播放终端向流媒体服务器发送会话终止 SIP消息, 以 终结该次会话。  5. After the streaming media is played, the playback terminal sends a session termination SIP message to the streaming media server to terminate the session.
在本发明实施例中,播放终端向流媒体服务器发送 BYE消息以终结该次会 话, 流媒体服务器收到 BYE消息后, 向播放终端返回响应消息。  In the embodiment of the present invention, the playback terminal sends a BYE message to the streaming media server to terminate the session. After receiving the BYE message, the streaming media server returns a response message to the playback terminal.
作为本发明实施例的一个优选实施方式,播放终端和流媒体服务器之间的 所有消息均以 UDP协议承载传送, 流媒体服务器不需要保持很多长链接, 能够 支持更多的并发点播用户, 从而大大降低了运营成本。  As a preferred implementation manner of the embodiment of the present invention, all messages between the playback terminal and the streaming media server are carried by the UDP protocol, and the streaming media server does not need to maintain many long links, and can support more concurrent on-demand users, thereby greatly Reduced operating costs.
图 2示出了本发明实施例提供的播放终端的结构, 为了便于说明, 仅示出 了与本发明实施例相关的部分。  FIG. 2 shows the structure of a playback terminal according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
会话连接单元 21向流媒体服务器发送会话连接 SIP消息, 与流媒体服务器 建立 SIP会话连接通道。 播放控制消息发送单元 22通过与流媒体服务器建立的 SIP会话连接通道向流媒体服务器发送流媒体播放控制 SIP消息,该流媒体播放 控制 SIP消息中携带有流媒体播放控制信息。 数据播放单元 23接收并播放流媒 体服务器传送的多媒体数据流。  The session connection unit 21 sends a session connection SIP message to the streaming server, and establishes a SIP session connection channel with the streaming server. The play control message sending unit 22 sends a streaming media play control SIP message to the streaming media server through the SIP session connection channel established by the streaming media server, where the streaming media play control SIP message carries the streaming media play control information. The data playback unit 23 receives and plays the multimedia data stream transmitted by the streaming media server.
作为本发明的一个实施例, 流媒体播放控制 SIP消息可以为扩展的 INFO消 息, 消息体中包含有流媒体播放控制信息, 流媒体播放控制信息包含有相应的 媒体播放控制参数, 消息的具体格式和内容如上述所示, 不再赘述。  As an embodiment of the present invention, the streaming media playback control SIP message may be an extended INFO message, and the message body includes streaming media playback control information, and the streaming media playback control information includes corresponding media playback control parameters, and the specific format of the message. And the content is as shown above, and will not be described again.
在本发明实施例中,播放指示消息接收单元 24接收流媒体服务器返回的流 媒体播放指示 SIP消息,提取流媒体播放指示 SIP消息携带的流媒体播放指示信 息。  In the embodiment of the present invention, the play indication message receiving unit 24 receives the streaming media play indication SIP message returned by the streaming media server, and extracts the streaming media play indication information carried by the streaming media play instruction SIP message.
图 3示出了本发明实施例提供的流媒体服务器的结构, 为了便于说明,仅 示出了与本发明实施例相关的部分。  FIG. 3 shows the structure of a streaming media server according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
会话连接单元 31接收播放终端发送的会话连接 SIP消息, 与播放终端建 立 SIP会话连接通道。 播放控制消息接收单元 32通过所述 SIP会话连接通道 接收播放终端发送的流媒体数据播放控制 SIP消息,提取消息中携带的流媒体 数据播放控制信息。 播放控制单元 33根据该流媒体数据播放控制信息向播放 终端传送多媒体数据流。 作为本发明的一个实施例, 播放指示消息发送单元 34向播放终端发送流 媒体数据播放指示 SIP消息,携带流媒体数据播放指示信息。 流媒体数据播放 指示信息包含有流媒体数据流进退位置控制字参数,用于指示对当前流媒体数 据流快进到末尾位置或快退到开始位置时进行处理。该流媒体播放指示 SIP消 息可以为扩展的 NOTIFY 消息, 流媒体播放控制信息包含有相应的媒体播放 控制参数, 消息的具体格式和内容如上述所示, 不再赘述。 The session connection unit 31 receives the session connection SIP message sent by the playback terminal, and establishes a SIP session connection channel with the playback terminal. The play control message receiving unit 32 receives the streaming media data play control SIP message sent by the play terminal through the SIP session connection channel, and extracts the streaming media data play control information carried in the message. The playback control unit 33 transmits the multimedia data stream to the playback terminal based on the streaming media data playback control information. As an embodiment of the present invention, the play indication message sending unit 34 sends a streaming media data play instruction SIP message to the play terminal, and carries the streaming media data play indication information. The streaming media data playback indication information includes a streaming media data stream advance and retreat position control word parameter for indicating that the current streaming media data stream is fast forwarded to the end position or rewinded to the start position. The streaming media playback indicates that the SIP message can be an extended NOTIFY message, and the streaming media playback control information includes corresponding media playback control parameters. The specific format and content of the message are as shown above, and are not described again.
作为优选的实施方式, 本发明实施例中, 流媒体数据流以 UDP协议承载。 在本发明的实施例中, 支持 SIP协议的播放终端和流媒体服务器不需要重 新移植新的协议, 只需要将装有 SIP协议栈的播放终端和流媒体服务器中的 INFO消息和 NOTIFY消息体进行扩展, 就可以对流媒体数据流进行快进与快 退, 暂停, 停止, 选取播放的范围, 只播放音频, 只播放流媒体数据等控制, 丰富了播放控制方式, 增强了播放控制功能。 同时, 由于播放终端和流媒体服 务器之间的所有控制消息都以 UDP协议承载传送,流媒体服务器能够并行支持 更多的播放终端。  As a preferred embodiment, in the embodiment of the present invention, the streaming media data stream is carried by the UDP protocol. In the embodiment of the present invention, the SIP terminal-enabled play terminal and the streaming media server do not need to re-transplant a new protocol, and only need to perform the INFO message and the NOTIFY message body in the play terminal and the streaming media server with the SIP protocol stack. By expanding, the streaming data stream can be fast forwarded and rewinded, paused, stopped, selected for playing range, only playing audio, playing only streaming media data, etc., enriching the playback control mode and enhancing the playback control function. At the same time, since all control messages between the playback terminal and the streaming server are carried by the UDP protocol, the streaming server can support more playback terminals in parallel.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、等同替换和改进等, 均应包含在本发明 的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 Rights request
1、 一种流媒体数据播放控制方法, 其特征在于, 所述方法包括下述步骤: 向流媒体服务器发送会话连接会话初始化协议 SIP消息,与流媒体服务器 建立 SIP会话连接通道;  A streaming media data playing control method, the method comprising the steps of: sending a session connection session initiation protocol SIP message to a streaming media server, and establishing a SIP session connection channel with the streaming media server;
通过所述 SIP会话连接通道向流媒体服务器发送流媒体播放控制 SIP消 息, 携带流媒体播放控制信息。  The streaming media control control SIP message is sent to the streaming media server through the SIP session connection channel, and the streaming media playback control information is carried.
2、 如权利要求 1所述的流媒体数据播放控制方法, 其特征在于, 所述流 媒体播放控制 SIP消息为扩展的信令消息,所述信令消息的消息体中包含有流 媒体播放控制信息。  2. The streaming media data playing control method according to claim 1, wherein the streaming media playback control SIP message is an extended signaling message, and the message body of the signaling message includes streaming media playback control. information.
3、 如权利要求 1或 2所述的流媒体数据播放控制方法, 其特征在于, 所 述流媒体播放控制信息包含以下参数之一或其任意组合:  The streaming media data playing control method according to claim 1 or 2, wherein the streaming media playing control information comprises one of the following parameters or any combination thereof:
流媒体数据流播放控制字, 用于标识流媒体数据播放、 暂停或停止; 流媒体数据流播放范围,用于标识流媒体数据流的播放起始时刻和结束时 刻;  The streaming media data stream playing control word is used to identify the streaming media data playing, pausing or stopping; the streaming media data stream playing range is used to identify the playing start time and ending time of the streaming media data stream;
流媒体数据流进退速率控制字, 用于标识流媒体数据流的播放速率; 音轨标识, 用于标识选择播放的音轨数据;  a streaming media data flow advance and retreat rate control word, used to identify a playing rate of the streaming media data stream; a track identifier, used to identify the track data selected for playing;
视频轨标识, 用于标识选择播放的视频数据。  Video track identifier, used to identify the video data selected for playback.
4、 如权利要求 1所述的流媒体数据播放控制方法, 其特征在于, 所述方 法进一步包括下述步骤:  4. The streaming media data playback control method according to claim 1, wherein the method further comprises the following steps:
接收流媒体服务器返回的流媒体播放指示 SIP消息;  Receiving a streaming media playback indication SIP message returned by the streaming media server;
提取所述流媒体播放指示 SIP消息携带的流媒体播放指示信息。  And extracting, by the streaming media, the streaming media playback indication information carried by the SIP message.
5、 一种流媒体数据播放终端, 其特征在于, 所述终端包括:  A streaming media data playing terminal, wherein the terminal comprises:
会话连接单元,用于向流媒体服务器发送会话连接会话初始化协议 SIP消 息, 与流媒体服务器建立 SIP会话连接通道;  a session connection unit, configured to send a session connection session initialization protocol SIP message to the streaming media server, and establish a SIP session connection channel with the streaming media server;
播放控制消息发送单元,用于通过所述 SIP会话连接通道向流媒体服务器 发送流媒体播放控制 SIP消息, 携带流媒体播放控制信息; 以及  a play control message sending unit, configured to send a streaming media play control SIP message to the streaming media server by using the SIP session connection channel, and carry the streaming media play control information;
数据播放单元, 用于接收并播放流媒体服务器传送的多媒体数据流。 a data playing unit, configured to receive and play a multimedia data stream transmitted by the streaming media server.
6、 如权利要求 5所述的流媒体数据播放终端, 其特征在于, 所述流媒体 播放控制 SIP消息为扩展的信令消息,所述信令消息的消息体中包含有流媒体 播放控制信息。 The streaming media data playing terminal according to claim 5, wherein the streaming media playback control SIP message is an extended signaling message, and the message body of the signaling message includes streaming media. Play control information.
7、 如权利要求 5或 6所述的流媒体数据播放终端, 其特征在于, 所述流 媒体播放控制信息包含以下参数之一或其任意组合:  The streaming media data playing terminal according to claim 5 or 6, wherein the streaming media playing control information comprises one of the following parameters or any combination thereof:
流媒体数据流播放控制字, 用于标识流媒体数据播放、 暂停或停止; 流媒体数据流播放范围,用于标识流媒体数据流的播放起始时刻和结束时 刻;  The streaming media data stream playing control word is used to identify the streaming media data playing, pausing or stopping; the streaming media data stream playing range is used to identify the playing start time and ending time of the streaming media data stream;
流媒体数据流进退速率控制字, 用于标识流媒体数据流的播放速率; 音轨标识, 用于标识选择播放的音轨数据;  a streaming media data flow advance and retreat rate control word, used to identify a playing rate of the streaming media data stream; a track identifier, used to identify the track data selected for playing;
视频轨标识, 用于标识选择播放的视频数据。  Video track identifier, used to identify the video data selected for playback.
8、 如权利要求 5所述的流媒体数据播放终端, 其特征在于, 所述终端进 一步包括:  8. The streaming media data playing terminal of claim 5, wherein the terminal further comprises:
播放指示消息接收单元, 用于接收流媒体服务器返回的流媒体播放指示 SIP消息, 提取所述流媒体播放指示 SIP消息携带的流媒体播放指示信息。  The play indication message receiving unit is configured to receive a streaming media play indication SIP message returned by the streaming media server, and extract the streaming media play indication information carried by the streaming media play indication SIP message.
9、 一种流媒体数据播放方法, 其特征在于, 所述方法包括下述步骤: 接收播放终端发送的会话连接会话初始化协议 SIP消息,与播放终端建立 A streaming media data playing method, the method comprising the steps of: receiving a session connection session initiation protocol SIP message sent by a playback terminal, establishing with a playback terminal
SIP会话连接通道; SIP session connection channel;
通过所述 SIP会话连接通道接收播放终端发送的流媒体数据播放控制 SIP 消息, 提取消息中携带的流媒体数据播放控制信息;  Receiving, by using the SIP session connection channel, a streaming media data play control SIP message sent by the play terminal, and extracting the streaming media data play control information carried in the message;
根据所述流媒体数据播放控制信息向播放终端传送多媒体数据流。  And transmitting, according to the streaming media data playing control information, a multimedia data stream to the playing terminal.
10、 如权利要求 9所述的流媒体数据播放方法, 其特征在于, 所述方法进 一步包括下述步骤:  10. The streaming media data playing method according to claim 9, wherein the method further comprises the following steps:
向播放终端发送流媒体数据播放指示 SIP消息,携带流媒体数据播放指示 信息。  The streaming media data playback indication SIP message is sent to the playing terminal, and the streaming media data playing indication information is carried.
11、 如权利要求 9所述的流媒体数据播放方法, 其特征在于, 所述流媒体 播放指示 SIP消息为扩展的通知消息,所述通知消息的消息体中包含有流媒体 播放指示信息。  The streaming media data playing method according to claim 9, wherein the streaming media playback instruction SIP message is an extended notification message, and the message body of the notification message includes streaming media playback indication information.
12、 如权利要求 10或 11所述的流媒体数据播放方法, 其特征在于, 所述 流媒体播放指示信息包含有流媒体数据流进退位置控制字参数,用于指示对当 前流媒体数据流快进到末尾位置或快退到开始位置时进行处理。 The streaming media data playing method according to claim 10 or 11, wherein the streaming media playback indication information includes a streaming media data stream advance and retreat position control word parameter, configured to indicate that the current streaming media data stream is fast. Processed when you reach the end position or rewind to the start position.
13、 如权利要求 9所述的流媒体数据播放方法, 其特征在于, 所述流媒体 数据流以用户数据报协议 UDP协议承载。 The streaming media data playing method according to claim 9, wherein the streaming media data stream is carried by a User Datagram Protocol (UDP) protocol.
14、 一种流媒体数据播放装置, 配置于流媒体服务器, 其特征在于, 所述 装置包括:  14. A streaming media data playing device, configured in a streaming media server, wherein the device comprises:
会话连接单元,用于接收播放终端发送的会话连接会话初始化协议 SIP消 息, 与播放终端建立 SIP会话连接通道;  a session connection unit, configured to receive a session connection session initiation protocol SIP message sent by the play terminal, and establish a SIP session connection channel with the play terminal;
播放控制消息接收单元,用于通过所述 SIP会话连接通道接收播放终端发 送的流媒体数据播放控制 SIP消息,提取消息中携带的流媒体数据播放控制信 息; 以及  a play control message receiving unit, configured to receive, by using the SIP session connection channel, a streaming media data play control SIP message sent by the play terminal, and extracting the streaming media data play control information carried in the message;
播放控制单元,用于根据所述流媒体数据播放控制信息向播放终端传送多 媒体数据流。  And a playing control unit, configured to transmit the multimedia data stream to the playing terminal according to the streaming media data playing control information.
15、 如权利要求 14所述的流媒体数据播放装置, 其特征在于, 所述服务 器进一步包括:  The streaming media data playing device of claim 14, wherein the server further comprises:
播放指示消息发送单元,用于向播放终端发送流媒体数据播放指示 SIP消 息, 携带流媒体数据播放指示信息。  The play indication message sending unit is configured to send a streaming media data play indication SIP message to the play terminal, and carry the streaming media data play indication information.
16、 如权利要求 15所述的流媒体数据播放装置, 其特征在于, 所述流媒 体播放指示 SIP消息为扩展的通知消息,所述通知消息的消息体中包含有流媒 体播放指示信息。  The streaming media data playing device according to claim 15, wherein the streaming media playback instruction SIP message is an extended notification message, and the message body of the notification message includes streaming media playback indication information.
17、 如权利要求 15或 16所述的流媒体数据播放装置, 其特征在于, 所述 流媒体播放指示信息包含有流媒体数据流进退位置控制字参数,用于指示对当 前流媒体数据流快进到末尾位置或快退到开始位置时进行处理。  The streaming media data playing device according to claim 15 or 16, wherein the streaming media playback indication information includes a streaming media data stream advance and retreat position control word parameter, configured to indicate that the current streaming media data stream is fast. Processed when you reach the end position or rewind to the start position.
18、 如权利要求 14所述的流媒体数据播放装置, 其特征在于, 所述流媒 体数据流以用户数据报协议 UDP协议承载。  The streaming media data playing device according to claim 14, wherein the streaming media data stream is carried by a User Datagram Protocol (UDP) protocol.
PCT/CN2008/071710 2007-10-17 2008-07-22 A stream media data playing control method and apparatus WO2009049509A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710124023.3 2007-10-17
CN200710124023.3A CN101202640A (en) 2007-10-17 2007-10-17 Method and device for stream media data playing control

Publications (1)

Publication Number Publication Date
WO2009049509A1 true WO2009049509A1 (en) 2009-04-23

Family

ID=39517623

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071710 WO2009049509A1 (en) 2007-10-17 2008-07-22 A stream media data playing control method and apparatus

Country Status (2)

Country Link
CN (1) CN101202640A (en)
WO (1) WO2009049509A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355552A (en) * 2007-07-25 2009-01-28 华为技术有限公司 Method and apparatus for controlling stream medium
CN101202640A (en) * 2007-10-17 2008-06-18 深圳市同洲电子股份有限公司 Method and device for stream media data playing control
CN101668174B (en) * 2008-09-01 2013-06-05 华为技术有限公司 Play control method and equipment
CN101668180A (en) * 2009-10-09 2010-03-10 中兴通讯股份有限公司 Method and device for controlling program playback of mobile streaming media
CN102611685B (en) * 2011-12-16 2018-08-14 中兴通讯股份有限公司 A kind of method, apparatus and system of label Streaming Media
CN111901634B (en) * 2020-07-31 2022-07-08 北京嘀嘀无限科技发展有限公司 Stream media on-demand method, device and computer readable storage medium
CN113612759B (en) * 2021-07-29 2024-02-13 世邦通信股份有限公司 High-performance high-concurrency intelligent broadcasting system based on SIP protocol and implementation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798139A (en) * 2004-12-28 2006-07-05 上海贝尔阿尔卡特股份有限公司 Devices and method of providing multimedia service for different network terminals
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol
WO2007079652A1 (en) * 2006-01-11 2007-07-19 Huawei Technologies Co., Ltd. Method and system for interacting with media servers based on the sip protocol
CN101202640A (en) * 2007-10-17 2008-06-18 深圳市同洲电子股份有限公司 Method and device for stream media data playing control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798139A (en) * 2004-12-28 2006-07-05 上海贝尔阿尔卡特股份有限公司 Devices and method of providing multimedia service for different network terminals
WO2007079652A1 (en) * 2006-01-11 2007-07-19 Huawei Technologies Co., Ltd. Method and system for interacting with media servers based on the sip protocol
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol
CN101202640A (en) * 2007-10-17 2008-06-18 深圳市同洲电子股份有限公司 Method and device for stream media data playing control

Also Published As

Publication number Publication date
CN101202640A (en) 2008-06-18

Similar Documents

Publication Publication Date Title
CN101573943B (en) Media channel management
KR100848128B1 (en) Method of progressive streaming using a real-time streaming protocol
EP2225866B1 (en) Method and system for transmitting a multimedia stream
WO2009049509A1 (en) A stream media data playing control method and apparatus
US8326942B2 (en) IP unicast streaming service delivery
US20080301308A1 (en) System, method and apparatus for establishing interactive media session based on ip multimedia subsystem
EP2148505A1 (en) A method and a device for obtaining the media describing information of iptv service
US20110138022A1 (en) Fast Content Switching in a Communication System
WO2008038200A2 (en) Method and server for transferring a multimedia session from a first terminal to a second terminal
WO2009015611A1 (en) Method, system and apparatus for quick switching media source
EP2659641B1 (en) Methods and apparatuses for media streaming
US20090228939A1 (en) Time-shift tv service establishment method and time-shift tv media function entity
WO2009052650A1 (en) Method and terminal for forwarding an iptv program to an sip terminal
JP2002354032A (en) Device and method for receiving packets
US8356325B2 (en) System and method for transferring a session across domains and subscriptions
KR100802088B1 (en) Method and device for providing real-time VOD service
EP2273785B1 (en) Play controlling method, device and system
WO2010028601A1 (en) Method, system and equipment for transmitting media contents by means of files
WO2010057391A1 (en) Control method, equipment and system for playing stream media
US20110055883A1 (en) Method for active switching of content in an iptv-based playlist
WO2011137718A1 (en) Method, apparatus and system for controlling content reporting behaviors
WO2011069450A1 (en) Method, system and apparatus for media control in ip multimedia subsystem
WO2009024077A1 (en) A method and device for acquiring an iptv service parameter
WO2009012714A1 (en) A method and a device for controlling streaming media
WO2009056043A1 (en) Method, system and equipment for obtaining record bookmarks in iptv system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08839280

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08839280

Country of ref document: EP

Kind code of ref document: A1