Remove all users from RTSP server and allow unrestricted access to stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remove all users from RTSP server and allow unrestricted access to stream

ashubhatt
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.

Problem:
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
unrestricted again?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Remove all users from RTSP server and allow unrestricted access to stream

ashubhatt
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);
    gst_rtsp_auth_set_default_token(auth, token);

But whenever I try to set default token, I cannot connect with rtsp stream
anymore! Seems like a bug to me.

Any help is appreciated.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel