RTSPConnection.createFromSocket

Create a new #GstRTSPConnection for handling communication on the existing socket socket. The initial_buffer contains zero terminated data already read from socket which should be used before starting to read new data.

class RTSPConnection
static
createFromSocket

Parameters

socket gio.socket.Socket

a #GSocket

ip string

the IP address of the other end

port ushort

the port used by the other end

initialBuffer string

data already read from fd

conn gstrtsp.rtspconnection.RTSPConnection

storage for a #GstRTSPConnection

Return Value

Type: gstrtsp.types.RTSPResult

#GST_RTSP_OK when conn contains a valid connection.