[Bug 787073] New: Using gst-rtsp-server we are unable to add_role for permission object in python, unable to use authentication with python

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Aug 31 10:55:07 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=787073

            Bug ID: 787073
           Summary: Using gst-rtsp-server we are unable to add_role for
                    permission object in python, unable to use
                    authentication with python
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-rtsp-server
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: a.bouin at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

In c we have :
auth = gst_rtsp_auth_new ();
[...]
 /* make user token */
  token =
      gst_rtsp_token_new (GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE, G_TYPE_STRING,
      "user", NULL);
  basic = gst_rtsp_auth_make_basic ("user", "password");
  gst_rtsp_auth_add_basic (auth, basic, token);
[...]
  /* configure in the server */
  gst_rtsp_server_set_auth (server, auth);

[and later]

  permissions = gst_rtsp_permissions_new ();
  gst_rtsp_permissions_add_role (permissions, "user",
      GST_RTSP_PERM_MEDIA_FACTORY_ACCESS, G_TYPE_BOOLEAN, TRUE,
      GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL);
  gst_rtsp_media_factory_set_permissions (factory, permissions);

but in python :
auth = GstRtspServer.RTSPAuth()
token = GstRtspServer.RTSPToken(GstRtspServer.RTSP_TOKEN_MEDIA_FACTORY_ROLE, 
                   GObject.TYPE_STRING, 
                   'user', 
                   None)

# But this fails with: 
# TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All
arguments passed will be ignored.

basic = auth.make_basic("user", "password")
auth.add_basic(basic, token)
server.set_auth(auth)

[and later]

permissions = GstRtspServer.RTSPPermissions()

# but neither permissions nor auth have a method add_role(), which I need



How to help ?
Thank you


Someone else get the problem here :
https://github.com/thaytan/gst-rpicamsrc/issues/20

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list