rtspMessageNewResponse

fngstrtsp.types.RTSPResult rtspMessageNewResponse(out gstrtsp.rtspmessage.RTSPMessage msg, gstrtsp.types.RTSPStatusCode code, string reason = null, gstrtsp.rtspmessage.RTSPMessage request = null)

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

msga location for the new #GstRTSPMessage
codethe status code
reasonthe status reason or null
requestthe request that triggered the response or null

Returns

a #GstRTSPResult.