Remove all users from RTSP server and allow unrestricted access to stream
According to the sample program (test-auth.c) of rtsp-server :
An access role can be added using gst_rtsp_media_factory_add_role().
And user authentication can be added to a rtsp stream using
gst_rtsp_auth_make_basic() and gst_rtsp_auth_add_basic() APIs.
Once the user is added to the stream, I want to remove the user
authentication and make the access to rtsp stream unrestricted. However,
when I remove the users from the GstRTSPAuth using
gst_rtsp_auth_remove_basic() and try to access the stream from VLC, it asks
for authentication. I cannot get unrestricted access to rtsp stream!
Any idea how I can remove all the users from a particular stream and make it
Re: Remove all users from RTSP server and allow unrestricted access to stream
Ok, So if I remove the authentication manager from the server using
gst_rtsp_server_set_auth(server, NULL), it works like a charm. However, if I
keep the authentication manager attached with server, it always asks for
username and password.
Also I have tried using the default token:
token = gst_rtsp_token_new(GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE,
G_TYPE_STRING, "anonymous", NULL);
But whenever I try to set default token, I cannot connect with rtsp stream
anymore! Seems like a bug to me.