(wifi-display specification)RTSP交互信息详解

RTSP MESSAGE

M1
A WFD Source shall send an RTSP M1 request to a WFD Sink to begin the RTSP procedures and a WFD Capability Negotiation. The RTSP M1 request shall contain an RTSP OPTIONS request. A WFD Sink shall respond with an RTSP M1 response message indicating an appropriate status code specified in section 7.1.1 of [23]. If the RTSP M1 response message contains a status code of RTSP OK, the RTSP M1 response message shall contain an RTSP OPTIONS response.
WFD source需要发送一个RTSP的M1请求到WFD sink来开始RTSP过程和WFD性能协商,RTSP M1请求需要包含一个RTSP OPTIONS请求,一个WFD sink需要回应一个RTSP M1应答信息,指定一个合适的状态码,如果RTSP M1应答信息中包含RTSP OK的状态码,RTSP M1应答信息需要包含一个RTSP OPTIONS回应


M2
After sending an RTSP M1 response including a status code of RTSP OK to the WFD Source, the WFD Sink shall send an RTSP M2 request to the WFD Source. The RTSP M2 request shall contain an RTSP OPTIONS request. The WFD Source shall respond with an RTSP M2 response indicating an appropriate status code specified in section 7.1.1 of [23]. If the RTSP M2 response message contains a status code of RTSP OK, the RTSP M2 response message shall contain an RTSP OPTIONS response.
在发送了一个包含RTSP OK的M1应答信息给WFD source之后,WFD sink需要发送一个RTSP M2请求到WFD source,RTSP M2请求信息需要包含一个RTSP OPTIONS请求,WFD source需要回应一个M2应答信息,指定一个合适的状态码,如果RTSP M2应答信息中包含RTSP OK的状态码,RTSP M2应答信息需要包含一个RTSP OPTIONS回应

M3
After sending an RTSP M2 response including a status code of RTSP OK to the WFD Sink, the WFD Source shall send an RTSP M3 request to the WFD Sink to query the WFD Sink’s attributes and capabilities. The RTSP M3 request shall contain an RTSP GET_PARAMETER request (see section 6.2.2). The parameters that may be requested are listed in section 6.3. The WFD Sink shall respond with an RTSP M3 response indicating an appropriate status code specified in section 7.1.1 of [23]. If the RTSP M3 response message contains a status code of RTSP OK, the RTSP M3 response shall contain the values of the requested parameters.
在发送一个包含RTSP OK的RTSP M2应答信息给WFD sink之后,WFD source需要发送一个RTSP M3请求到WFD sink来查询WFD sink的属性和性能,RTSP M3的请求需要包含一个RTSP GET_PARAMETER请求,可能请求的参数在6.3中有列出来,WFD sink需要回应一个RTSP M3应答信息,指定一个合适的状态码,如果RTSP M3的回应信息包含RTSP OK的状态码,RTSP M3应答信息需要包含请求参数的值

When an optional parameter is included in the RTSP M3 Request message from the WFD Source, it implies that the WFD Source supports the optional feature corresponding to the parameter. The WFD Sink shall be able to parse all the RTSP parameters that are listed in section 6.1 in the RTSP M3 request message. If the WFD Sink receives an RTSP M3 request including any of these parameters, it shall
respond to them in the RTSP M3 response.
当从WFD source发出来的RTSP请求信息中包含一个可选的参数时候,意味着WFD source支持可选参数所关联的属性,WFD sink需要能够解析RTSP M3请求信息中6.1章节所列出来的所有RTSP参数,如果WFD sink接受到一个RTSP M3请求信息包含这些参数中的任何参数,它都需要在RTSP M3应答中回复这些参数

The WFD Sink shall support responding to an RTSP M3 request at any time after a successful RTSP M2 message exchange. The WFD Source may query all parameters at once with a single RTSP M3 request message or may send separate RTSP M3 request messages.The WFD Sink shall only respond with formats and settings that it can accept in the following RTSP M4 message exchange.
在RTSP M2信息交换成功之后,WFD sink需要支持随时应答RTSP M3请求,WFD source可能在单个RTSP M3请求信息中一次性查询所有参数,或者发送单独的RTSP M3请求信息,在接下来的RTSP M4信息交换中,WFD sink只需要回应能够接受的格式和设置

If the WFD Sink has indicated support for the HDCP system 2.0/2.1 (see section 6.1.5) in the most recent RTSP M3 response message and if the HDCP 2.0/2.1 authentication key exchange has not been successfully completed for a WFD Session, the WFD Source and the WFD Sink shall start the HDCP 2.0/2.1 authentication key exchange upon successful completion of the RTSP M3 message exchange. The WFD Sink should start listening upon transmission of an RTSP M3 response message, and the WFD Source should start sending AKE_Init upon receipt of the RTSP M3 response message.
在最近的RTSP M3应答信息中,如果WFD sink指明支持HDCP系统2.0/2.1,如果WFD会话的HDCP 2.0/2.1认证密钥交换没有成功的完成,那么WFD source和WFD sink应该开始HDCP 2.0/2.1认证密钥交换,直到RTSP M3信息交换成功完成,WFD sink需要开始监听,直到传输RTSP M3应答信息,WFD source需要开发发送AKE_Init直到接受到RTSP M3应答信息


M4
If a WFD Session has not been established, after receiving an RTSP M3 response including a status code of RTSP OK, the WFD Source shall send an RTSP M4 request to the WFD Sink to set parameters for the WFD Sink. The WFD Sink shall respond with an RTSP M4 response indicating an appropriate status code specified in section 7.1.1 of [23].
如果WFD会话还没有建立起来,在接受到RTSP M3包含RTSP OK状态码的应答信息之后,WFD source需要发送一个RTSP M4的请求到WFD sink来设置WFD sink的参数,WFD sink需要回应一个RTSP M4应答信息,指定一个合适的状态码

The WFD Sink shall support responding to an RTSP M4 request at any time after a successful RTSP M3 message exchange. The WFD Source may set parameters all at once with a single RTSP M4 request message or may send separate RTSP M4 request messages.
在RTSP M3信息交换成功之后,WFD sink需要支持随时应答RTSP M4请求,WFD source可能在单个RTSP M4请求中一次性设置所有参数,或者发送单独的RTSP M4请求信息

The format of the M4 request message varies depending on the WFD Session:
M4请求信息的格式取决于WFD会话:
(a) If the WFD Source is trying to initiate the establishment of an audio-only WFD Session with the WFD Sink, the RTSP M4 request message (or a series of RTSP M4 request messages) shall include a wfd-audio-codecs parameter and shall not include any of the following parameter: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
如果WFD source尝试和WFD sink开始建立一个audio-only的WFD会话,RTSP M4请求信息(或者一系列RTSP M4请求信息)需要包含一个wfd-audio-codecs参数,然不要包含任何下面的参数:wfd-video-formats, wfd-3d-formats, 或者wfd-preferred-display-mode

(b) If the WFD Source is trying to initiate the establishment of a video-only WFD Session with the WFD Sink, the RTSP M4 request message (or a series of RTSP M4 request messages) shall not include a wfd-audio-codecs parameter and shall include only one of the following parameters: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
如果WFD source尝试和WFD sink开始建立一个video-only的WFD会话,RTSP M4请求信息(或者一系列RTSP M4请求信息)不能包含wfd-audio-codecs参数,只能包含如下信息中的任何一个:wfd-video-formats, wfd-3d-formats, 或者wfd-preferred-display-mode

(c) If the WFD Source is trying to initiate the establishment of an audio and video WFD Session with a Primary Sink, the RTSP M4 request message (or a series of RTSP M4 request messages) shall include a wfd-audio-codecs parameter and only one of the following parameters: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
如果WFD source尝试和primary sink开始建立一个audio和video的WFD会话,RTSP M4请求信息(或者一系列RTSP M4请求信息)需要包含wfd-audio-codecs参数和如下信息中的任何一个:wfd-video-formats, wfd-3d-formats, 或者wfd-preferred-display-mode

(d) if the WFD Source is trying to initiate the establishment of an audio and video WFD Session with a Primary Sink and a Secondary Sink during a Coupled Sink Operation:
如果WFD source尝试和primary sink, secondary sink开始建立一个audio和video的WFD会话:

i. If both audio and video payloads are destined for the Primary Sink, the RTSP M4 request message (or a series of RTSP M4 request messages) to the Primary Sink shall include a wfd-audio-codecs parameter and only one of the following parameters: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
如果primary sink的目标是audio和video有效载荷,发给primary sink的RTSP M4请求信息(或者一系列RTSP M4请求信息)需要包含wfd-audio-codecs参数和如下参数中的任何一个:wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.

ii. If video payload is destined for the Primary Sink and audio payload is destined for the Secondary Sink, then:
如果primary sink的目标是video有效载荷,secondary sink的目标是audio有效载荷,然后:

(1) The RTSP M4 request message (or a series of RTSP M4 request messages) to the Primary Sink shall not include a wfd-audio-codecs parameter and shall include one of the following parameters: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
发送给primary sink的RTSP M4请求信息(或者一系列RTSP M4请求信息)不能包含wfd-audio-codecs参数,需要包含如下参数中的任何一个:wfd-video-formats, wfd-3d-formats, 或者wfd-preferred-display-mode

(2) The RTSP M4 request message (or a series of RTSP M4 request messages) to the Secondary Sink shall include a wfd-audio-codecs parameter and shall not include any of the following parameters: wfd-video-formats, wfd-3d-formats, or wfd-preferred-display-mode.
发送给secondary sink的RTSP M4请求信息(或者一系列RTSP M4请求信息)需要包含wfd-audio-codecs参数,不能包含如下参数中的任何一个:wfd-video-formats, wfd-3d-formats, 或者wfd-preferred-display-mode

The RTSP M4 request message may include a wfd-uibc-setting parameter during the WFD Capability Negotiation if the RTSP M4 request message contains a wfd-uibc-capability parameter.
在WFD新能协商的过程中,RTSP M4请求信息中可能包含wfd-uibc-setting参数,如果RTSP M4请求信息中包含wfd-uibc-capability参数

If a WFD Sink has indicated unsupported for feature(s) in its RTSP M3 response message, then the WFD Source shall not include RTSP parameter(s) that are related to those unsupported feature(s). It is highly recommended that the WFD Sink should ignore an RTSP parameter that is unknown or is not supported. Based on the wfd-client-rtp-ports parameter in the M3 response and depending on the WFD Session being setup, the WFD Source determines the configuration of the MPEG2-TS stream(s) to be used in the WFD Session and the WFD Source shall include the corresponding wfd-client-rtp-ports parameter in the RTSP M4 request message sent to the WFD Sink. How to set this parameter is defined in Table 6-3 under section 6.1.10.
如果WFD sink在它的RTSP M3应答信息中有指定其不支持的特性,那么WFD source不能包含这些不支持特性对应的参数,极力推荐WFD sink忽略RTSP参数,如果是unknown或者不支持的,基于M3的应答信息中wfd-client-rtp-ports参数和取决与WFD会话的setup,WFD source决定WFD会话中MPEG2-TS码流的配置,WFD source需要在发送给WFD sink的RTSP M4请求信息中包含wfd-client-rtp-ports参数,如何设置这个参数在表的6-3中有定义

The RTSP M4 request message that is for WFD Capability Negotiation shall contain the wfd-presentation-url parameter (specified in section 6.1.9) that describes the Universal Resource Identifier (URI) to be used in the RTSP Setup request (RTSP M6 request) in order to setup the WFD Session. The wfd-presentation-url specifies the URI that a WFD Sink shall use in an RTSP M6 request message to a WFD Source. The values of wfd-url0 and wfd-url1 fields specified in this parameter correspond to the values of rtp-port0 and rtp-port1 field in the wfd-client-rtp-ports parameter in the RTSP M4 request message from the WFD Source to the WFD Sink at the end of the Capability Negotiation. The WFD Sink uses information in this parameter in RTSP SETUP request (RTSP M6 request) message.
RTSP M4请求信息是为了WFD性能协商,需要包含wfd-presentation-url参数(在6.1.9中定义),为了设置WFD会话在RTSP SETP请求(RTSP M6请求)中用于描述唯一资源描述符,WFD sink需要在发给WFD source的RTSP M6请求信息中使用wfd-presentation-url指定URI,wfd-url0和wfd-url1的值在这个参数中指定关联到wfd-client-rtp-ports参数的rtp-port0和rtp-port1,在性能协商的结尾阶段,从WFD source发往WFD sink的RTSP请求信息,WFD sink在RTSP SETUP请求(RTSP M6请求)使用这些参数的信息

If the RTSP M4 request message is sent to the WFD Sink to change one or more parameters in wfd-audio-codec, wfd-video-formats, wfd-3d-formats, and/or wfd-preferred-display-mode parameter(s) used in the WFD Session, it shall include a wfd-av-format-change-timing (specified in section 6.1.13) parameter.
如果发送给WFD sink的RTSP M4请求信息改变WFD会话中wfd-audio-codec, wfd-video-formats, wfd-3d-formats, wfd-preferred-display-mode一个或者多个参数,需要包含wfd-av-format-change-timing参数


M5
The M5 request message is used by a WFD Source to trigger an RTSP session establishment when an RTSP session has not been established, or to trigger play, pause, or teardown during an RTSP session.
M5请求信息是WFD source用来触发RTSP会话的建立,当RTSP会话没有建立起来的时候,或者触发RTSP会话的play, pause,或者teardown

If an RTSP session has not been established, after receiving an RTSP M4 response with a status code of RTSP OK, the WFD Source shall send an RTSP M5 request message containing wfd-trigger-method parameter with the trigger method set to SETUP to the WFD Sink to indicate that the WFD Sink is requested to send an RTSP M6 request message. The WFD Sink shall respond with an RTSP M5 response indicating an appropriate status code specified in section 7.1.1 of [23].
如果RTSP会话没有建立起来的时候,在收到包含RTSP OK的RTSP M4应答之后,WFD source需要发送一个RTSP M5的请求信息到WFD sink,包含设置为SETUP的wfd-trigger-method参数,用来表示WFD sink被邀请发送RTSP M6请求信息,WFD sink需要回复一个包含适当状态码的RTSP M5应答信息

Once an RTSP session has been established, the WFD Source may send an RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to PLAY to the WFD Sink to indicate that the WFD Sink is requested to send an RTSP M7 request message. The WFD Sink shall respond with an RTSP M5 response message indicating an appropriate status code specified in section 7.1.1 of [23]. The WFD Source in an RTSP Playing state should not send an RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to PLAY to the WFD Sink.
当RTSP会话已经建立起来之后,WFD source可能发送一个RTSP M5请求信息到WFD sink,包含设置为PLAY的wfd-trigger-method参数,用来表示WFD sink被邀请发送RTSP M7的请求信息,WFD sink需要回复一个包含适当状态码的RTSP M5应答信息,WFD source处在RTSP playing状态的时候不应该发送一个包含设置为PLAY的wfd-trigger-method参数的RTSP M5请求信息到WFD sink

Once a WFD Session has been established, the WFD Source may send an RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to PAUSE to the WFD Sink to indicate that the WFD Sink is requested to send an RTSP M9 request message. The WFD Sink shall respond with an RTSP M5 response message indicating an appropriate status code specified in section 7.1.1 of [23]. The WFD Source in an RTSP Ready state should not send an RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to PAUSE to the WFD Sink.
当WFD会话已经建立起来之后,WFD source发送一个RTSP M5请求到WFD sink,包含设置为PAUSE的wfd-trigger-method参数,用来表示WFD sink被邀请发送RTSP M9信息,WFD sink需要回复一个包含适当状态码的RTSP M5应答信息,WFD source处在RTSP ready状态的时候不应该发送一个包含设置为PAUSE的wfd-trigger-method参数的RTSP M5请求信息到WFD sink

Once an RTSP session has been established, the WFD Source may send an RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to TEARDOWN to the WFD Sink to indicate that the WFD Sink is requested to send an RTSP M8 request message. The WFD Sink shall respond with an RTSP M5 response message indicating an appropriate status code specified in section 7.1.1 of [23].
当WFD会话已经建立起来之后,WFD source发送一个RTSP M5请求信息到WFD sink,包含设置为TEARDOWN的wfd-trigger-method参数,用来表示WFD sink被邀请发送RTSP M8信息,WFD sink需要回复一个包含适当状态码的RTSP M5应答信息

In general, an RTSP M5 request message is used to trigger the recipient to send an RTSP message corresponding to the parameter contained in the RTSP M5 request message. Figure 6-4 illustrates the message exchange between WFD Devices.
一般来说,RTSP M5请求信息用来触发接受者,发送包含RTSP M5请求信息中的参数的RTSP信息,图6-4说明了WFD设备之间的信息交换

In the event that a WFD Source receives an RTSP message requesting the WFD Source to perform an action that contradicts a previously initiated TRIGGER operation by the WFD Source, then the WFD Source shall obey the action indicated in the RTSP request message from the WFD Sink.
在这个事件中,WFD source接收到一个RTSP信息,请求WFD source来表现一个跟前面WFD source所初始化的触发动作相冲突的动作,WFD source需要遵守从WFD sink发出来的RTSP请求信息中所包含的动作


M6
After sending an RTSP M5 response message with a status code of RTSP OK as a response to the RTSP M5 request message containing a wfd-trigger-method parameter with the trigger method set to SETUP, the WFD Sink shall send an RTSP M6 request message to the WFD Source. The RTSP M6 request message shall contain an RTSP SETUP request. The request shall use information indicated in a wfd-presentation-url (specified in section 6.1.9) in the RTSP M4 request message as an URI for SETUP 13. The WFD Source shall respond with an RTSP M6 response message indicating an appropriate status code specified in section 7.1.1 of [23]. When the WFD Source sends the RTSP M6 response message indicating a status code of RTSP OK, a session id shall be included.
在发送一个包含RTSP OK状态码的RTSP M5应答信息作为应答包含设置为SETUP的wfd-trigger-method参数RTSP M5请求信息,WFD sink需要发送一个RTSP M6的请求信息到WFD source,RTSP M6请求信息需要包含RTSP SETUP请求,请求需要使用RTSP M4请求信息中wfd-presentation-url参数所包含的信息作为URI来SETUP,WFD source需要回应一个包含适当状态码的RTSP M6应答信息,当WFD source发送一个包含RTSP OK的应答信息的时候,必须要带山一个session id

To apply HDCP 2.0/2.1 encryption from the beginning of the stream after verifying that the WFD Source and the WFD Sink support the HDCP system 2.0/2.1 in the RTSP M3 request/response messages (see section 6.1.5), the WFD Sink shall transmit an RTSP M7 request message only after successful completion of the HDCP 2.0/2.1 authentication and key exchange as specified in clause 2 of [21] and [22] (or [30] for the HDCP system 2.1).
在RTSP M3请求和应答信息中验证WFD source和WFD sink支持HDCP系统2.0/2.1之后,在stream的开头应用HDCP 2.0/2.1加密,WFD sink需要传输一个RTSP M7请求信息,仅在HDCP 2.0/2.1认证和密钥交换成功完成之后


M7
A WFD Sink sends an RTSP M7 request message to the WFD Source in the following cases:
WFD sink发送RTSP M7请求信息给WFD source,在以下情况:
(a) While in the process of establishing a WFD Session, after receiving an RTSP M6 response message with a status code of RTSP OK, the WFD Sink shall send an RTSP M7 request message to the WFD Source.
在建立WFD会话的过程中,在收到包含RTSP OK的RTSP M6应答信息之后,WFD sink需要发送一个RTSP M7请求信息到WFD source

(b) Once a WFD Session has been established, in response to the receipt of an RTSP M5 request message from the WFD Source containing a wfd-trigger-method parameter with the trigger method set to PLAY, the WFD Sink sends an RTSP M5 response message to the WFD Source. If the RTSP M5 response message included a status code of RTSP OK, the WFD Sink shall send an RTSP M7 request message to the WFD Source.
在WFD会话建立起来之后,从WFD source发送出来的RTSP M5请求信息的接收者,会发送一个包含设置为PLAY的wfd-trigger-method参数作为回应,WFD sink发送一个RTSP M5应到信息给WFD source,如果RTSP M5应到信息包含RTSP OK的状态码,WFD sink需要发送一个RTSP M7请求到WFD source

(c) Once a WFD Session has been established, if the WFD Sink intends to resume streaming from the WFD Source, the WFD Sink sends an RTSP M7 request message to the WFD Source.
在WFD会话建立起来之后,如果WFD sink试图重新开始从WFD source发送过来的stream,WFD sink发送一个RTSP M7请求信息到WFD source

The RTSP M7 request message contains an RTSP PLAY request.
RTSP M7请求信息包含一个RTSP PLAY请求

The WFD Source shall respond with an RTSP M7 response message indicating an appropriate status code specified in section 7.1.1 of [23].
WFD source需要回应一个包含适当状态码的RTSP M7应答信息

If the RTSP M7 response message includes a status code of RTSP OK, the WFD Source shall start/resume transmitting the audio/video stream to the RTP client port numbers specified in the RTSP M6 request message. If the WFD Source starts/resumes transmitting an MPEG2-TS that contains a video elementary stream, the first video frame shall be an IDR picture with SPS and PPS. Also, if the WFD Source starts/resumes transmitting an MPEG2-TS that contains an audio elementary stream, the first Access Unit (AU) for audio shall be a new AU, and the first audio frame shall be a new frame if the audio format is not LPCM 14.
如果RTSP M7应答信息包含一个RTSP OK的状态码,WFD source需要开始/重新开始传输audio/video stream到RTSP M6请求信息中指定的RTP client端口,如果WFD source开始/重新开始传输一个MPEG2-TS包含video元素的码流,第一个video帧应该是一个包含SPS和PPS的IDR图片,如果WFD source开始/重新开始传输一个MPEG2-TS包含audio元素的码流,第一个audio接入单元应该是一个新的接入单元,第一个audio帧应该是一个新的帧,如果audio的格式不是LPCM14

If the WFD Source in an RTSP Playing state receives an RTSP M7 request message, the WFD Source should send the RTSP M7 response message with status code “406” (means “not acceptable”) and reason phrase of “in-play-state”.
如果WFD source在RTSP playing状态收到了一个RTSP M7请求信息,WFD source需要发送一个包含“406”状态码和“in-play-state”原因短语的的RTSP M7应答信息


M8
A WFD Sink sends an RTSP M8 request message to the WFD Source in the following cases:
WFD sink发送RTSP M8请求信息到WFD source,在下面的情况下:
(a) Once the RTSP session has been established, in response to the receipt of an RTSP M5 request message from the WFD Source containing wfd-trigger-method parameter with the trigger method set to TEARDOWN, the WFD Sink sends an RTSP M5 response message to the WFD Source. If the RTSP M5 response message included a status code of RTSP OK, the WFD Sink shall send an RTSP M8 request message to the WFD Source.
当RTSP会话建立完毕之后,如果从WFD source发出的RTSP M5请求信息中,包含wfd-trigger-method参数的设置值为TEARDOWN,WFD sink发送RTSP M5应答信息到WFD source,如果RTSP M5的应答信息中包含RTSP OK的状态码,WFD sink需要发送RTSP M8的请求信息到WFD source

(b) Once the RTSP session has been established, if the WFD Sink intends to end the RTSP session with the WFD Source, the WFD Sink sends an RTSP M8 request message to the WFD Source.
当RTSP会话建立完毕之后,如果WFD sink试图终止与RTSP source的RTSP会话,WFD sink发送一个RTSP M8请求信息到RTSP source

The RTSP M8 request message contains an RTSP TEARDOWN request. If an RTSP M8 request message is received during the RTSP procedures, the WFD Source shall send an RTSP M8 response message indicating an appropriate status code specified in section 7.1.1 of [23].
RTSP M8请求信息包含一个RTSP TEARDOWN请求,如果在RTSP阶段收到了RTSP M8请求信息,WFD source需要发送一个包含适当状态码的RTSP M8应答信息

If the WFD Source sends an RTSP M8 response message with a status code of RTSP OK, the WFD Source shall abort the RTSP procedures, and shall stop the audio/video streaming and terminate the corresponding RTP session(s) if exists.
如果WFD source发送一个包含RTSP OK的RTSP M8应答信息,WFD source需要终止RTSP步骤,停止audio/video stream,终止关联的RTP会话,如果存在的话

If the RTSP M8 request and response messages are correctly exchanged with a status code of RTSP OK, the WFD Source and WFD Sink shall release corresponding resources committed to the RTP session (if exists) and RTSP procedures. After the teardown, in order to establish a new WFD Session, the WFD Devices shall start with WFD Capability Negotiation (See section 4.6) and WFD Session establishment (See section 4.8) procedures.
如果RTSP M8请求和应答信息正确的交换了RTSP OK状态码,WFD source和WFD sink需要释放与RTP会话和RTSP过程(如果存在的话)相关的资源,终止之后,为了能够建立新的WFD会话,WFD设备需要从WFD性能协商和WFD会话建立流程开始


M9
Once a WFD Session has been established and the WFD Sink has started decoding the corresponding stream received from the WFD Source, the WFD Sink sends the RTSP M9 request message to the WFD Source in the following cases:
当WFD会话建立完毕之后,WFD sink开始解码从WFD source发送过来的相关stream,WFD sink发送RTSP M9请求信息到WFD source,在下面的情况下:

(a) In response to the receipt of an RTSP M5 request message from the WFD Source containing wfd-trigger-method parameter with the trigger method set to PAUSE, the WFD Sink sends an RTSP M5 response message to the WFD Source. If the RTSP M5 response message included a status code of RTSP OK, the WFD Sink shall send an RTSP M9 request message to the WFD Source.
为了回应WFD source发送过来包含设置为PAUSE的wfd-trigger-method参数的RTSP M5请求信息,如果RTSP M5应答信息中包含RTSP OK的状态码,WFD sink需要发送一个RTSP M9的请求信息到WFD source

(b) If the WFD Sink intends to pause the current stream being received from the WFD Source, the WFD Sink sends an RTSP M9 request message to the WFD Source.
如果WFD sink尝试发送暂停接收从WFD source发送过来的stream,WFD sink发送RTSP M9请求信息到WFD source

The RTSP M9 request message contains an RTSP PAUSE request.
RTSP M9请求信息包含RTSP PAUSE请求

If an RTSP M9 request message is received during the WFD Session with “PLAY” state, the WFD Source
shall respond with an RTSP M9 response message indicating an appropriate status code specified in section
7.1.1 of [23].
如果RTSP M9请求信息在WFD会话的“PLAY”状态收到的话,WFD source应该回应包含适当状态码的RTSP M9应答信息

If the WFD Source sends an RTSP M9 response message with a status code of RTSP OK, the WFD Source
shall stop transmission of the content stream to the RTP client port numbers specified in the RTSP M6
response message.
如果WFD source发送包含RTSP OK的RTSP M9应答信息,WFD source需要终止传输内容的stream到RTSP M6应答信息中指定的client port

If the WFD Source in an RTSP Ready state receives an RTSP M9 request message, the WFD Source
should send an RTSP M9 response message with status code “406” (means “not acceptable”) and reason
phrase if “in-pause-state”.
如果WFD source处在RTSP ready的状态,收到了RTSP M9的请求信息,WFD source将会发送一个包含状态码“406”(意味着不可接受的)和“in-pause-state”原因短语的RTSP M9的应答信息


M10
During a WFD Session for Coupled Sink Operation (see section 4.9), the Primary Sink may send an RTSP M10 request message to the WFD Source in order to change the WFD Sink where the audio stream corresponding to the WFD Session is rendered (see section 4.10.4).
在WFD会话包含成对的sink时,primary sink可能发送一个RTSP M10的请求信息到WFD source,为了改变已翻译的audio stream相关连的WFD sink

During a WFD Session for Coupled Sink Operation (see section 4.9), the Secondary Sink may send an RTSP M10 request message to the WFD Source in order to change the WFD Sink where the audio stream corresponding to the WFD Session is rendered (see section 4.10.4).
在WFD会话包含成对的sink时,secondary sink可能发送一个RTSP M10请求到WFD source,为了改变已翻译的audio stream相关连的WFD sink

The RTSP M10 request message is an RTSP SET_PARAMETER request containing a wfd-route parameter. The destination field in the wfd-route parameter identifies the WFD Sink where the audio stream is to be rendered.
RTSP M10请求信息是一个SET_PARAMETER请求,包含wfd-route参数,wfd-route的目的值指示了翻译audio stream的WFD sink

If an RTSP M10 request message is received during the WFD Session, the WFD Source shall respond with an RTSP M10 response message indicating an appropriate status code specified in section 7.1.1 of [23] to the WFD Sink that sent an RTSP M10 request message.
如果RTSP M10请求信息在WFD会话中被收到,WFD source需要回应一个包含适当状态码的RTSP M10应答信息到发送RTSP M10请求信息的WFD sink

If the WFD Source sends an RTSP M10 response message with a status code of RTSP OK, the WFD Source shall switch the destination of the audio stream to the WFD sink identified in the M10 request message.
如果WFD source发送一个包含RTSP OK的RTSP M10的应答信息,WFD source可以切换audio stream的目的地到M10请求信息中包含的WFD sink


M11
Once a WFD Session has been established and the WFD Sink has started decoding the corresponding stream received from the WFD Source, the WFD Sink sends the RTSP M9 request message to the WFD Source in the following cases:
在WFD会话已经建立之后,WFD sink开始解码从WFD source发送过来相关的stream,WFD sink发送RTSP M9请求信息到WFD source,在下面情况下:

(a) In response to the receipt of an RTSP M5 request message from the WFD Source containing wfd-trigger-method parameter with the trigger method set to PAUSE, the WFD Sink sends an RTSP M5 response message to the WFD Source. If the RTSP M5 response message included a status code of RTSP OK, the WFD Sink shall send an RTSP M9 request message to the WFD Source.


(b) If the WFD Sink intends to pause the current stream being received from the WFD Source, the WFD Sink sends an RTSP M9 request message to the WFD Source.  The RTSP M9 request message contains an RTSP PAUSE request.

If an RTSP M9 request message is received during the WFD Session with “PLAY” state, the WFD Source shall respond with an RTSP M9 response message indicating an appropriate status code specified in section 7.1.1 of [23].

If the WFD Source sends an RTSP M9 response message with a status code of RTSP OK, the WFD Source shall stop transmission of the content stream to the RTP client port numbers specified in the RTSP M6 response message.

If the WFD Source in an RTSP Ready state receives an RTSP M9 request message, the WFD Source should send an RTSP M9 response message with status code “406” (means “not acceptable”) and reason phrase if “in-pause-state”.


  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值