Top | ![]() |
![]() |
![]() |
![]() |
The GstRTSPOnvifMediaFactory is responsible for creating or recycling GstRTSPMedia objects based on the passed URL. Different to GstRTSPMediaFactory, this supports special ONVIF features and can create GstRTSPOnvifMedia in addition to normal GstRTSPMedia.
Special ONVIF features that are currently supported is a backchannel for
the client to send back media to the server in a normal PLAY media, see
gst_rtsp_onvif_media_factory_set_backchannel_launch()
and
gst_rtsp_onvif_media_factory_set_backchannel_bandwidth()
.
GstRTSPMediaFactory *
gst_rtsp_onvif_media_factory_new (void
);
Create a new GstRTSPOnvifMediaFactory
Since: 1.14
gboolean
gst_rtsp_onvif_media_factory_has_backchannel_support
(GstRTSPOnvifMediaFactory *factory
);
Returns TRUE
if an ONVIF backchannel is supported by the media factory.
Since: 1.14
void gst_rtsp_onvif_media_factory_set_backchannel_bandwidth (GstRTSPOnvifMediaFactory *factory
,guint bandwidth
);
Set the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
Since: 1.14
guint
gst_rtsp_onvif_media_factory_get_backchannel_bandwidth
(GstRTSPOnvifMediaFactory *factory
);
Get the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
Since: 1.14
void gst_rtsp_onvif_media_factory_set_backchannel_launch (GstRTSPOnvifMediaFactory *factory
,const gchar *launch
);
The gst_parse_launch()
line to use for constructing the ONVIF backchannel
pipeline in the default prepare vmethod if requested by the client.
The pipeline description should return a GstBin as the toplevel element which can be accomplished by enclosing the description with brackets '(' ')'.
The description should return a pipeline with a single depayloader named depay_backchannel. A caps query on the depayloader's sinkpad should return all possible, complete RTP caps that are going to be supported. At least the payload type, clock-rate and encoding-name need to be specified.
Note: The pipeline part passed here must end in sinks that are not waiting until pre-rolling before reaching the PAUSED state, i.e. setting async=false on GstBaseSink. Otherwise the whole media will not be able to prepare.
Since: 1.14
gchar *
gst_rtsp_onvif_media_factory_get_backchannel_launch
(GstRTSPOnvifMediaFactory *factory
);
Get the gst_parse_launch()
pipeline description that will be used in the
default prepare vmethod for generating the ONVIF backchannel pipeline.
Since: 1.14