Class VersionUtility
Provides utility methods for checking version compatibility and feature support based on remote version strings.
Inheritance
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public static class VersionUtility : object
Methods
ClusteringVersionSupport(String)
Determines the clustering version supported by the remote endpoint.
Declaration
public static int ClusteringVersionSupport(string remoteVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | remoteVersion | The version string of the remote endpoint to check. |
Returns
| Type | Description |
|---|---|
| System.Int32 |
|
Remarks
Clustering v2 is supported starting from version 1.24.0. Earlier versions or unparseable version strings default to clustering v1 support.
IsRemoteEligibleToReceiveTransportCCReports(String, String)
Determines whether the remote version is eligible to receive transport wide cc reports and adapt based on them.
Declaration
public static bool IsRemoteEligibleToReceiveTransportCCReports(string remoteVersion, string minVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | remoteVersion | |
| System.String | minVersion |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoteSupportsBitrateRequests(String)
Determines whether the remote version supports bitrate requests.
Declaration
public static bool RemoteSupportsBitrateRequests(string remoteVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | remoteVersion | The version string of the remote endpoint to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
Bitrate requests are supported starting with version 1.13.1. If the version string cannot be parsed, this method returns false.
RemoteSupportsClientSideRedirection(String)
Determines whether the remote version supports client-side redirection.
Declaration
public static bool RemoteSupportsClientSideRedirection(string remoteVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | remoteVersion | The version string of the remote endpoint to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
Client-side redirection is supported starting with version 1.12.1. If the version string cannot be parsed, this method returns false.
RemoteSupportsSynchronizedStreamGroups(String)
Determines whether the remote version supports synchronized stream groups.
Declaration
public static bool RemoteSupportsSynchronizedStreamGroups(string remoteVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | remoteVersion | The version string of the remote endpoint to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
Synchronized stream groups are supported starting with version 1.25.0. If the version string cannot be parsed, this method returns false.