rtspMessageNewResponse

Create a new response #GstRTSPMessage with code and reason and store the result message in msg. Free with gstrtsp.rtspmessage.RTSPMessage.free.

When reason is null, the default reason for code will be used.

When request is not null, the relevant headers will be copied to the new response message.

Parameters

msg gstrtsp.rtspmessage.RTSPMessage

a location for the new #GstRTSPMessage

code gstrtsp.types.RTSPStatusCode

the status code

reason string

the status reason or null

request gstrtsp.rtspmessage.RTSPMessage

the request that triggered the response or null

Return Value

Type: gstrtsp.types.RTSPResult

a #GstRTSPResult.