Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- gulong m_clientConnectedConfigureId = g_signal_connect(m_server, "client-connected", (GCallback)ClientConnected, this);
- ....
- static void ClientConnected(GstRTSPServer *gstrtspserver, GstRTSPClient *arg1, gpointer user_data)
- {
- GstRTSPConnection *connection = gst_rtsp_client_get_connection(arg1);
- if(!connection)
- {
- return;
- }
- GstRTSPUrl *uri = gst_rtsp_connection_get_url(connection);
- if(!uri)
- {
- return;
- }
- gchar *urlString = gst_rtsp_url_get_request_uri (uri);
- std::stringstream ssTemp;
- ssTemp << "ClientConnected - urlString = " << urlString;
- InternalLog::Debug(ssTemp.str());
- g_free(urlString);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement