Skip to content

helpers.network.multicast

Module Dependencies

Functions

is_multicast_ip(ip: str) → bool

Check if the given IP address is a multicast address (224.0.0.0/4).

Parameters
----------
ip: str
The IP address to check.

Returns
-------
bool
True if the IP is multicast, False otherwise.

extract_rtp_payload_type(sdp)

get_multicast_stream_info(interface: str, source_ip: str) → Optional[dict]