Class RtspSource
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.NodeBase
-
- com.azure.resourcemanager.videoanalyzer.models.SourceNodeBase
-
- com.azure.resourcemanager.videoanalyzer.models.RtspSource
-
public final class RtspSource extends SourceNodeBase
RTSP source allows for media from an RTSP camera or generic RTSP server to be ingested into a pipeline.
-
-
Constructor Summary
Constructors Constructor Description RtspSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointBaseendpoint()Get the endpoint property: RTSP endpoint information for Video Analyzer to connect to.RtspTransporttransport()Get the transport property: Network transport utilized by the RTSP and RTP exchange: TCP or HTTP.voidvalidate()Validates the instance.RtspSourcewithEndpoint(EndpointBase endpoint)Set the endpoint property: RTSP endpoint information for Video Analyzer to connect to.RtspSourcewithName(String name)Set the name property: Node name.RtspSourcewithTransport(RtspTransport transport)Set the transport property: Network transport utilized by the RTSP and RTP exchange: TCP or HTTP.
-
-
-
Method Detail
-
transport
public RtspTransport transport()
Get the transport property: Network transport utilized by the RTSP and RTP exchange: TCP or HTTP. When using TCP, the RTP packets are interleaved on the TCP RTSP connection. When using HTTP, the RTSP messages are exchanged through long lived HTTP connections, and the RTP packages are interleaved in the HTTP connections alongside the RTSP messages.- Returns:
- the transport value.
-
withTransport
public RtspSource withTransport(RtspTransport transport)
Set the transport property: Network transport utilized by the RTSP and RTP exchange: TCP or HTTP. When using TCP, the RTP packets are interleaved on the TCP RTSP connection. When using HTTP, the RTSP messages are exchanged through long lived HTTP connections, and the RTP packages are interleaved in the HTTP connections alongside the RTSP messages.- Parameters:
transport- the transport value to set.- Returns:
- the RtspSource object itself.
-
endpoint
public EndpointBase endpoint()
Get the endpoint property: RTSP endpoint information for Video Analyzer to connect to. This contains the required information for Video Analyzer to connect to RTSP cameras and/or generic RTSP servers.- Returns:
- the endpoint value.
-
withEndpoint
public RtspSource withEndpoint(EndpointBase endpoint)
Set the endpoint property: RTSP endpoint information for Video Analyzer to connect to. This contains the required information for Video Analyzer to connect to RTSP cameras and/or generic RTSP servers.- Parameters:
endpoint- the endpoint value to set.- Returns:
- the RtspSource object itself.
-
withName
public RtspSource withName(String name)
Set the name property: Node name. Must be unique within the topology.- Overrides:
withNamein classSourceNodeBase- Parameters:
name- the name value to set.- Returns:
- the NodeBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classSourceNodeBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-