FMLiveSwitchVersionUtility Class Reference

Provides utility methods for checking version compatibility and feature support based on remote version strings. More...

Class Methods

(int) + clusteringVersionSupportWithRemoteVersion:
 Determines the clustering version supported by the remote endpoint. More...
 
(bool) + isRemoteEligibleToReceiveTransportCCReportsWithRemoteVersion:minVersion:
 Determines whether the remote version is eligible to receive transport wide cc reports and adapt based on them. More...
 
(bool) + remoteSupportsBitrateRequestsWithRemoteVersion:
 Determines whether the remote version supports bitrate requests. More...
 
(bool) + remoteSupportsClientSideRedirectionWithRemoteVersion:
 Determines whether the remote version supports client-side redirection. More...
 
(bool) + remoteSupportsSynchronizedStreamGroupsWithRemoteVersion:
 Determines whether the remote version supports synchronized stream groups. More...
 

Detailed Description

Provides utility methods for checking version compatibility and feature support based on remote version strings.

Method Documentation

◆ clusteringVersionSupportWithRemoteVersion:

+ (int) clusteringVersionSupportWithRemoteVersion: (NSString *)  remoteVersion

Determines the clustering version supported by the remote endpoint.

    Clustering v2 is supported starting from version 1.24.0. Earlier versions or unparseable version strings default to clustering v1 support.
Parameters
remoteVersionThe version string of the remote endpoint to check.
Returns
2 if the remote version supports clustering v2 (version 1.24.0 or later); otherwise, 1 for clustering v1 support.

◆ isRemoteEligibleToReceiveTransportCCReportsWithRemoteVersion:minVersion:

+ (bool) isRemoteEligibleToReceiveTransportCCReportsWithRemoteVersion: (NSString *)  remoteVersion
minVersion: (NSString *)  minVersion 

Determines whether the remote version is eligible to receive transport wide cc reports and adapt based on them.

Parameters
remoteVersion
minVersion

◆ remoteSupportsBitrateRequestsWithRemoteVersion:

+ (bool) remoteSupportsBitrateRequestsWithRemoteVersion: (NSString *)  remoteVersion

Determines whether the remote version supports bitrate requests.

    Bitrate requests are supported starting with version 1.13.1. If the version string cannot be parsed, this method returns `false`.
Parameters
remoteVersionThe version string of the remote endpoint to check.
Returns
true if the remote version supports bitrate requests (version 1.13.1 or later); otherwise, false.

◆ remoteSupportsClientSideRedirectionWithRemoteVersion:

+ (bool) remoteSupportsClientSideRedirectionWithRemoteVersion: (NSString *)  remoteVersion

Determines whether the remote version supports client-side redirection.

    Client-side redirection is supported starting with version 1.12.1. If the version string cannot be parsed, this method returns `false`.
Parameters
remoteVersionThe version string of the remote endpoint to check.
Returns
true if the remote version supports client-side redirection (version 1.12.1 or later); otherwise, false.

◆ remoteSupportsSynchronizedStreamGroupsWithRemoteVersion:

+ (bool) remoteSupportsSynchronizedStreamGroupsWithRemoteVersion: (NSString *)  remoteVersion

Determines whether the remote version supports synchronized stream groups.

    Synchronized stream groups are supported starting with version 1.25.0. If the version string cannot be parsed, this method returns `false`.
Parameters
remoteVersionThe version string of the remote endpoint to check.
Returns
true if the remote version supports bitrate requests (version 1.25.0 or later); otherwise, false.