gstrtsp.rtspmessage

Module for [RTSPMessage] class

Types 1

Provides methods for creating and parsing request, response and data messages.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
RTSPMessage self()Returns `this`, for use in `with` statements.
gstrtsp.types.RTSPMsgType type() @propertyGet `type` field. Returns: the message type
void type(gstrtsp.types.RTSPMsgType propval) @propertySet `type` field. Params: propval = the message type
gstrtsp.types.RTSPResult addHeader(gstrtsp.types.RTSPHeaderField field, string value)Add a header with key field and value to msg. This function takes a copy of value.
gstrtsp.types.RTSPResult addHeaderByName(string header, string value)Add a header with key header and value to msg. This function takes a copy of value.
gstrtsp.types.RTSPResult appendHeaders(glib.string_.String str)Append the currently configured headers in msg to the #GString str suitable for transmission.
gstrtsp.types.RTSPResult copy(out gstrtsp.rtspmessage.RTSPMessage copy)Allocate a new copy of msg and store the result in copy. The value in copy should be release with gstrtspmessage_free function.
gstrtsp.types.RTSPResult dump()Dump the contents of msg to stdout. Returns: #GSTRTSPOK.
gstrtsp.types.RTSPResult getBody(out ubyte[] data)Get the body of msg. data remains valid for as long as msg is valid and unchanged.
gstrtsp.types.RTSPResult getBodyBuffer(out gst.buffer.Buffer buffer)Get the body of msg. buffer remains valid for as long as msg is valid and unchanged.
gstrtsp.types.RTSPResult getHeader(gstrtsp.types.RTSPHeaderField field, out string value, int indx)Get the indx header value with key field from msg. The result in value stays valid as long as it remains present in msg.
gstrtsp.types.RTSPResult getHeaderByName(string header, out string value, int index)Get the index header value with key header from msg. The result in value stays valid as long as it remains present in msg.
gstrtsp.types.RTSPMsgType getType()Get the message type of msg. Returns: the message type.
bool hasBodyBuffer()Checks if msg has a body and the body is stored as #GstBuffer. Returns: true if msg has a body and it's stored as #GstBuffer, false otherwise.
gstrtsp.types.RTSPResult init_()Initialize msg. This function is mostly used when msg is allocated on the stack. The reverse operation of this is [gstrtsp.rtspmessage.RTSPMessage.unset]. Returns: a #GstRTSPResult.
gstrtsp.types.RTSPResult initData(ubyte channel)Initialize a new data #GstRTSPMessage for channel.
gstrtsp.types.RTSPResult initRequest(gstrtsp.types.RTSPMethod method, string uri)Initialize msg as a request message with method and uri. To clear msg again, use [gstrtsp.rtspmessage.RTSPMessage.unset].
gstrtsp.types.RTSPResult initResponse(gstrtsp.types.RTSPStatusCode code, string reason = null, gstrtsp.rtspmessage.RTSPMessage request = null)Initialize msg with code and reason.
gstrtsp.rtspauth_credential.RTSPAuthCredential[] parseAuthCredentials(gstrtsp.types.RTSPHeaderField field)Parses the credentials given in a WWW-Authenticate or Authorization header.
gstrtsp.types.RTSPResult parseData(out ubyte channel)Parse the data message msg and store the channel in channel.
gstrtsp.types.RTSPResult parseRequest(out gstrtsp.types.RTSPMethod method, out string uri, out gstrtsp.types.RTSPVersion version_)Parse the request message msg and store the values method, uri and version. The result locations can be null if one is not interested in its value.
gstrtsp.types.RTSPResult parseResponse(out gstrtsp.types.RTSPStatusCode code, out string reason, out gstrtsp.types.RTSPVersion version_)Parse the response message msg and store the values code, reason and version. The result locations can be null if one is not interested in its value.
gstrtsp.types.RTSPResult removeHeader(gstrtsp.types.RTSPHeaderField field, int indx)Remove the indx header with key field from msg. If indx equals -1, all headers will be removed.
gstrtsp.types.RTSPResult removeHeaderByName(string header, int index)Remove the index header with key header from msg. If index equals -1, all matching headers will be removed.
gstrtsp.types.RTSPResult setBody(ubyte[] data)Set the body of msg to a copy of data. Any existing body or body buffer will be replaced by the new body.
gstrtsp.types.RTSPResult setBodyBuffer(gst.buffer.Buffer buffer)Set the body of msg to buffer. Any existing body or body buffer will be replaced by the new body.
gstrtsp.types.RTSPResult stealBody(out ubyte[] data)Take the body of msg and store it in data and size. After this method, the body and size of msg will be set to null and 0 respectively.
gstrtsp.types.RTSPResult stealBodyBuffer(out gst.buffer.Buffer buffer)Take the body of msg and store it in buffer. After this method, the body and size of msg will be set to null and 0 respectively.
gstrtsp.types.RTSPResult takeBodyBuffer(gst.buffer.Buffer buffer)Set the body of msg to buffer. This method takes ownership of buffer. Any existing body or body buffer will be replaced by the new body.
gstrtsp.types.RTSPResult takeHeader(gstrtsp.types.RTSPHeaderField field, string value)Add a header with key field and value to msg. This function takes ownership of value.
gstrtsp.types.RTSPResult takeHeaderByName(string header, string value)Add a header with key header and value to msg. This function takes ownership of value, but not of header.
gstrtsp.types.RTSPResult unset()Unset the contents of msg so that it becomes an uninitialized #GstRTSPMessage again. This function is mostly used in combination with [gstrtsp.rtspmessage.RTSPMessage.initRequest], [gstrtsp.rtspmes...
Constructors
this(gstrtsp.types.RTSPMsgType type = gstrtsp.types.RTSPMsgType.init)Create a `rtspmessage.RTSPMessage` boxed type. Params: type = the message type
this(void * ptr, Flag!"Take" take)