MediaFactory
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPMediaFactory" , lower_case_cprefix = "gst_rtsp_media_factory_" , type_id = "gst_rtsp_media_factory_get_type ()" ) ]
[ GIR ( name = "RTSPMediaFactory" ) ]
public class MediaFactory : Object
[ GIR ( name = "RTSPMediaFactory" ) ]
public class MediaFactory : Object
The definition and logic for constructing the pipeline for a media.
The media can contain multiple streams like audio and video.
All known sub-classes:
Namespace: Gst.RTSPServer
Package: gstreamer-rtsp-server-1.0
Content:
Properties:
- public bool bind_mcast_address { get; set; }
- public uint buffer_size { get; set; }
- public Clock clock { owned get; set; }
- public int dscp_qos { get; set; }
- public bool enable_rtcp { get; set; }
Whether the created media should send and receive RTCP
- public bool eos_shutdown { get; set; }
- public uint latency { get; set; }
- public string launch { owned get; set; }
- public uint max_mcast_ttl { get; set; }
- public Profile profiles { get; set; }
- public LowerTrans protocols { get; set; }
- public bool shared { get; set; }
- public bool stop_on_disconnect { get; set; }
- public SuspendMode suspend_mode { get; set; }
- public TransportMode transport_mode { get; set; }
Creation methods:
- public MediaFactory ()
Create a new MediaFactory instance.
Methods:
- public virtual Media? @construct (Url url)
Construct the media object and create its streams.
- public void add_role (string role, string fieldname, ...)
A convenience method to add
role
withfieldname
and additional arguments to the permissions of this. - public void add_role_from_structure (Structure structure)
A convenience wrapper around add_role_from_structure.
- public virtual void configure (Media media)
- public virtual Element? create_element (Url url)
- public virtual Pipeline create_pipeline (Media media)
- public virtual string gen_key (Url url)
- public AddressPool? get_address_pool ()
Get the AddressPool used as the address pool of this.
- public uint get_buffer_size ()
Get the kernel UDP buffer size.
- public Clock? get_clock ()
Returns the clock that is going to be used by the pipelines of all medias created from this factory.
- public bool get_do_retransmission ()
- public int get_dscp_qos ()
Get the configured media DSCP QoS.
- public uint get_latency ()
Get the latency that is used for receiving media
- public string? get_launch ()
Get the
gst_parse_launch
pipeline description that will be used in the default prepare vmethod. - public uint get_max_mcast_ttl ()
Get the the maximum time-to-live value of outgoing multicast packets.
- public Type get_media_gtype ()
Return the GType of the GstRTSPMedia subclass this factory will create.
- public string? get_multicast_iface ()
Get the multicast interface used for this.
- public Permissions? get_permissions ()
Get the permissions object from this.
- public Profile get_profiles ()
Get the allowed profiles of this.
- public LowerTrans get_protocols ()
Get the allowed protocols of this.
- public PublishClockMode get_publish_clock_mode ()
Gets if and how the media clock should be published according to RFC7273.
- public ClockTime get_retransmission_time ()
Get the time that is stored for retransmission purposes
- public SuspendMode get_suspend_mode ()
Get how media created from this factory will be suspended.
- public TransportMode get_transport_mode ()
Get if media created from this factory can be used for PLAY or RECORD methods.
- public bool is_bind_mcast_address ()
Check if multicast sockets are configured to be bound to multicast addresses.
- public bool is_enable_rtcp ()
Check if created media will send and receive RTCP
- public bool is_eos_shutdown ()
Get if media created from this factory will have an EOS event sent to the pipeline before shutdown.
- public bool is_shared ()
Get if media created from this factory can be shared between clients.
- public bool is_stop_on_disonnect ()
- public void set_address_pool (AddressPool? pool)
configure
pool
to be used as the address pool of this. - public void set_bind_mcast_address (bool bind_mcast_addr)
Decide whether the multicast socket should be bound to a multicast address or INADDR_ANY.
- public void set_buffer_size (uint size)
Set the kernel UDP buffer size.
- public void set_clock (Clock? clock)
Configures a specific clock to be used by the pipelines of all medias created from this factory.
- public void set_do_retransmission (bool do_retransmission)
Set whether retransmission requests will be sent for receiving media
- public void set_dscp_qos (int dscp_qos)
Configure the media dscp qos to
dscp_qos
. - public void set_enable_rtcp (bool enable)
Decide whether the created media should send and receive RTCP
- public void set_eos_shutdown (bool eos_shutdown)
Configure if media created from this factory will have an EOS sent to the pipeline before shutdown.
- public void set_latency (uint latency)
Configure the latency used for receiving media
- public void set_launch (string launch)
The
gst_parse_launch
line to use for constructing the pipeline in the default prepare vmethod. - public bool set_max_mcast_ttl (uint ttl)
Set the maximum time-to-live value of outgoing multicast packets.
- public void set_media_gtype (Type media_gtype)
Configure the GType of the GstRTSPMedia subclass to create (by default, overridden construct vmethods may of course do something different)
- public void set_multicast_iface (string? multicast_iface)
configure
multicast_iface
to be used for this. - public void set_permissions (Permissions? permissions)
Set
permissions
on this. - public void set_profiles (Profile profiles)
Configure the allowed profiles for this.
- public void set_protocols (LowerTrans protocols)
Configure the allowed lower transport for this .
- public void set_publish_clock_mode (PublishClockMode mode)
Sets if and how the media clock should be published according to RFC7273.
- public void set_retransmission_time (ClockTime time)
Configure the time to store for possible retransmission
- public void set_shared (bool shared)
Configure if media created from this factory can be shared between clients.
- public void set_stop_on_disconnect (bool stop_on_disconnect)
Configure if media created from this factory should be stopped when a client disconnects without sending TEARDOWN.
- public void set_suspend_mode (SuspendMode mode)
Configure how media created from this factory will be suspended.
- public void set_transport_mode (TransportMode mode)
Configure if this factory creates media for PLAY or RECORD modes.
Signals:
- public virtual signal void media_configure (Media media)
- public virtual signal void media_constructed (Media media)
Inherited Members:
All known members inherited from class GLib.Object