[go: up one dir, main page]

CN101651665B - Method, device and system for controlling playing state detection of media resource - Google Patents

Method, device and system for controlling playing state detection of media resource Download PDF

Info

Publication number
CN101651665B
CN101651665B CN200810142468.9A CN200810142468A CN101651665B CN 101651665 B CN101651665 B CN 101651665B CN 200810142468 A CN200810142468 A CN 200810142468A CN 101651665 B CN101651665 B CN 101651665B
Authority
CN
China
Prior art keywords
media
event
media play
parameter
processing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200810142468.9A
Other languages
Chinese (zh)
Other versions
CN101651665A (en
Inventor
杨玮玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200810142468.9A priority Critical patent/CN101651665B/en
Priority to PCT/CN2009/071125 priority patent/WO2010017710A1/en
Publication of CN101651665A publication Critical patent/CN101651665A/en
Application granted granted Critical
Publication of CN101651665B publication Critical patent/CN101651665B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1043Gateway controllers, e.g. media gateway control protocol [MGCP] controllers
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明实施例公开了一种媒体资源播放状态检测的控制方法、装置及系统,该方法包括如下步骤:媒体处理设备根据预设的事件检测媒体播放状态;当检测到媒体播放状态变化时,根据所述预设的事件向媒体播放控制设备上报媒体播放状态发生的变化。本发明实施例中媒体处理设备可以根据预设的事件对媒体播放状态进行检测,并在媒体播放状态发生改变时及时上报给媒体播放控制设备,使媒体播放控制设备能够及时了解媒体播放状态,从而为及时对媒体播放状态的变化情况及时控制和响应成为可能。

Figure 200810142468

The embodiment of the present invention discloses a control method, device and system for detecting the playing status of media resources. The method includes the following steps: the media processing device detects the playing status of the media according to a preset event; The preset event reports the change of the media playing state to the media playing control device. In the embodiment of the present invention, the media processing device can detect the media playback status according to preset events, and report it to the media playback control device in time when the media playback status changes, so that the media playback control device can know the media playback status in time, thereby It becomes possible to timely control and respond to changes in media playback status in a timely manner.

Figure 200810142468

Description

一种实现媒体资源播放状态检测的控制方法、装置及系统A control method, device and system for realizing media resource playback state detection

技术领域 technical field

本发明涉及通信技术领域,尤其涉及一种实现媒体资源播放状态检测的控制的方法、装置及系统。  The present invention relates to the field of communication technology, in particular to a method, device and system for realizing the control of media resource playback state detection. the

背景技术Background technique

媒体网关控制器(Media Gateway Controller,MGC)和媒体网关(Media Gateway,MG)是业务与承载分离架构下的分组网络的两个关键构件。MGC负责业务控制功能,MG负责媒体承载功能,藉此实现业务控制平面和媒体承载平面的分离,从而充分共享网络资源,简化设备升级和业务扩展,降低开发和维护成本。  Media Gateway Controller (MGC) and Media Gateway (MG) are two key components of the packet network under the architecture of separation of service and bearer. The MGC is responsible for the service control function, and the MG is responsible for the media bearer function, thereby realizing the separation of the service control plane and the media bearer plane, thereby fully sharing network resources, simplifying equipment upgrades and service expansion, and reducing development and maintenance costs. the

在多媒体应用环境中,通过现有的RTSP播放包,MGC可以指示MG对指定的媒体文件(资源)进行播放,同时还可以指示媒体播放的速度、范围等信息,例如可以通过播放速度比例参数指示MG按照两倍或其它数值于常规速度的速度进行媒体的播放。  In the multimedia application environment, through the existing RTSP playback package, the MGC can instruct the MG to play the specified media file (resource), and at the same time, it can also indicate the speed and range of the media playback, for example, it can be indicated by the playback speed ratio parameter The MG plays the media at a speed twice or other values higher than the normal speed. the

但是发明人在实现现有技术的过程中发现现有技术至少存在如下问题:在媒体文件(资源)进行播放的过程中,媒体播放状态可能会发生变化,比如随着媒体文件的播放,媒体内容以及媒体对应的属性信息发生变化,例如在视频直播场景中,媒体的内容会随着时间的推移而发生变化,媒体可用范围信息等 都会随之而变;再例如如果MGC指示MG按照两倍于常规速度的相对速度进行播放时,随着时间推移,这样的速度可能无法执行,比如是已经追上当前的播放点,而后续的内容还不可访问。当媒体播放状态发生变化时,MGC需要及时获知媒体播放状态发生的变化,以进一步的指示MG完成后续的操作,但是目前的网关控制协议中,还没有有效的机制可以让MGC实时了解到媒体播放状态所发生的变化情况,这将导致无法及时对变化情况进行控制和响应。  However, in the process of implementing the prior art, the inventor found that the prior art has at least the following problems: in the process of playing the media file (resource), the media playback state may change, such as along with the playback of the media file, the media content And the attribute information corresponding to the media changes. For example, in the live video scene, the content of the media will change over time, and the information on the available range of the media will change accordingly; for example, if the MGC instructs the MG to follow the When playing at the relative speed of the regular speed, as time goes by, such a speed may not be able to be performed, for example, the current playback point has been caught up, and the subsequent content is still inaccessible. When the media playback state changes, the MGC needs to know the change in the media playback state in time to further instruct the MG to complete subsequent operations. However, in the current gateway control protocol, there is no effective mechanism for the MGC to know the media playback in real time. Changes in the state, which will lead to the inability to control and respond to the changes in a timely manner. the

发明内容Contents of the invention

本发明实施例的目的在于提供一种媒体资源播放状态检测的控制方法、装置及系统,以实现业务与承载分离架构下能够实现对媒体播放状态的及时了解,从而为及时对媒体播放状态的变化情况及时控制和响应提供可能。  The purpose of the embodiments of the present invention is to provide a control method, device and system for media resource playback status detection, so as to realize the timely understanding of the media playback status under the structure of separation of services and bearers, so as to timely understand the changes of the media playback status. It is possible to control and respond to the situation in a timely manner. the

为实现本发明实施例的目的,本发明实施例提供以下技术方案:  In order to achieve the purpose of the embodiments of the present invention, the embodiments of the present invention provide the following technical solutions:

提供一种控制媒体资源播放状态的方法,包括如下步骤:媒体处理设备根据预设的事件检测媒体播放状态;当检测到媒体播放状态变化时,根据所述预设的事件向媒体播放控制设备上报媒体播放状态发生的变化;其中,所述预设的事件由媒体播放控制设备向媒体处理设备下发;  A method for controlling the playing state of a media resource is provided, comprising the following steps: a media processing device detects a media playing state according to a preset event; when a change in the media playing state is detected, it reports to the media playing control device according to the preset event A change in the media playback state; wherein, the preset event is sent by the media playback control device to the media processing device;

其中,所述事件用于媒体处理设备向媒体播放控制设备上报媒体流播放速度比例的变化,所述事件预设时携带如下参数的一种或任意组合:  Wherein, the event is used for the media processing device to report the change of the media stream playback speed ratio to the media playback control device, and the event is preset to carry one or any combination of the following parameters:

播放动作改变参数,用于指示媒体处理设备在检测到媒体相对速度发生变 化后媒体流的播放行为,该播放行为包括改变为常规速度播放或者是停止播放;  The play action change parameter is used to indicate the play behavior of the media stream after the media processing device detects that the relative speed of the media has changed. The play behavior includes changing to normal speed play or stopping play;

更新相对速度比例参数,用以指示在媒体播放速度比例变化后使用的新的播放速度比例;  Update the relative speed ratio parameter to indicate the new playback speed ratio used after the media playback speed ratio changes;

允许比例改变参数,用以指示是否允许媒体处理设备自动修改媒体播放速度比例;  Allow ratio change parameter to indicate whether the media processing device is allowed to automatically modify the media playback speed ratio;

比例改变值参数,用以指示当允许自动修改媒体播放速度比例时,允许的修改值;  The scale change value parameter is used to indicate the allowed modification value when the media playback speed ratio is allowed to be automatically modified;

媒体资源标识,用于指示事件所适用的媒体资源实体;  Media resource identifier, used to indicate the media resource entity to which the event applies;

请求标识,用于指示事件所适用的播放请求。  Request ID indicating the playback request to which the event applies. the

提供一种媒体处理设备包括预置事件存储单元、事件检测单元及事件上报单元,该预置事件存储单元,用于存储媒体播放控制设备下发的事件,该事件用于向媒体播放控制设备上报媒体播放状态发生的变化;该事件检测单元,用于根据预置事件存储单元存储的事件检测媒体播放状态;该事件上报单元,用于在事件检测单元检测到媒体播放状态发生变化时,根据预置事件存储单元存储的事件向媒体播放控制设备上报媒体播放状态发生的变化;  Provided is a media processing device including a preset event storage unit, an event detection unit, and an event reporting unit, the preset event storage unit is used to store events sent by the media playback control device, and the event is used to report to the media playback control device A change in the media playing state; the event detection unit is used to detect the media playing state according to the event stored in the preset event storage unit; The event stored in the event storage unit reports the change of the media playback state to the media playback control device;

其中,所述预置事件存储单元存储的事件具体用于所述媒体处理设备向所述媒体播放控制设备上报媒体流播放速度比例的变化,所述预置事件存储单元 存储的事件携带如下参数的一种或任意组合:  Wherein, the event stored by the preset event storage unit is specifically used for the media processing device to report the change of the media stream playback speed ratio to the media playback control device, and the event stored by the preset event storage unit carries the following parameters One or any combination:

播放动作改变参数,用于指示媒体处理设备在检测到媒体相对速度发生变化后媒体流的播放行为,该播放行为包括改变为常规速度播放或者是停止播放;  The play action change parameter is used to indicate the play behavior of the media stream after the media processing device detects that the relative speed of the media has changed. The play behavior includes changing to normal speed play or stopping play;

更新相对速度比例参数,用以指示在媒体播放速度比例变化后使用的新的播放速度比例;  Update the relative speed ratio parameter to indicate the new playback speed ratio used after the media playback speed ratio changes;

允许比例改变参数,用以指示是否允许媒体处理设备自动修改媒体播放速度比例;  Allow ratio change parameter to indicate whether the media processing device is allowed to automatically modify the media playback speed ratio;

比例改变值参数,用以指示当允许自动修改媒体播放速度比例时,允许的修改值;  The scale change value parameter is used to indicate the allowed modification value when the media playback speed ratio is allowed to be automatically modified;

媒体资源标识,用于指示事件所适用的媒体资源实体;  Media resource identifier, used to indicate the media resource entity to which the event applies;

请求标识,用于指示事件所适用的播放请求。  Request ID indicating the playback request to which the event applies. the

提供一种媒体播放处理设备,包括第三接收单元,用于接收媒体处理设备上报的用于通报媒体播放状态发生的变化的事件;所述媒体播放状态发生变化的事件是所述媒体处理设备根据预设的事件检测媒体播放状态,并在检测到媒体播放状态变化时上报的;  A media playback processing device is provided, including a third receiving unit, configured to receive an event reported by the media processing device for notifying a change in the media playback state; The preset event detects the media playback status and reports when it detects a change in the media playback status;

其中,所述预设的事件由所述媒体播放控制设备向所述媒体处理设备下发;  Wherein, the preset event is sent by the media playback control device to the media processing device;

其中,所述预设的事件用于媒体处理设备向媒体播放控制设备上报媒体流播放速度比例的变化,所述预设的事件预设时携带如下参数的一种或任意组合:  Wherein, the preset event is used for the media processing device to report the change of the media stream playback speed ratio to the media playback control device, and the preset event carries one or any combination of the following parameters when preset:

播放动作改变参数,用于指示媒体处理设备在检测到媒体相对速度发生变化后媒体流的播放行为,该播放行为包括改变为常规速度播放或者是停止播放;  The play action change parameter is used to indicate the play behavior of the media stream after the media processing device detects that the relative speed of the media has changed. The play behavior includes changing to normal speed play or stopping play;

更新相对速度比例参数,用以指示在媒体播放速度比例变化后使用的新的播放速度比例;  Update the relative speed ratio parameter to indicate the new playback speed ratio used after the media playback speed ratio changes;

允许比例改变参数,用以指示是否允许媒体处理设备自动修改媒体播放速度比例;  Allow ratio change parameter to indicate whether the media processing device is allowed to automatically modify the media playback speed ratio;

比例改变值参数,用以指示当允许自动修改媒体播放速度比例时,允许的修改值;  The scale change value parameter is used to indicate the allowed modification value when the media playback speed ratio is allowed to be automatically modified;

媒体资源标识,用于指示事件所适用的媒体资源实体;  Media resource identifier, used to indicate the media resource entity to which the event applies;

请求标识,用于指示事件所适用的播放请求。  Request ID indicating the playback request to which the event applies. the

可见,在本发明实施例中,媒体处理设备可以根据预设的事件对媒体播放状态进行检测,并在媒体播放状态发生改变时及时上报给媒体播放控制设备,使媒体播放控制设备能够及时了解媒体播放状态,从而为及时对媒体播放状态的变化情况及时控制和响应成为可能。  It can be seen that, in the embodiment of the present invention, the media processing device can detect the media playback status according to preset events, and report to the media playback control device in time when the media playback status changes, so that the media playback control device can know the media playback status in time. Playing state, so that it is possible to control and respond to the change of media playing state in time. the

附图说明Description of drawings

图1为本发明实施例提供的一种媒体资源播放状态检测的控制方法的流程示意图;  Fig. 1 is a schematic flow diagram of a control method for media resource playback state detection provided by an embodiment of the present invention;

图2为本发明实施例提供的的另一种媒体资源播放状态检测和控制方法的流程流程示意图;  Fig. 2 is a schematic flow diagram of another media resource playback state detection and control method provided by the embodiment of the present invention;

图3为本发明实施例媒体处理设备的结构示意图;  Fig. 3 is a schematic structural diagram of a media processing device according to an embodiment of the present invention;

图4为本发明实施例提供的媒体播放控制设备的结构示意图。  Fig. 4 is a schematic structural diagram of a media playback control device provided by an embodiment of the present invention. the

具体实施方式Detailed ways

在一个实时的多媒体会话中,伴随着媒体流的播放,媒体资源的属性或状态可能会发生变化,例如媒体内容的中断、媒体播放范围的变化等。对于媒体资源播放状态的控制主要是基于对媒体流播放过程中资源变化情况的掌握和应对,包括状态变化事件的获知,以及对应资源策略的修订等。为了实现MGC对MG上媒体资源会话中媒体流播放状态的实时控制,需要MG监测媒体流播放状态,并在监测到媒体流播放状态发生改变时向MGC上报。因此本发明实施例需要对(媒体)网关控制协议进行扩展。  In a real-time multimedia session, along with the playback of media streams, attributes or states of media resources may change, such as interruption of media content, change of media playback range, and so on. The control of the playback state of media resources is mainly based on the grasp and response to resource changes during the media stream playback process, including the knowledge of state change events and the revision of corresponding resource policies. In order to realize the real-time control of the media stream playback status in the media resource session on the MG by the MGC, the MG needs to monitor the media stream playback status and report to the MGC when a change in the media stream playback status is detected. Therefore, the embodiment of the present invention needs to extend the (media) gateway control protocol. the

(媒体)网关控制协议中的事件(Event)描述符用于MGC控制和指示MG检测并上报MG上所发生的特定事件,包括传真音、摘机/挂机和承载资源变化等。事件描述符包含RequestID(请求标识)以及要求MG检测和报告的一组事件,通过RequestID可以将事件请求命令和事件发生通报(Notify)命令关联起来。当处于激活状态的事件描述符中所包含的事件发生时,缺省地,MG向MGC发送通报命令进行上报。(媒体)网关控制协议是MG和MGC之间通信的主要协议,目前应用较为广泛的有H.248/MeGaCo和MGCP两种协议,本发明实施例以H.248协议为例进行说明。  The event (Event) descriptor in the (media) gateway control protocol is used to control the MGC and instruct the MG to detect and report specific events that occur on the MG, including fax tones, off-hook/hang-up, and changes in bearer resources. The event descriptor includes a RequestID (request identifier) and a group of events required to be detected and reported by the MG, and the event request command and the event occurrence notification (Notify) command can be associated through the RequestID. When an event contained in the event descriptor in the active state occurs, by default, the MG sends a notification command to the MGC for reporting. The (media) gateway control protocol is the main protocol for communication between the MG and the MGC. Currently, H.248/MeGaCo and MGCP are widely used. The embodiment of the present invention uses the H.248 protocol as an example for illustration. the

本发明实施例在H.248协议中定义一个事件,用以MG向MGC通报会话中媒体播放状态发生的变化。该事件的检测和上报需要对MG进行设置,设置的方法包括下发或预先配置。事件可以设置到MG的ROOT终端上:表示 对整个MG上所播放的媒体流检测媒体流结束事件;也可以是MG上某个特定的终端上:表示对该终端上所播放的媒体流进行检测;还可以是MG上某个特定的流:表示该事件的检测仅适用于特指的流。例如,MGC将事件下发给MG的过程为:MGC可以通过Modify请求消息向MG设置媒体流结束事件;MG收到该Modify请求消息后向MGC发送Modify回复消息该。  The embodiment of the present invention defines an event in the H.248 protocol, which is used for the MG to notify the MGC of the change of the media playing state in the session. The detection and reporting of this event requires the setting of the MG, and the setting methods include delivery or pre-configuration. The event can be set on the ROOT terminal of the MG: it means to detect the end of the media stream event on the media stream played on the entire MG; it can also be set on a specific terminal on the MG: it means to detect the media stream played on the terminal ; It can also be a specific flow on the MG: it means that the detection of this event is only applicable to the specified flow. For example, the process for the MGC to deliver the event to the MG is as follows: the MGC can set a media stream end event to the MG through a Modify request message; after receiving the Modify request message, the MG sends a Modify reply message to the MGC. the

因此采用本发明实施例实现媒体资源播放状态检测的方法包括:  Therefore adopt the embodiment of the present invention to realize the method for media resource playing state detection to comprise:

S100、MGC指示MG执行媒体播放;  S100. The MGC instructs the MG to perform media playback;

可选的,MGC指示MG执行媒体播放时,可以向MG设置媒体播放参数,该MGC向MG设置的媒体播放参数包括下面信息的一种或任意组合:媒体属性参数,包括随机访问性、媒体保留策略、内容可修改性等的媒体属性信息;寻址行为参数,指示媒体播放起始位置的寻址定位方式;媒体范围参数,指示媒体可供播放的内容范围信息。  Optionally, when the MGC instructs the MG to perform media playback, it can set media playback parameters to the MG. The media playback parameters set by the MGC to the MG include one or any combination of the following information: media attribute parameters, including random access, media retention Media attribute information such as policy and content modifiability; addressing behavior parameters, indicating the addressing and positioning method of the starting position of media playback; media range parameters, indicating the content range information that the media can play. the

S101、MG根据MGC的指示播放相应的媒体,并根据预设的事件对媒体播放状态进行检测;  S101. The MG plays the corresponding media according to the instruction of the MGC, and detects the media playback state according to the preset event;

S102、MG检测到媒体播放状态发生变化;  S102. The MG detects that the media playback state changes;

S103、MG根据预设的事件向MGC上报媒体播放状态发生的变化。  S103. The MG reports the change of the media playing state to the MGC according to a preset event. the

该事件的预设可以通过媒体播放控制设备向媒体处理设备下发实现或通过预先在媒体处理设备上配置实现。该事件可以用于MG向MGC上报媒体 流的结束、媒体流属性或媒体范围的变化意愿和媒体流播放相对速度比例的变化三种媒体播放状态变化中的一种或几种,以下通过具体的实施例进行详细的说明。  Presetting the event can be implemented by sending the media playback control device to the media processing device or by configuring it on the media processing device in advance. This event can be used by the MG to report to the MGC one or more of the three media playback state changes, the end of the media stream, the willingness to change the media stream attribute or media range, and the change in the relative speed ratio of the media stream. Examples will be described in detail. the

实施例一  Embodiment one

若该事件用于MG向MGC上报媒体流的结束,即媒体播放已经完成或者接近完成,则MG可以通过携带的事件参数指示媒体流终止的位置,该位置可能已经播放到,或者是在不久的将来即将达到。例如,将该事件命名为“媒体流结束(End of Stream,缩写为eos)”事件。该事件可以归属于现有或新的包中,例如包含在H.248.65中的RTSP播放包(RTSP Play Package,包标识为rtspp)中,或定义一个新包,命名为播放状态控制包(Play State Control Package,缩写为pscp)。  If this event is used for the MG to report the end of the media stream to the MGC, that is, the media playback has been completed or is close to completion, then the MG can indicate the position where the media stream terminates through the carried event parameter, which may have already been played, or will be played in the near future. will be reached in the future. For example, name the event an "End of Stream (eos)" event. This event can be attributed to an existing or new package, for example included in the RTSP Play Package (RTSP Play Package, package identifier is rtspp) in H.248.65, or define a new package named Play State Control Package (Play State Control Package, abbreviated as pscp). the

媒体流结束事件的检测与上报,可能是基于媒体播放的正常完成,也可能是由于某些原因导致的播放无法完成,还可能是播放结束前的提醒。MGC根据MG上报的媒体流结束位置,与当前播放的位置进行对比,可以获知媒体流是否已经结束或即将结束。  The detection and reporting of the media stream end event may be based on the normal completion of the media playback, or the failure to complete the playback due to some reasons, or a reminder before the end of the playback. The MGC compares the end position of the media stream reported by the MG with the current playback position, and can know whether the media stream has ended or is about to end. the

该事件的下发或设置可以不带参数,也可以携带如下参数:  The event can be sent or set without parameters, or with the following parameters:

时间(Time,缩写为time)参数,用以指示MG上报媒体流播放结束事 件的时间要求,例如参数取值为5s,则表示MGC希望MG在媒体流播放结束前5秒钟时上报媒体流播放结束事件。如果携带该参数,则表示MGC希望在媒体播放结束前得到提醒通知。  The time (Time, abbreviated as time) parameter is used to indicate the time requirement for the MG to report the end event of the media stream playback. For example, if the parameter value is 5s, it means that the MGC expects the MG to report the media stream 5 seconds before the end of the media stream playback Playback event. If this parameter is carried, it means that the MGC wants to be reminded before the end of the media playing. the

媒体流结束事件检测与上报的时机,可能是基于媒体播放的正常完成,也可能是是由于某些错误的发生导致播放请求无法完成,还可能是播放结束前的提醒。当MG检测到媒体流结束事件时,MG使用通报(Notify)命令向MGC上报。  The timing of media stream end event detection and reporting may be based on the normal completion of media playback, or the inability to complete the playback request due to some errors, or a reminder before the playback ends. When the MG detects a media stream end event, the MG uses the Notify command to report to the MGC. the

在媒体流结束事件上报的同时,还可以附带一些参数,以表示媒体资源播放状态的进一步信息,供MGC进行相应的决策。附带的参数包括如下参数的一种或任意组合:  When the media stream end event is reported, some parameters may also be attached to indicate further information about the playback state of the media resource for the MGC to make corresponding decisions. The attached parameters include one or any combination of the following parameters:

结束范围(End Range,缩写为er)参数,用以指示媒体流播放结束的位置信息。该参数的类型定义为字符串(String)。该参数可以包含一个范围取值列表,其中每一个取值为一个区间,包括第一取值到第二取值之间的所有有效取值。缺省为半开放区间,包括第一取值,但不包括第二取值。  The end range (End Range, abbreviated as er) parameter is used to indicate the position information at which the media stream playback ends. The type definition of this parameter is a string (String). This parameter may contain a list of range values, where each value is an interval, including all valid values between the first value and the second value. The default is a semi-open interval, including the first value, but not including the second value. the

对应上述范围参数,还需包括一个范围格式(Range Format,缩写为rf)参数,表示结束范围参数取值的格式,该参数可以是枚举或字符串类型。其取值包括NPT(Normal Play Time)、SMPTE(Society of Motion Picture andTelevision Engineers)、SMPTE-30、SMPTE-25、UTC(Universal Time Code)、 Frame、Byte中的任意格式,缺省为NPT格式。如果在事件上报时,也可以不定义专门的范围格式参数,即结束范围参数采用MGC指示MG媒体播放时所指定的范围格式值。  Corresponding to the above range parameters, a range format (Range Format, abbreviated as rf) parameter is also required to indicate the format of the value of the end range parameter. This parameter can be an enumeration or a string type. Its value includes any format in NPT (Normal Play Time), SMPTE (Society of Motion Picture and Television Engineers), SMPTE-30, SMPTE-25, UTC (Universal Time Code), Frame, Byte, and the default is NPT format. If the event is reported, the special range format parameter may not be defined, that is, the end range parameter adopts the range format value specified when the MGC instructs the MG to play the media. the

例如,上述事件参数取值为“range=-120;rf=NPT”时,表示媒体流到120秒结束。MGC在接收到上述参数信息后,通过和媒体当前播放位置的对比,获知当前的播放状态。同样取前面的例子,如果当前播放位置的NPT值为115,则由此可以得知该媒体流将在5秒后结束。  For example, when the value of the above event parameter is "range=-120; rf=NPT", it means that the media stream ends at 120 seconds. After receiving the above parameter information, the MGC learns the current playing state by comparing it with the current playing position of the media. Taking the previous example as well, if the NPT value of the current playback position is 115, it can be known that the media stream will end in 5 seconds. the

在使用RTP协议封装媒体进行传输时,事件的上报还可以携带RTP相关信息,例如分别定义三个事件参数,命名为“同步源(Synchronization Source,缩写为ssrc)”、“分组序列号(Packet Sequence Number,缩写为sn)”、“RTP时间戳(RTP Timestamp,缩写为ts)”。其中,同步源参数用于标识后两个参数所应用的同步源信息,分组序列号参数用于指示最后一个RTP报文(Packet)的序列号,时间戳用于指示对应于该媒体流结束时刻的RTP时间戳。  When the RTP protocol is used to encapsulate the media for transmission, the event report can also carry RTP-related information, such as defining three event parameters respectively, named "Synchronization Source (Synchronization Source, abbreviated as ssrc)", "Packet Sequence Number (Packet Sequence) Number, abbreviated as sn)", "RTP Timestamp (abbreviated as ts)". Among them, the synchronization source parameter is used to identify the synchronization source information applied by the latter two parameters, the packet sequence number parameter is used to indicate the sequence number of the last RTP message (Packet), and the timestamp is used to indicate the end time corresponding to the media stream The RTP timestamp. the

事件上报时,还可以携带媒体资源标识参数(Media Resource Identifier,缩写为mri),用于指示上报事件所关联的媒体资源实体;以及请求标识(Request ID,缩写为rid),用于指示上报事件所对应的播放请求。当MG上有多个媒体资源在播放或存在多个播放请求时,上述参数用于标识检测事件所对应的实体。 When the event is reported, it can also carry a media resource identifier parameter (Media Resource Identifier, abbreviated as mri), used to indicate the media resource entity associated with the reported event; and a request ID (Request ID, abbreviated as rid), used to indicate the reported event The corresponding playback request. When multiple media resources are playing or there are multiple playback requests on the MG, the above parameters are used to identify the entity corresponding to the detection event.

在上述方法中,除以事件参数的方式定义媒体流结束信息外,还可以以属性或信号参数的形式来定义,来达到同样的目的。例如,以结束范围参数为例,在H.248协议中定义一个属性来指示媒体流播放结束的位置信息。属性的类型可以采用字符串。该属性可以应用于终端(Termination)或终端上的流(Stream)。若应用于终端,其在终端状态(TerminationState)描述符中定义。若应用于流,其在本地控制(LocalControl)描述符中定义。该属性为可读可写,即MGC可以向MG设置该属性以指示媒体流播放结束的位置,MGC也可以向MG获取该属性以了解媒体流播放结束的位置信息。  In the above method, in addition to defining the end information of the media stream in the form of event parameters, it can also be defined in the form of attributes or signal parameters to achieve the same purpose. For example, taking the end range parameter as an example, an attribute is defined in the H.248 protocol to indicate the position information at which media stream playback ends. The type of the attribute can take a string. This property can be applied to a terminal (Termination) or a stream (Stream) on a terminal. If applied to a terminal, it is defined in the TerminationState descriptor. If applied to a stream, it is defined in the LocalControl descriptor. This attribute is readable and writable, that is, the MGC can set this attribute to the MG to indicate the end position of the media stream playback, and the MGC can also obtain this attribute from the MG to know the end position information of the media stream playback. the

此外,结束范围和范围格式两个参数也可以合并为一个参数,取值类型为字符串,例如er=“NPT=-120”。  In addition, the two parameters of the end range and the range format can also be combined into one parameter, and the value type is a character string, for example, er="NPT=-120". the

本实施例通过在H.248协议中定义一个媒体流结束事件,使得MG可以根据预设的事件在检测媒体流结束或即将结束时,向MGC上报媒体流结束事件,使得MGC能够及时获知媒体流的播放状态,从而对变化情况进行控制和响应。  In this embodiment, by defining a media stream end event in the H.248 protocol, the MG can report the media stream end event to the MGC when detecting the end of the media stream or is about to end according to a preset event, so that the MGC can know the media stream in time The playback state of the system, so as to control and respond to changing conditions. the

实施例二  Example two

若该事件用以MG向MGC通报会话中媒体流属性或媒体范围的变化意愿,可以通过携带的事件参数指示MG希望的媒体流属性的变化情况,以及媒体流的可用性等。由于MGC和MG之间的主从结构,MG上媒体的属性变化 需要经由MGC的指示命令,因此媒体播放中媒体属性的变化请求需要及时上报MGC获准。例如,将该事件命名为“媒体属性变化(Media Property Change,缩写为mpc)”事件。该事件可以归属于现有或新的包中,例如包含在H.248.65中的RTSP播放包(RTSP Play Package,包标识为rtspp)中,或定义一个新包,命名为播放状态控制包(Play State Control Package,缩写为pscp)。  If the event is used for the MG to notify the MGC of the willingness to change the media stream attribute or media range in the session, the event parameter carried can indicate the change of the media stream attribute expected by the MG and the availability of the media stream. Due to the master-slave structure between MGC and MG, the change of media attributes on MG needs to be instructed by MGC, so the request for changing media attributes during media playback needs to be reported to MGC in time for approval. For example, name the event a "Media Property Change (abbreviated as mpc)" event. This event can be attributed to an existing or new package, for example included in the RTSP Play Package (RTSP Play Package, package identifier is rtspp) in H.248.65, or define a new package named Play State Control Package (Play State Control Package, abbreviated as pscp). the

该事件的下发可以不带参数,也可以携带如下参数:  The event can be delivered without parameters or with the following parameters:

时间周期(Time Interval,缩写为ti)参数,用以指示MG上报媒体属性变化事件的周期。例如参数取值为300s,则表示MGC希望MG每隔6分钟上报一次媒体属性变化事件。该参数主要应用于随时间推进而变化的媒体播放中。该参数的类型可以定义为整数型,单位为秒。  A time interval (Time Interval, abbreviated as ti) parameter is used to indicate a period for the MG to report a media attribute change event. For example, if the value of the parameter is 300s, it means that the MGC expects the MG to report a media attribute change event every 6 minutes. This parameter is mainly used in media playback that changes over time. The type of this parameter can be defined as an integer, and the unit is seconds. the

媒体属性变化事件的上报,可以是周期性的,例如是上述的每6分钟上报一次,也可以是条件触发性的,例如某属性希望发生变化时。  The reporting of media attribute change events may be periodic, such as the above-mentioned report every 6 minutes, or condition-triggered, such as when a certain attribute is expected to change. the

在媒体流属性变化事件上报的同时,可以携带如下参数的一种或任意组合,以表示媒体资源播放状态的进一步信息,供MGC进行相应的决策:  When the media stream attribute change event is reported, one or any combination of the following parameters can be carried to indicate further information on the playback status of the media resource for the MGC to make corresponding decisions:

时间戳(timestamp)参数,用以表示媒体属性变化请求的时间。  The timestamp (timestamp) parameter is used to indicate the time of the media attribute change request. the

范围(Range,缩写为range)参数和/或范围格式(Range Format,缩写为rf)参数,用以指示媒体流当前播放位置和剩余播放范围信息。参数的类型及取值同前面参数定义。(本申请文件中“和/或”中的“/”表示选择关系) A range (Range, abbreviated as range) parameter and/or a range format (Range Format, abbreviated as rf) parameter is used to indicate the current playback position of the media stream and the remaining playback range information. The type and value of the parameters are the same as the previous parameter definitions. ("/" in "and/or" in this application document indicates a selection relationship)

媒体范围(Media Range,缩写为mr)参数和/或媒体范围格式(Media RangeFormat,缩写为mrf)参数,用以指示MG请求改变的媒体流可供播放的范围信息。参数的类型及取值同前面参数定义。  The Media Range (abbreviated as mr) parameter and/or the media range format (Media RangeFormat, abbreviated as mrf) parameter are used to indicate the playable range information of the media stream requested by the MG. The type and value of the parameters are the same as the previous parameter definitions. the

例如,上述事件参数取值为“mrange=0-120;mrf=NPT;range=108.25-;rf=NPT”时,表示媒体流的可用播放范围从0秒到120秒结束,当前播放位置为108.25秒,剩余播放区间为108.25到结束为止。  For example, when the value of the above event parameter is "mrange=0-120; mrf=NPT; range=108.25-; rf=NPT", it means that the available playback range of the media stream is from 0 seconds to the end of 120 seconds, and the current playback position is 108.25 seconds, and the remaining playback interval is 108.25 to the end. the

媒体属性(Media Properties,缩写为mp)参数,用以指示MG希望改变的媒体属性信息,其中包含随即访问性、内容保留策略、内容修改策略等信息。参数的类型可以定义为字符串型。此外,还可以将该参数所包含的信息拆分为以下几个参数,分别表示MG对应希望改变的属性信息。  The media properties (Media Properties, abbreviated as mp) parameter is used to indicate the media property information that the MG wishes to change, including information such as random accessibility, content retention policy, and content modification policy. The type of the parameter can be defined as string type. In addition, the information contained in the parameter may also be split into the following parameters, which respectively represent the attribute information that the MG corresponds to and wants to change. the

随机访问(Random Access,缩写为ra)参数,用以指示媒体流的播放位置是否可以在媒体持续时段内任意移动。支持随机访问,用户可以快进或后退以观看前面或后面的内容,或者任意拖动媒体的播放位置。该参数的类型可以设置为枚举型,取值包括:随机访问(Random Access,缩写为RA),表示媒体流的播放位置可以任意拖动查找,当然播放点的选取要受限于不同的编码格式;源点播放(Return to Start,缩写为RS),表示所述内容只允许从起点处开始播放;禁止拖动(No Seeking,缩写为NS),表示媒体内容不允许拖动。参 数类型还可以是字符串型,随机访问的特性由于依赖于编码格式,所以一些特定的点可能无法访问,这样请求访问点与实际访问点可能存在一定偏差,可以定义一个数值来表示随机访问点之间的最大距离,例如ra的取值为”RA=5”,表示随机访问点之间的最大距离为5秒钟。  The random access (Random Access, abbreviated as ra) parameter is used to indicate whether the playback position of the media stream can be moved arbitrarily within the duration of the media. Support random access, users can fast-forward or rewind to watch the previous or later content, or drag the playback position of the media arbitrarily. The type of this parameter can be set as an enumeration type, and the values include: Random Access (abbreviated as RA), which means that the playback position of the media stream can be dragged and searched arbitrarily, of course, the selection of the playback point is limited by different encodings format; source point playback (Return to Start, abbreviated as RS), indicating that the content is only allowed to start playing from the starting point; prohibiting dragging (No Seeking, abbreviated as NS), indicating that the media content does not allow dragging. The parameter type can also be a string type. Because the characteristics of random access depend on the encoding format, some specific points may not be accessible, so there may be a certain deviation between the requested access point and the actual access point. A value can be defined to represent random access The maximum distance between points, for example, the value of ra is "RA=5", which means that the maximum distance between random access points is 5 seconds. the

保留策略(Retention Policy,缩写为rp)参数,用以指示媒体内容被保持的状态。其取值包括:无限制(Unlimited,缩写为un),媒体内容在整个会话期间都会被保留而不被删除;时间限制(Time Limited,缩写为t1),媒体内容会被至少保留到指定时间而不被删除,在指定时间之后该内容可能可用,也可能被删除而不可用;期限限制(Duration Limited,缩写为d1),媒体内容的每个单元只被保留指定的某段持续时间。参数类型可以是字符串型,例如rp的取值为“d1=5s”,表示媒体内容单元的持续时间是5秒钟。  A retention policy (retention policy, abbreviated as rp) parameter is used to indicate the status of the media content being retained. Its value includes: unlimited (Unlimited, abbreviated as un), the media content will be retained and not deleted during the entire session; time limited (Time Limited, abbreviated as t1), the media content will be retained at least until the specified time without Not to be deleted, the content may be available after a specified time, or may be deleted and unavailable; Duration Limited (abbreviated as d1), each unit of media content is only retained for a specified period of time. The parameter type may be a string type, for example, the value of rp is "d1=5s", which means that the duration of the media content unit is 5 seconds. the

内容修改(Content Modifications,缩写为cm)参数,用以指示媒体内容是否允许发生变化。其取值包括:不可改变(Unmutable,缩写为un),媒体内容不会改变;动态变化(Dynamic,缩写为dy),媒体内容会基于外界的方法或触发机制(例如播放列表的变化)而发生变化,但在两次明确的更新之间媒体内容不改变;时间演进(Time Progress),媒体内容随着时间演进而变化,例如在电视直播时,内容随着时间而不断更新,如果内容在获取后被保留,则随着时间的累加,播放过的内容都可以被再重放。该参数的类型可以设置为枚 举型,还可以是字符串型。  A content modification (Content Modifications, abbreviated as cm) parameter is used to indicate whether the media content is allowed to change. Its values include: Unmutable (abbreviated as un), the media content will not change; dynamic change (Dynamic, abbreviated as dy), the media content will occur based on external methods or trigger mechanisms (such as changes in playlists) Changes, but the media content does not change between two explicit updates; time evolution (Time Progress), the media content changes over time, for example, during live TV, the content is constantly updated over time, if the content is acquired After being retained, the played content can be replayed with the accumulation of time. The type of this parameter can be set as an enumeration type or a string type. the

事件上报时,还可以携带媒体资源标识参数(Media Resource Identifier,缩写为mri),用于指示上报事件所关联的媒体资源实体;以及请求标识(Request ID,缩写为rid),用于指示上报事件所对应的播放请求。当MG上有多个媒体资源在播放或存在多个播放请求时,上述参数用于标识检测事件所对应的实体。  When the event is reported, it can also carry a media resource identifier parameter (Media Resource Identifier, abbreviated as mri), used to indicate the media resource entity associated with the reported event; and a request ID (Request ID, abbreviated as rid), used to indicate the reported event The corresponding playback request. When multiple media resources are playing or there are multiple playback requests on the MG, the above parameters are used to identify the entity corresponding to the detection event. the

在上述方法中,除以事件参数的方式定义媒体流属性信息外,还可以以属性或信号参数的形式来定义,来达到同样的目的。  In the above method, in addition to defining the media stream attribute information in the form of event parameters, it can also be defined in the form of attributes or signal parameters to achieve the same purpose. the

本实施例通过在H.248协议中定义一个媒体属性变化事件,使得MG可以根据预设的事件在检测到媒体属性变化意愿时,向MGC上报媒体属性变化事件,可以通过携带的参数指示MG请求的媒体流属性变化情况,以及媒体流的可用性等,使得MGC能够及时获知媒体流的播放状态,从而对变化请求进行控制和响应。进一步,MGC根据MG上报媒体流属性变化时携带的参数,制定媒体属性的更新指示;通过发起一个新的媒体播放请求,其中携带授权的媒体属性信息,来指示MG对应修改相关媒体属性参数。  In this embodiment, a media attribute change event is defined in the H.248 protocol, so that the MG can report the media attribute change event to the MGC when the media attribute change will is detected according to the preset event, and the MG request can be indicated through the carried parameters. Changes of media stream attributes and the availability of media streams enable the MGC to know the playback status of media streams in a timely manner, so as to control and respond to change requests. Further, the MGC formulates media attribute update instructions according to the parameters carried when the MG reports media stream attribute changes; by initiating a new media playback request, which carries authorized media attribute information, instructs the MG to modify relevant media attribute parameters accordingly. the

实施例三  Embodiment three

若该事件用以MG向MGC通报会话中媒体播放相对速度的变化,可以将该事 件命名为“媒体播放速度比例变化(Media Play Scale Change,缩写为mpsc)”事件。该事件可以归属于现有或新的包中,例如包含在H.248.65中的RTSP播放包(RTSP Play Package,包标识为rtspp)中,或定义一个新包,命名为播放状态控制包(Play State Control Package,缩写为pscp)。  If the event is used for the MG to notify the MGC of the change in the relative speed of media playback in the session, the event can be named "Media Play Scale Change (Media Play Scale Change, abbreviated as mpsc)" event. This event can be attributed to an existing or new package, for example included in the RTSP Play Package (RTSP Play Package, package identifier is rtspp) in H.248.65, or define a new package named Play State Control Package (Play State Control Package, abbreviated as pscp). the

对于播放内容随时间变化而不断更新的媒体(如在线直播),当MGC向MG下发的媒体播放速度比例(即播放速度相对于常规速度的比例)大于1时,随着媒体的播放,播放点已经追上了当前媒体可播放的最前端,这样大于1的相对速度已经无法执行,而只能使用小于或等于常规速度的播放速度进行播放。后向的播放情况也类似,当MGC设定的媒体播放速度小于常规速度时,随着时间的推移,某段时间之前播放过的媒体内容可能已经无效进而无法播放,小于常规速度的播放速度可能已经无法继续。因此在这种情况下,MG通过媒体播放速度比例变化事件向MGC通报该变化。与此同时,MGC在设置该事件时,可以进一步指示MG在检测到播放速度变化时的下一步动作,例如是停止播放该媒体内容,或者是按照常规速度播放该媒体内容。具体当上述事件发生时,MGC对MG的控制方案可以有以下几种:  For the media whose playback content changes with time (such as online live broadcast), when the media playback speed ratio issued by the MGC to the MG (that is, the ratio of the playback speed to the normal speed) is greater than 1, as the media is played, the playback The point has caught up with the front end of the current media that can be played, so the relative speed greater than 1 can no longer be executed, but can only be played at a playback speed that is less than or equal to the normal speed. The situation of backward playback is also similar. When the media playback speed set by the MGC is lower than the normal speed, as time goes by, the media content played before a certain period of time may become invalid and cannot be played. The playback speed lower than the normal speed may It is no longer possible to continue. Therefore, in this case, the MG notifies the MGC of the change through the media playback speed proportional change event. At the same time, when the MGC sets the event, it can further instruct the MG to take the next action when detecting the change of the playback speed, for example, stop playing the media content, or play the media content at a normal speed. Specifically, when the above events occur, the MGC can control the MG in the following ways:

1、通过扩展事件参数,MGC指示MG如何应对比例变化事件。在该事件的下发同时可以携带如下参数:  1. By expanding the event parameters, the MGC instructs the MG how to deal with the proportional change event. The following parameters can be carried while sending the event:

播放动作改变(Changed Playback Behavior,缩写为cpb)参数,用以指示 MG在媒体相对速度发生变化后媒体流的播放行为,包括改变为常规速度播放或者是停止播放。该参数的类型可以设置为布尔型,取值包括:开(ON),代表回到常规速度,即采用常规速度进行媒体流的播放;关(OFF),代表停止播放,即停止媒体流的播放。缺省值为“ON”。此外,还可以定义其它的取值,例如MGC可以指示MG按照其它速度进行播放等,如果扩展其它取值,则需改变参数的类型。  The Changed Playback Behavior (cpb for short) parameter is used to instruct the MG to play the media stream after the relative speed of the media changes, including changing to normal speed or stopping the playback. The type of this parameter can be set to Boolean, and its values include: ON (ON), which means to return to the normal speed, that is, to play the media stream at the normal speed; OFF (OFF), which means to stop the playback, that is, to stop the playback of the media stream . The default value is "ON". In addition, other values can also be defined, for example, the MGC can instruct the MG to play at other speeds, etc. If other values are expanded, the parameter type needs to be changed. the

2、另一种替代的方法是,定义一个事件参数:更新相对速度比例(UpdateScale,缩写为us),指示在媒体播放速度比例变化后使用的新的播放速度比例。该参数的类型可以定义为数值型(Integer)或字符串型(String)。取值为“0”表示停止播放媒体;取值为“1”表示按照常规速度进行媒体播放;其它取值表示对应的播放速度比例。  2. Another alternative method is to define an event parameter: Update Relative Speed Scale (UpdateScale, abbreviated as us), which indicates the new play speed scale used after the media play speed scale changes. The type of this parameter can be defined as numeric (Integer) or string (String). A value of "0" means to stop playing the media; a value of "1" means to play the media at a normal speed; other values indicate the corresponding playback speed ratio. the

3、通过定义一个参数,允许比例改变(Enable Scale Change,缩写为esc),表示是否允许MG自动修改媒体播放速度比例。该参数类型为布尔型,取值包括:ON,表示允许MG自动修改媒体播放速度比例;OFF,表示不允许MG自动修改媒体播放速度比例。在此基础上还可以再定义一个参数,比例改变值(Changed Scale Value,缩写为csv),用以指示当允许自动修改媒体播放速度比例时,允许的修改值。该参数为字符串型;缺省值为l。如果没有比例改变值参数,则当MG使能自动修改功能时,MG可以自主决定要改变的播放速度 比例。  3. By defining a parameter, Enable Scale Change (abbreviated as esc), indicates whether to allow MG to automatically modify the media playback speed ratio. The parameter type is Boolean, and its values include: ON, which means that the MG is allowed to automatically modify the media playback speed ratio; OFF, which means that the MG is not allowed to automatically modify the media playback speed ratio. On this basis, another parameter can be defined, Changed Scale Value (Changed Scale Value, abbreviated as csv), which is used to indicate the allowed modification value when the automatic modification of the media playback speed ratio is allowed. This parameter is a string; the default value is l. If there is no ratio change value parameter, then when the MG enables the automatic modification function, the MG can independently determine the playback speed ratio to be changed. the

这种方案可以通过使能MG自动修改比例参数,来应对比例改变事件的发生,同时也符合MGC对MG的完全控制。此外,比例参数的及时修改,也可以保证媒体播放的连贯性。  This solution can respond to the occurrence of a ratio change event by enabling the MG to automatically modify the ratio parameter, and also conforms to the complete control of the MG by the MGC. In addition, the timely modification of the ratio parameters can also ensure the continuity of media playback. the

在媒体播放速度比例变化事件上报的同时,定义一个事件参数,用以携带改变的播放速度比例信息,例如命名为比例改变(Scale Change,缩写为sc)。当MGC下发的esc参数取值为’ON’时,MG可以自主修改比例值,则sc参数携带MG改变后的比例值,即新生效的播放速度比例;当MGC下发的esc参数取值为’OFF’时,MG不可以自主修改比例值,则sc参数携带MG希望改变的比例值,但需要MGC进一步的授权才可生效。  When the media playback speed ratio change event is reported, an event parameter is defined to carry the changed playback speed ratio information, for example named as Scale Change (Scale Change, abbreviated as sc). When the value of the esc parameter delivered by the MGC is 'ON', the MG can modify the ratio value independently, and the sc parameter carries the changed ratio value of the MG, that is, the newly effective playback speed ratio; when the value of the esc parameter delivered by the MGC is When it is 'OFF', the MG cannot modify the ratio value independently, and the sc parameter carries the ratio value that the MG wants to change, but further authorization by the MGC is required to take effect. the

4、MG在检测到媒体播放速度比例变化意愿后,将对应变化意愿上报给MGC,而MG必须等待MGC进一步的指示才可以修改对应比例参数。MGC在收到上述事件通报后,可以通过新的媒体播放请求,要求MG修改对应的播放速度比例参数。  4. After the MG detects the willingness to change the media playback speed ratio, it reports the corresponding change willingness to the MGC, and the MG must wait for further instructions from the MGC before modifying the corresponding ratio parameter. After receiving the above event notification, the MGC may request the MG to modify the corresponding playback speed ratio parameter through a new media playback request. the

事件下发的时时候,还可以携带媒体资源标识参数(Media ResourceIdentifier,缩写为mri),用于指示事件及其携带的事件参数所适用的媒体资源实体;以及请求标识(Request ID,缩写为rid),用于指示事件及其携带的事件参数所适用的播放请求。当MG上有多个媒体资源在播放或存在多个播放请 求时,上述参数用于标识事件所适用的实体。上述两个事件参数同样也可以应用前面所述的媒体流结束事件或媒体属性变化事件中。比如的在前述的几个实施例中下发事件时也可以携带该媒体资源标识参数和请求标识。  When the event is delivered, it can also carry a media resource identifier parameter (Media ResourceIdentifier, abbreviated as mri), which is used to indicate the media resource entity to which the event and its carried event parameters apply; and a request identifier (Request ID, abbreviated as rid ), used to indicate the playback request to which the event and the event parameters it carries are applicable. When multiple media resources are playing or there are multiple playback requests on the MG, the above parameters are used to identify the entity to which the event applies. The above two event parameters can also be applied to the aforementioned media stream end event or media attribute change event. For example, the media resource identification parameter and the request identification may also be carried when the event is delivered in the preceding several embodiments. the

在媒体播放速度比例变化事件上报的同时,还可以携带如下参数的一种或任意组合,以表示媒体资源播放状态的进一步信息,供MGC进行相应的决策:  When reporting the media playback speed ratio change event, one or any combination of the following parameters can also be carried to indicate further information about the playback status of the media resource for the MGC to make corresponding decisions:

时间戳(timestamp)参数,用以表示发生媒体播放速度比例变化的时间;  The timestamp (timestamp) parameter is used to indicate the time when the media playback speed ratio changes;

比例范围(Range,缩写为range)参数和/或范围格式(Range Format,缩写为rf)参数,用以指示媒体播放速度比例发生变化的位置,同时还代表着新的播放速度比例生效的开始位置。参数的类型及取值同前面实施例中的定义。  Ratio range (Range, abbreviated as range) parameter and/or range format (Range Format, abbreviated as rf) parameter, used to indicate the position where the media playback speed ratio changes, and also represents the starting position where the new playback speed ratio takes effect . The types and values of the parameters are the same as those defined in the previous embodiments. the

事件上报时,还可以携带媒体资源标识参数(Media Resource Identifier,缩写为mri),用于指示上报事件所关联的媒体资源实体;以及请求标识(Request ID,缩写为rid),用于指示上报事件所对应的播放请求。当MG上有多个媒体资源在播放或存在多个播放请求时,上述参数用于标识检测事件所对应的实体。  When the event is reported, it can also carry a media resource identifier parameter (Media Resource Identifier, abbreviated as mri), used to indicate the media resource entity associated with the reported event; and a request ID (Request ID, abbreviated as rid), used to indicate the reported event The corresponding playback request. When multiple media resources are playing or there are multiple playback requests on the MG, the above parameters are used to identify the entity corresponding to the detection event. the

此外,事件上报时还可以携带如前面实施例中所述的媒体范围参数、媒体范围格式参数或媒体属性参数,该媒体属性参数包括随机访问参数、保留策略参数、内容修改参数、RTP相关信息参数等参数中的一种或几种,以表示在媒体播放速度比例变化事件发生的同时媒体流对应的属性信息。 In addition, the media range parameter, media range format parameter, or media attribute parameter as described in the preceding embodiments may also be carried when the event is reported, and the media attribute parameter includes random access parameters, retention policy parameters, content modification parameters, and RTP related information parameters. One or more of these parameters, to represent the attribute information corresponding to the media stream when the media playback speed proportional change event occurs.

同样,在上述方法中,除以事件参数的方式定义对应参数信息外,还可以以属性或信号参数的形式来定义,来达到同样的目的。  Similarly, in the above method, in addition to defining the corresponding parameter information in the form of event parameters, it can also be defined in the form of attributes or signal parameters to achieve the same purpose. the

本实施例通过在H.248协议中定义一个媒体播放速度比例变化事件,使得MG可以根据预设的事件在检测到媒体播放速度的比例变化意,向MGC上报媒体播放速度比例变化事件,使得MGC能够及时获知媒体流的播放状态,从而对变化情况进行控制和响应,同时MGC也可以通过携带事件参数的方式向MG指定在媒体播放速度比例发生变化后媒体流的播放行为。  In this embodiment, a media playback speed ratio change event is defined in the H.248 protocol, so that the MG can report the media playback speed ratio change event to the MGC after detecting the media playback speed ratio change event according to a preset event, so that the MGC It can know the playback status of the media stream in time, so as to control and respond to the change. At the same time, the MGC can also specify to the MG the playback behavior of the media stream after the media playback speed ratio changes by carrying event parameters. the

实施例四  Embodiment four

在上述三个实施例中,对于不同的媒体播放状态变化情况:媒体流结束、媒体流属性变化和媒体流相对速度比例变化,分别定义了三个事件,需要说明的是也可以统一定义一个事件,例如命名为“媒体播放状态变化(Media PlayState Change,缩写为mpsc)”事件,包含上述的三个类型的状态变化。MGC通过设置该事件,获取MG上媒体播放时的状态变化情况。该事件可以归属于现有或新的包中,例如包含在H.248.65中的RTSP播放包(RTSP Play Package,包标识为rtspp)中,或定义一个新包,命名为播放状态控制包(Play State ControlPackage,缩写为pscp)。  In the above three embodiments, three events are defined for different media playback state changes: the end of the media stream, the change of the media stream attribute, and the change of the relative speed ratio of the media stream. It should be noted that one event can also be defined uniformly , for example, the event named "Media PlayState Change (mpsc for short)" includes the above three types of state changes. By setting this event, the MGC obtains the status change of the media playing on the MG. This event can be attributed to an existing or new package, for example included in the RTSP Play Package (RTSP Play Package, package identifier is rtspp) in H.248.65, or define a new package named Play State Control Package (Play State ControlPackage, abbreviated as pscp). the

该事件下发携带的参数以及上报携带的参数包含上述三个事件中所定 义的参数,除此之外,在事件上报的同时,定义一个事件参数:事件类型(EventType,缩写为et),用以指示媒体播放状态变化的类型。该参数的类型可以设置为枚举型,取值包括:媒体流结束(Media Stream End,缩写为mse),表示上报事件为媒体流结束事件,则对应携带的其它参数同上述媒体流结束事件中的定义;媒体属性变化(Media Property Change,缩写为mpc),表示上报事件为媒体属性变化事件,则对应携带的其它参数同上述媒体属性变化事件中的定义;媒体播放速度比例变化(Media Play Scale Change,缩写为mpsc),表示上报事件为媒体播放速度比例变化事件,则对应携带的其它参数同上述媒体播放速度比例变化事件中的定义。  The parameters carried by the dispatch of the event and the parameters carried by the report include the parameters defined in the above three events. In addition, when the event is reported, an event parameter is defined: the event type (EventType, abbreviated as et), with to indicate the type of media playback state change. The type of this parameter can be set as an enumeration type, and its values include: Media Stream End (abbreviated as mse), indicating that the reported event is a media stream end event, and the corresponding other parameters carried are the same as those in the above media stream end event The definition of Media Property Change (Media Property Change, abbreviated as mpc), which means that the reported event is a media property change event, and the corresponding other parameters carried are the same as those defined in the above media property change event; the media playback speed ratio change (Media Play Scale Change, abbreviated as mpsc), indicates that the reported event is a media playback speed proportional change event, and the corresponding other parameters carried are the same as those defined in the aforementioned media playback speed proportional change event. the

请参阅图2,为本发明实施例具体应用的流程图,该实施例以媒体播放相对速度比例变化事件为例,说明上述定义机制的应用流程,实现MGC对MG上媒体播放状态进行监控。  Please refer to FIG. 2 , which is a flow chart of the specific application of the embodiment of the present invention. This embodiment takes the media playback relative speed ratio change event as an example to illustrate the application flow of the above-mentioned definition mechanism, so as to realize the MGC monitoring the media playback status on the MG. the

假定媒体播放速度比例变化事件定义在H.248.65中的RTSP播放包(RTSPPlay Package,包标识为rtspp)中,则事件的引用全称为“rtspp/mpsc”。S200:MGC通过修改(Modify)请求消息指示MG播放指定媒体内容,其中参数ps(Playback Scale)指示播放的速度为常规速度的2倍。与此同时,指示MG检测媒体播放速度比例变化事件(rtspp/mpsc),其中允许比例改变参数esc取 值为“ON”,表示允许MG自动修改媒体播放速度比例;一旦播放速度比例需要发生变化,则MG自主决定要改变的播放速度比例。在这个消息流程中,只显示说明了播放速度比例变化相关的参数信息,其它的消息参数可能也是消息中所需要的,但这里不再详细展开,下同。  Assuming that the media playback speed ratio change event is defined in the RTSP Play Package (RTSPPlay Package, package identifier is rtspp) in H.248.65, the full name of the event reference is "rtspp/mpsc". S200: The MGC instructs the MG to play the specified media content through a Modify request message, where the parameter ps (Playback Scale) indicates that the playback speed is twice the normal speed. At the same time, instruct the MG to detect media playback speed ratio change events (rtspp/mpsc), where the value of the allowed ratio change parameter esc is "ON", indicating that the MG is allowed to automatically modify the media playback speed ratio; once the playback speed ratio needs to change, Then the MG independently decides the playback speed ratio to be changed. In this message flow, only the parameter information related to the change of the playback speed ratio is displayed. Other message parameters may also be required in the message, but they will not be expanded here in detail, the same below. the

S201:MG发送修改响应消息给MGC。S202:MG按照MGC的指示开始播放媒体,同时开始对指定事件的检测。  S201: The MG sends a modification response message to the MGC. S202: The MG starts to play the media according to the instruction of the MGC, and at the same time starts to detect the specified event. the

S203:MG检测到原来的两倍于常规速度的播放速度已经无法执行,需要改变播放速度比例,这时MG通过通报(Notify)请求消息向MGC报告所检测到的媒体播放速度比例变化事件(rtspp/mpsc),其中附带相关的参数信息,例如包括新生效的比例参数取值,表示MG自主修订后的播放速度比例;再如变化发生的位置信息,以指示新的播放速度生效的范围。如本例中,sc=1.0;range=“npt=1:37:21.394-“,表示MG将比例值修订为1.0,采用常规播放速度进行媒体播放,并且新的生效范围是从1小时37分21.394秒开始。  S203: The MG detects that the original playback speed twice the normal speed cannot be executed, and the playback speed ratio needs to be changed. At this time, the MG reports the detected media playback speed ratio change event (rtspp) to the MGC through a Notify request message. /mpsc), which contains relevant parameter information, such as the value of the newly effective ratio parameter, which indicates the playback speed ratio after MG’s independent revision; and the position information where the change occurs, indicating the range where the new playback speed takes effect. For example, in this example, sc=1.0; range="npt=1:37:21.394-", it means that MG revises the ratio value to 1.0, uses normal playback speed for media playback, and the new effective range is from 1 hour 37 minutes 21.394 seconds to start. the

S204:MGC发送通报响应消息给MG。  S204: The MGC sends a notification response message to the MG. the

本发明实施例还提供一种媒体网关,其包括预置事件存储单元、检测单元及事件上报单元。该预置事件存储单元用于存储媒体网关控制其下发的或预先设置的事件,该事件用于向媒体网关上报媒体播放状态发生的变化;该事件检测单元用于检测检测媒体流播放状态;该事件上报单元用于在检测单元检测到 媒体流播放状态发生变化时,根据预置事件存储单元存储的事件向媒体网关上报媒体流播放状态发生的变化。  The embodiment of the present invention also provides a media gateway, which includes a preset event storage unit, a detection unit and an event reporting unit. The preset event storage unit is used to store the media gateway to control its delivery or preset events, and the event is used to report the change of the media playing state to the media gateway; the event detection unit is used to detect and detect the media stream playing state; The event reporting unit is used to report the change of the media stream playing state to the media gateway according to the event stored by the preset event storage unit when the detection unit detects that the media stream playing state changes. the

在上述方法中,通过在H.248协议中定义相关的事件,实现MGC指示MG对媒体资源会话中媒体流播放状态的变化进行检测和上报。另一方面,为了实现MGC对MG上媒体播放状态的指示和设置,可以通过在H.248协议中定义以下机制实现。  In the above method, by defining related events in the H.248 protocol, the MGC instructs the MG to detect and report the change of the media stream playing state in the media resource session. On the other hand, in order to realize the indication and setting of the media playing state on the MG by the MGC, the following mechanisms can be defined in the H.248 protocol. the

通过在H.248协议中定义属性(Property)或信号参数的方式,用于MGC设置MG上媒体的属性信息,进而有效控制媒体流的播放状态。例如,MGC向MG指示资源播放信号的同时,下发相关的参数指示信息,包括媒体属性、播放起始位置选择等。  By defining properties (Property) or signal parameters in the H.248 protocol, the MGC is used to set the property information of the media on the MG, thereby effectively controlling the playback status of the media stream. For example, while the MGC indicates to the MG the resource to play the signal, it also delivers relevant parameter indication information, including media attributes, selection of the starting position of playback, and so on. the

以媒体属性为例,包括随机访问性,媒体保留策略,内容的可修改性等,分别对应于上述媒体属性变化事件中定义的随机访问参数、保留策略参数、内容修改参数。对应这些信息,可以定义一个媒体属性(Media Properties,缩写为mp)的属性参数,用以MGC指示对应的媒体属性信息。属性参数的类型可以定义为字符串型。此外,还可以将该参数所包含的信息拆分为以下几个参数,分别表示MG对应希望改变的属性信息。可以分别定义三个H.248属性(Property)参数。属性参数的类型和含义对应上述方案中的定义。这些属性 为可读可写,即MGC可以向MG设置该属性以指示参数的取值信息,MGC也可以向MG获取该属性以了解当前取值信息。同样,可以以信号参数的形式定义上述信息。例如将媒体属性参数定义在媒体播放信号中,用以MGC在指示MG进行媒体播放的同时,实现对播放状态的控制。参数类型和含义同上。可读可写类型参数的应用规程为:MGC在发给MG的请求中,携带上述相关参数,参数的取值可以由MGC设定,即要求MG按照该指示进行设置;此外,参数的取值也可以为“选择”通配符“$”,表示MGC希望获得MG对应参数的实际取值,在上述MG发给MGC的响应中携带给MGC。  Take media attributes as an example, including random access, media retention policy, content modifiability, etc., corresponding to the random access parameters, retention policy parameters, and content modification parameters defined in the above media attribute change event. Corresponding to these information, a property parameter of Media Properties (abbreviated as mp) can be defined, which is used for the MGC to indicate the corresponding media property information. The type of attribute parameter can be defined as string type. In addition, the information contained in the parameter may also be split into the following parameters, which respectively represent the attribute information that the MG corresponds to and wants to change. Three H.248 attribute (Property) parameters can be defined separately. The type and meaning of attribute parameters correspond to the definitions in the above scheme. These attributes are readable and writable, that is, the MGC can set this attribute to the MG to indicate the value information of the parameter, and the MGC can also obtain the attribute from the MG to know the current value information. Likewise, the above information can be defined in the form of signal parameters. For example, the media attribute parameter is defined in the media playing signal so that the MGC can control the playing state while instructing the MG to play the media. The parameter types and meanings are the same as above. The application rules for readable and writable type parameters are as follows: MGC sends the above-mentioned relevant parameters in the request sent to MG, and the value of the parameter can be set by MGC, that is, the MG is required to set according to the instruction; in addition, the value of the parameter It can also be a "select" wildcard "$", indicating that the MGC wants to obtain the actual value of the corresponding parameter of the MG, and carry it to the MGC in the response sent by the MG to the MGC. the

对其它参数,如媒体范围(Media Range)的控制,方法也类似。  For other parameters, such as media range (Media Range) control, the method is similar. the

此外,播放状态的控制还包括对媒体播放起始位置的控制。由于媒体编码格式的不同,媒体文件的组成单元可能包括较长的持续区间,这样,当MGC的播放请求中包含对媒体内容的随机访问参数时,媒体播放的起始位置可以有不同的策略。定义一个信号参数,例如命名为寻址行为(Seek Behavior,缩写为sb)参数。该参数的类型可以设置为枚举型,取值包括:随机访问点(RandomAccess Point,缩写为RA),表示对指定起始位置之前选择距离最近的随机访问点开始播放;第一优先(First Prior,缩写为FP),表示从播放时间最近且优先于请求时间的媒体单元开始播放,对于离散媒体来说即是包括在请求时间时在播放的媒体单元,对于连续媒体即是包括请求开始时间时被播放的媒体;后 续单元(Next Unit,缩写为NU),表示依据指定范围的开始时间选择下一个媒体单元开始播放,对于连续的帧媒体来说,即是指定时间开始的最先一个帧,而对离散媒体来说即是指定时候后的第一个单元。这个信号参数可以定义在媒体播放信号中,用于MGC指示MG播放开始的位置选择策略。除以信号参数的方式定义之外,上述信息还可以通过属性或事件参数的方式定义,来达到同样的目的。  In addition, the control of the playback state also includes the control of the starting position of the media playback. Due to different media encoding formats, the composition unit of a media file may include a long duration interval. In this way, when the MGC's playback request includes a random access parameter to the media content, different strategies may be used for the starting position of the media playback. Define a signal parameter, such as a parameter named Seek Behavior (abbreviated as sb). The type of this parameter can be set as an enumeration type, and the values include: random access point (Random Access Point, abbreviated as RA), indicating that the random access point closest to the specified starting position is selected to start playing; the first priority (First Priority) , abbreviated as FP), means to start playing from the media unit with the closest playback time and priority over the request time. For discrete media, it includes the media unit that is playing at the request time. For continuous media, it includes the request start time. The media being played; the next unit (Next Unit, abbreviated as NU), means to select the next media unit to start playing according to the start time of the specified range. For continuous frame media, it is the first frame starting from the specified time , and for discrete media it is the first unit after the specified time. This signal parameter can be defined in the media playing signal, and is used for the position selection strategy for the MGC to instruct the MG to start playing. In addition to being defined in the form of signal parameters, the above information can also be defined in the form of attributes or event parameters to achieve the same purpose. the

需要说明的是,本发明实施例可应用于采用分离架构的媒体资源服务器,即媒体资源控制设备和媒体处理设备之间关于信号设置和调整的交互。此时,媒体资源控制设备相当于MGC,媒体处理设备相当于MG。  It should be noted that the embodiment of the present invention is applicable to a media resource server adopting a separated architecture, that is, the interaction between the media resource control device and the media processing device regarding signal setting and adjustment. At this time, the media resource control device is equivalent to the MGC, and the media processing device is equivalent to the MG. the

请参阅图3,本发明实施例还提供一种媒体处理设备30。  Referring to FIG. 3 , an embodiment of the present invention also provides a media processing device 30 . the

该媒体处理设备30包括预置事件存储单元301、检测单元302及事件上报单元303。该预置事件存储单元301,用于存储媒体网关控制器下发的或预先设置的事件,该事件用于向媒体网关上报媒体播放状态发生的变化,其携带的参数与前述实施例相同,此处不再赘述。该事件检测单元302,用于根据预置事件存储单元存储301的事件检测媒体播放状态。该事件上报单元303,用于在检测单元302检测到媒体播放状态发生变化时,根据预置事件存储单元301存储的事件向媒体播放控制设备31上报媒体播放状态发生的变化。 The media processing device 30 includes a preset event storage unit 301 , a detection unit 302 and an event reporting unit 303 . The preset event storage unit 301 is used to store the event sent by the media gateway controller or preset, and the event is used to report the change of the media playback state to the media gateway, and the parameters it carries are the same as those of the foregoing embodiments, where I won't repeat them here. The event detection unit 302 is configured to detect the media playing state according to the events stored in the preset event storage unit 301 . The event reporting unit 303 is configured to report the change of the media playing state to the media playing control device 31 according to the event stored in the preset event storage unit 301 when the detection unit 302 detects that the media playing state changes.

该媒体处理设备30还可以包括执行单元304,用于在预设的事件携带了指示媒体处理设备30在检测到播放状态改变后的下一步动作的参数时,根据预设的事件对媒体播放状态进行修改。  The media processing device 30 may also include an execution unit 304, configured to execute the media playback status according to the preset event when the preset event carries a parameter indicating the next action of the media processing device 30 after detecting a change in the playback status. to modify. the

媒体处理设备30还可以包括第一接收单元(图未示),用于接收媒体播放控制设备31根据所述上报单元上报的媒体播放状态发生的变化下发的指示信息。此时该执行单元304还用于根据第一接收单元接收的指示信息对媒体播放状态进行修改。  The media processing device 30 may further include a first receiving unit (not shown in the figure), configured to receive indication information sent by the media playing control device 31 according to the change of the media playing state reported by the reporting unit. At this time, the executing unit 304 is also configured to modify the media playing state according to the indication information received by the first receiving unit. the

该媒体处理设备30还可以包括第二接收单元(图未示),用于接收媒体播放控制设备31向媒体处理设备设置30的媒体播放参数,该媒体播放参数用于控制媒体处理设备30上媒体播放的状态;所述执行单元304还用于根据接收的媒体播放参数播放相关的媒体。  The media processing device 30 may also include a second receiving unit (not shown), configured to receive the media playback parameters set 30 from the media playback control device 31 to the media processing device, and the media playback parameters are used to control the media playback parameters on the media processing device 30. Playing state; the executing unit 304 is also configured to play related media according to the received media playing parameters. the

该媒体处理设备可以为MG或媒体资源处理设备。  The media processing device may be an MG or a media resource processing device. the

请参阅图4,本发明实施例还提供一种媒体播放控制设备31。  Referring to FIG. 4 , the embodiment of the present invention also provides a media playback control device 31 . the

该媒体播放控制设备31括包括第三接收单元311,用于接收MG上报的用于通报媒体播放状态发生的变化的事件。  The media playing control device 31 includes a third receiving unit 311, configured to receive an event reported by the MG for notifying the change of the media playing state. the

该媒体播放控制设备31还可以包括决策单元312,用于在接收到MG上报的事件后,向该媒体处理设备30发送命令,指示该媒体处理设备30对媒体播放状态进行修改。 The media playing control device 31 may also include a decision unit 312, configured to send a command to the media processing device 30 after receiving the event reported by the MG, instructing the media processing device 30 to modify the media playing state.

该媒体播放控制设备31还可以包括下发单元313,用于向该媒体处理设备30下发检测媒体播放状态发生的变化的事件。  The media playing control device 31 may further include a sending unit 313, configured to send an event for detecting a change in a media playing state to the media processing device 30. the

该媒体播放控制设备31可以为MGC或媒体资源控制设备。  The media playback control device 31 may be an MGC or a media resource control device. the

本发明实施例还提供一种实现媒体播放状态检测的控制系统(图未示),其包括媒体处理设备和媒体播放控制设备。  An embodiment of the present invention also provides a control system (not shown in the figure) for realizing media playback state detection, which includes a media processing device and a media playback control device. the

该媒体播放控制设备用于向媒体处理设备下发检测媒体播放状态发生变化的事件,并接收媒体处理设备上报的用于通报媒体播放状态发生的变化的事件,以及在接收到MG上报的事件后,向MG发送命令,指示MG对媒体播放状态进行修改。  The media playback control device is used to send an event to the media processing device to detect the change of the media playback state, and receive the event reported by the media processing device for notifying the change of the media playback state, and after receiving the event reported by the MG, , to send a command to the MG, instructing the MG to modify the media playing state. the

该媒体处理设备用于根据预设的事件检测媒体播放状态;检测到媒体播放状态变化时,根据所述预设的事件向媒体播放控制设备上报媒体播放状态发生的变化,并根据预设的事件或媒体播放控制设备下发的指示修改媒体播放状态。  The media processing device is used to detect the media playing state according to preset events; when detecting a change in the media playing state, report the change in the media playing state to the media playing control device according to the preset event, and report the change in the media playing state according to the preset event Or modify the media playback state by an instruction issued by the media playback control device. the

本实施例媒体处理设备和媒体播放控制设备的结构分别与前述的媒体处理设备31和媒体播放控制设备31相同,此处不再赘述。  The structures of the media processing device and the media playback control device in this embodiment are the same as those of the aforementioned media processing device 31 and the media playback control device 31 respectively, and will not be repeated here. the

本发明实施例通过扩展H.248协议,定义了一套适用于MGC和MG分离架构下实现对媒体播放状态进行控制的方案,其中包括MGC指示控制MG上媒体播放的参数信息,以及对MG上媒体播放状态下各种媒体属性变化事件的 检测和监控,为媒体网关控制器和媒体网关有效控制媒体资源播放提供了简单有效的解决方案。  By extending the H.248 protocol, the embodiment of the present invention defines a set of solutions applicable to the MGC and MG separation framework to realize the control of the media playback state, including the parameter information of the MGC indicating to control the media playback on the MG, and the control of the media playback status on the MG. The detection and monitoring of various media attribute change events in the media playing state provides a simple and effective solution for the media gateway controller and media gateway to effectively control the playback of media resources. the

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention. the

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (16)

1. a control method that realizes the media resource plays state-detection is characterized in that, comprises the steps: that medium processing device is according to default event detection media play state;
When detecting the media play state variation, report the variation of media play state generation to controlling media play equipment according to described default event;
Wherein, described default event is issued to medium processing device by controlling media play equipment;
Wherein, described event is used for medium processing device and reports the variation of Media Stream broadcasting speed ratio to controlling media play equipment, carries a kind of or combination in any of following parameter when described event is default:
Playback action changes parameter, is used to indicate the broadcast behavior of medium processing device Media Stream after detecting the media relative velocity and changing, and this broadcast behavior comprises that changing into conventional speeds plays or stop to play;
Upgrade relative velocity ratio parameter, in order to the new broadcasting speed ratio of indication use after the media play speed proportional changes;
The permission ratio changes parameter, in order to indicate whether allowing medium processing device automatically to revise the media play speed proportional;
Ratio changes value parameter, in order to indicate when allowing automatically to revise the media play speed proportional modification value of permission;
Medium resource identification, the media resource entity that the event that is used to indicate is suitable for;
Request mark, the playing request that the event that is used to indicate is suitable for.
2. the method for claim 1 is characterized in that, the method also comprises the steps:
When the value of permission ratio change parameter allowed medium processing device automatically to revise the media play speed proportional, medium processing device was revised the media play speed proportional automatically;
The value that changes parameter when the permission ratio allows medium processing device automatically to revise the media play speed proportional, and the event that presets comprises when ratio changes value parameter that medium processing device is revised the media play speed proportional according to the value that ratio changes value parameter.
3. the method for claim 1, it is characterized in that, when the default event of described basis reports the variation of media play state generation to controlling media play equipment, also carry the broadcasting speed percent information of change, be used for when the value of permission ratio change parameter allows medium processing device automatically to revise the media play speed proportional, reporting amended media play speed proportional to controlling media play equipment.
4. method as claimed in claim 3, it is characterized in that, described broadcasting speed percent information also is used for when the value of permission ratio change parameter does not allow medium processing device automatically to revise the media play speed proportional, report medium processing device to wish the media play speed proportional value that changes, the method also comprises the steps: the indication that medium processing device receiving media playback control device issues, and adjusts media play speed proportional value according to the indication of controlling media play equipment.
5. such as each described method in the claim 1 to 4, it is characterized in that medium processing device reports the variation of Media Stream broadcasting speed ratio to carry a kind of or combination in any of following parameter to controlling media play equipment:
The time that the media play speed proportional changes occurs in order to indication in timestamp parameter;
Proportion parameter and/or range format parameter are in order to the starting position of indicating position that the media play speed proportional changes and new broadcasting speed ratio to come into force;
Media range parameter and/or media range format parameter are in order to indicate the current available broadcast range information of Media Stream;
The medium property parameter, in order to indication attribute information corresponding to Media Stream when media play speed proportional change events occurs, described medium property parameter comprises random accessibility, media retention strategy or content alterability;
Medium resource identification is used to indicate the associated media resource entity of reported event;
Request mark is used to indicate the corresponding playing request of reported event.
6. the method for claim 1 is characterized in that, the method also comprises the steps:
Controlling media play equipment arranges the media play parameter to medium processing device, and this media play parameter is used for the state of media play on the control medium processing device;
Medium processing device is play relevant media according to the indication of this media play parameter.
7. method as claimed in claim 6 is characterized in that, described controlling media play equipment comprises a kind of or combination in any of following information to the media play parameter of medium processing device setting:
The medium property parameter comprises random accessibility, media retention strategy or content alterability;
The addressing behavioral parameters, the addressing locate mode of indication media play original position;
The media range parameter, the indication media can be for the context information of playing.
8. method as claimed in claim 7 is characterized in that, described media play parameter is carried in the signal of media play.
9. a medium processing device comprises preset event memory cell, event detection unit and reporting events unit, it is characterized in that:
This preset event memory cell is used for the event that the medium playback control device issues, and this event is used for reporting to controlling media play equipment the variation of media play state generation;
This event detection unit is used for the event detection media play state according to the preset event cell stores; This reporting events unit is used for when the event detection unit inspection changes to the media play state, reports the variation of media play state generation to controlling media play equipment according to the event of preset event cell stores;
Wherein, the event of described preset event cell stores specifically is used for described medium processing device and reports the variation of Media Stream broadcasting speed ratio to described controlling media play equipment, and the event of described preset event cell stores is carried a kind of or combination in any of following parameter:
Playback action changes parameter, is used to indicate the broadcast behavior of medium processing device Media Stream after detecting the media relative velocity and changing, and this broadcast behavior comprises that changing into conventional speeds plays or stop to play;
Upgrade relative velocity ratio parameter, in order to the new broadcasting speed ratio of indication use after the media play speed proportional changes;
The permission ratio changes parameter, in order to indicate whether allowing medium processing device automatically to revise the media play speed proportional;
Ratio changes value parameter, in order to indicate when allowing automatically to revise the media play speed proportional modification value of permission;
Medium resource identification, the media resource entity that the event that is used to indicate is suitable for;
Request mark, the playing request that the event that is used to indicate is suitable for.
10. medium processing device as claimed in claim 9 is characterized in that, also comprises performance element,
This performance element is used for according to default event the media play state being made amendment.
11. medium processing device as claimed in claim 10, it is characterized in that, also comprise the first receiving element, this first receiving element, the indication information that the variation that the media play state that reports according to described reporting events unit for the receiving media playback control device occurs issues;
Described performance element also is used for according to the indication information that the first receiving element receives the media play state being made amendment.
12. such as right 11 described medium processing devices, it is characterized in that, also comprise the second receiving element,
This second receiving element is used for the media play parameter that the receiving media playback control device issues to medium processing device, and this media play parameter is used for the state of media play on the control medium processing device;
Described performance element also is used for playing relevant media according to the media play parameter that receives.
13. a controlling media play equipment is characterized in that, comprises the 3rd receiving element, is used for the event for the variation of circulating a notice of the generation of media play state that the receiving media treatment facility reports; The event that described media play state changes is the default event detection media play state of described medium processing device basis, and when detecting the media play state variation, report;
Wherein, described default event is issued to described medium processing device by described controlling media play equipment;
Wherein, described default event is used for medium processing device and reports the variation of Media Stream broadcasting speed ratio to controlling media play equipment, carries a kind of or combination in any of following parameter when described default event is default:
Playback action changes parameter, is used to indicate the broadcast behavior of medium processing device Media Stream after detecting the media relative velocity and changing, and this broadcast behavior comprises that changing into conventional speeds plays or stop to play;
Upgrade relative velocity ratio parameter, in order to the new broadcasting speed ratio of indication use after the media play speed proportional changes;
The permission ratio changes parameter, in order to indicate whether allowing medium processing device automatically to revise the media play speed proportional;
Ratio changes value parameter, in order to indicate when allowing automatically to revise the media play speed proportional modification value of permission;
Medium resource identification, the media resource entity that the event that is used to indicate is suitable for;
Request mark, the playing request that the event that is used to indicate is suitable for.
14. controlling media play equipment as claimed in claim 13, it is characterized in that, also comprise decision package, be used for after receiving the event that medium processing device reports, send order to medium processing device, the indication medium processing device is made amendment to the media play state.
15. controlling media play equipment as claimed in claim 13 is characterized in that, also comprises issuing the unit, is used for issuing to medium processing device the event of the variation that detects the generation of media play state.
16. a control system that realizes the media play state-detection, it comprises medium processing device and controlling media play equipment, it is characterized in that:
This medium processing device is used for according to default event detection media play state, when detecting the media play state variation, reports the variation of media play state generation to controlling media play equipment according to described default event;
This controlling media play equipment is used for receiving the event for the variation of circulating a notice of the generation of media play state that described medium processing device reports;
Wherein, described default event is issued to medium processing device by controlling media play equipment;
Wherein, described default event is used for medium processing device and reports the variation of Media Stream broadcasting speed ratio to controlling media play equipment, carries a kind of or combination in any of following parameter when described default event is default:
Playback action changes parameter, is used to indicate the broadcast behavior of medium processing device Media Stream after detecting the media relative velocity and changing, and this broadcast behavior comprises that changing into conventional speeds plays or stop to play;
Upgrade relative velocity ratio parameter, in order to the new broadcasting speed ratio of indication use after the media play speed proportional changes;
The permission ratio changes parameter, in order to indicate whether allowing medium processing device automatically to revise the media play speed proportional;
Ratio changes value parameter, in order to indicate when allowing automatically to revise the media play speed proportional modification value of permission;
Medium resource identification, the media resource entity that the event that is used to indicate is suitable for;
Request mark, the playing request that the event that is used to indicate is suitable for.
CN200810142468.9A 2008-08-14 2008-08-14 Method, device and system for controlling playing state detection of media resource Expired - Fee Related CN101651665B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810142468.9A CN101651665B (en) 2008-08-14 2008-08-14 Method, device and system for controlling playing state detection of media resource
PCT/CN2009/071125 WO2010017710A1 (en) 2008-08-14 2009-04-01 A control method, apparatus and system for realizing the detection of media resource playing status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810142468.9A CN101651665B (en) 2008-08-14 2008-08-14 Method, device and system for controlling playing state detection of media resource

Publications (2)

Publication Number Publication Date
CN101651665A CN101651665A (en) 2010-02-17
CN101651665B true CN101651665B (en) 2013-04-17

Family

ID=41668664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810142468.9A Expired - Fee Related CN101651665B (en) 2008-08-14 2008-08-14 Method, device and system for controlling playing state detection of media resource

Country Status (2)

Country Link
CN (1) CN101651665B (en)
WO (1) WO2010017710A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118270B (en) * 2011-03-04 2014-04-30 华为技术有限公司 A method and device for measuring user quality of experience (QoE)
US9438883B2 (en) * 2012-04-09 2016-09-06 Intel Corporation Quality of experience reporting for combined unicast-multicast/broadcast streaming of media content
CN103533005B (en) * 2012-07-06 2018-12-07 南京中兴新软件有限责任公司 Processing method, system and relevant apparatus based on broadcast state synchronizing information
CN103874014A (en) * 2012-12-17 2014-06-18 中兴通讯股份有限公司 Terminal location information-based business service method, service provision device and terminal
CN104581388B (en) * 2014-12-31 2019-01-04 网宿科技股份有限公司 The processing method of broadcast state, apparatus and system
CN106454512A (en) * 2016-09-06 2017-02-22 北京小度互娱科技有限公司 Player event statistical method and device player and terminal equipment
JP6887131B2 (en) * 2017-11-06 2021-06-16 パナソニックIpマネジメント株式会社 Playback device, playback method and playback program
CN111064957B (en) * 2018-10-17 2021-03-23 杭州海康威视数字技术股份有限公司 Equipment state monitoring method and device
CN112752109B (en) * 2019-10-30 2022-05-17 上海哔哩哔哩科技有限公司 Video playing control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794665A (en) * 2005-04-15 2006-06-28 华为技术有限公司 Method of medium gateway monitoring and uploading event
CN1929489A (en) * 2006-10-20 2007-03-14 华为技术有限公司 Processing method, system, set-top-box, and device for realizing synchronization of dialogue and media flow
CN1968320A (en) * 2006-04-27 2007-05-23 华为技术有限公司 Method for implementing voice play service

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194071B2 (en) * 2000-12-28 2007-03-20 Intel Corporation Enhanced media gateway control protocol
CN101022545A (en) * 2006-02-14 2007-08-22 华为技术有限公司 A method and system for realizing multimedia playback through H.248 protocol
WO2008079337A2 (en) * 2006-12-21 2008-07-03 Broadsoft M6, Llc Systems, methods, and apparatus for communicating the state of a wireless user device in a wireless domain to an application server in an internet protocol (ip) domain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794665A (en) * 2005-04-15 2006-06-28 华为技术有限公司 Method of medium gateway monitoring and uploading event
CN1968320A (en) * 2006-04-27 2007-05-23 华为技术有限公司 Method for implementing voice play service
CN1929489A (en) * 2006-10-20 2007-03-14 华为技术有限公司 Processing method, system, set-top-box, and device for realizing synchronization of dialogue and media flow

Also Published As

Publication number Publication date
CN101651665A (en) 2010-02-17
WO2010017710A1 (en) 2010-02-18

Similar Documents

Publication Publication Date Title
CN101651665B (en) Method, device and system for controlling playing state detection of media resource
CA2718720C (en) Method and system for fast channel switching using standard rtsp messages
KR100456924B1 (en) User controlled multi-device media-on-demand system
KR101762088B1 (en) Method and device for multi-screen interaction
JP5368605B2 (en) A system for sending and dynamic presentation of multimedia assets on networks with limited line capacity
US20130145016A1 (en) Methods and apparatuses for domain management
US20110093885A1 (en) Bookmark calibration for video on demand applications incorporating dynamic advertising
KR20120031176A (en) Synchronized distributed media assets
US20120036105A1 (en) Method and Apparatus for Distributing Data in a Peer-To-Peer Network
RU2454806C2 (en) Method, device and system to notify about events of real-time streaming protocol
TW201349849A (en) Render, controller and managing methods thereof
WO2009017293A1 (en) Formtext method and apparatus for controlling universal plug and play device to reproduce content in a plurality of reproduction regions on screen thereof
RU2654369C1 (en) Method for bandwidth management, iptv terminal device and communication system
CN101022354A (en) Method and apparatus for providing broadcast content in UPnP network
US20120117627A1 (en) Authority Control Systems and Methods
CN111158629A (en) Method and system for seamlessly switching media asset players
JP7220880B1 (en) Systems, methods, and computer readable media for data access
JP2009278320A (en) Communication control method, server device, program and api
EP2564596A1 (en) Method and arrangement for playing out a media object
KR20070095020A (en) How to Manage Media Transmission Quality in Home Networks
JP2007193899A (en) Content recording and reproducing device
CN101981562B (en) Method and apparatus for reproducing media data by restricting control operations
CN119988766A (en) Video playback method, device, equipment and storage medium
JP2008252199A (en) Content distribution method and content receiving terminal
CN101778090A (en) Method, device and system based on text for controlling media

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: 20130417

CF01 Termination of patent right due to non-payment of annual fee