rtspMessageNewResponse
fn
gstrtsp.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
msg | a location for the new #GstRTSPMessage |
code | the status code |
reason | the status reason or null |
request | the request that triggered the response or null |
Returns
a #GstRTSPResult.