Reputation: 1
In C code we have next method gst_rtsp_media_factory_set_transport_mode()
,
but vala VAPI haven't implement of this functional. How can I do this?
Upvotes: 0
Views: 181
Reputation: 4289
The bindings to GStreamer make use of GObject Introspection and it looks like the source GObject Introspection Repository for GstRtspServer is a bit out of date. An issue has been raised in the Vala repository to get this fixed. Many Vala GIR bindings are regularly updated to track upstream projects, especially projects like GTK+ and GStreamer, but this one seems to have been missed.
The binding is in the process of being updated in the Vala release, but if you want to get on then you can download the new binding from Vala's staging branch. Download gstreamer-rtsp-server-1.0.vapi and gstreamer-rtsp-server-1.0.deps and save it in a directory called vapi
in your project. You need to add that to your VAPI search path. From your project directory this would be something like:
valac --vapidir vapi --pkg gstreamer-rtsp-server-1.0 rtsp_server_example.vala
This will override the binding you are currently using. The updated binding will, however, be available from your distribution with Vala 0.40.8.
Upvotes: 1