GstRtspServer.RTSPOnvifMediaFactory¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class GstRtspServer.RTSPOnvifMediaFactory(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
New in version 1.14.
- classmethod new()[source]¶
 - Returns:
 - Return type:
 
Create a new
GstRtspServer.RTSPOnvifMediaFactoryNew in version 1.14.
- classmethod requires_backchannel(factory, ctx)[source]¶
 - Parameters:
 factory (
GstRtspServer.RTSPMediaFactory) – aGstRtspServer.RTSPMediaFactoryctx (
GstRtspServer.RTSPContext) –
- Returns:
 Trueif the clientGstRtsp.requestrequires backchannel.- Return type:
 
Checks whether the client
GstRtsp.requestrequires backchannel.New in version 1.14.
- get_backchannel_bandwidth()[source]¶
 - Returns:
 the configured/supported backchannel bandwidth.
- Return type:
 
Get the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
New in version 1.14.
- get_backchannel_launch()[source]¶
 - Returns:
 the configured backchannel launch description.
GLib.free() after usage.- Return type:
 
Get the
Gst.parse_launch() pipeline description that will be used in the default prepare vmethod for generating the ONVIF backchannel pipeline.New in version 1.14.
- has_backchannel_support()[source]¶
 - 
Returns
Trueif an ONVIF backchannel is supported by the media factory.New in version 1.14.
 
- set_backchannel_bandwidth(bandwidth)[source]¶
 - Parameters:
 bandwidth (
int) – the bandwidth in bits per second
Set the configured/supported bandwidth of the ONVIF backchannel pipeline in bits per second.
New in version 1.14.
- set_backchannel_launch(launch)[source]¶
 - 
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
Gst.Binas 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
GstBase.BaseSink. Otherwise the whole media will not be able to prepare.New in version 1.14.
 
- set_replay_support(has_replay_support)[source]¶
 - Parameters:
 has_replay_support (
bool) –
Set to
Trueif ONVIF replay is supported by the media factory.New in version 1.18.
- do_create_backchannel_stream(media, ctx) virtual¶
 - Parameters:
 - Returns:
 - Return type:
 
Called by the factory from #GstRTSPMediaFactoryClass::construct(). The default implementation creates the *
GstRtspServer.RTSPStreamfor the backchannel receiver by callingGstRtspServer.RTSPOnvifMedia.collect_backchannel(media). Implementations that want to create the backchannel later should returnTruehere and callGstRtspServer.RTSPOnvifMedia.collect_backchannel() later, but must do so before the media finishes preparing.New in version 1.26.