Search Results for

    Show / Hide Table of Contents

    Class Utility

    OpenH264-related utility functions.

    Inheritance
    System.Object
    Utility
    Namespace: FM.LiveSwitch.OpenH264
    Assembly: FM.LiveSwitch.OpenH264.dll
    Syntax
    public class Utility : object

    Methods

    DownloadOpenH264()

    Checks if the current OpenH264 native library exists in the expected location. If so, return without doing anything. If not, then the current version will be downloaded from Cisco to that location. If an older version of the library is detected, it will be removed before downloading the new version. Not supported in UWP.

    Declaration
    public static Future<object> DownloadOpenH264()
    Returns
    Type Description
    Future<System.Object>

    DownloadOpenH264(String)

    Checks if the current OpenH264 native library exists in the expected location. If so, return without doing anything. If not, then the current version will be downloaded from Cisco to that location. If an older version of the library is detected, it will be removed before downloading the new version. Not supported in UWP.

    Declaration
    public static Future<object> DownloadOpenH264(string downloadPath)
    Parameters
    Type Name Description
    System.String downloadPath

    The location to download the OpenH264 library to. Should normally be left empty to allow the correct path to be chosen automatically. But for Android, it should point to the application directory.

    Returns
    Type Description
    Future<System.Object>

    DownloadOpenH264(String, Boolean)

    Checks if the current OpenH264 native library exists in the expected location. If so, return without doing anything. If not, then the current version will be downloaded from Cisco to that location. Not supported in UWP.

    Declaration
    public static Future<object> DownloadOpenH264(string downloadPath, bool removeOld)
    Parameters
    Type Name Description
    System.String downloadPath

    The location to download the OpenH264 library to. Should normally be left empty to allow the correct path to be chosen automatically. But for Android, it should point to the application directory.

    System.Boolean removeOld

    If true, and if a new version of OpenH264 is required, this method will clean up the existing older library.

    Returns
    Type Description
    Future<System.Object>

    GetDownloadUrl()

    Gets the url for the OpenH264 library needed for this platform.

    Declaration
    public static string GetDownloadUrl()
    Returns
    Type Description
    System.String

    GetLibraryName()

    Gets the filename for the OpenH264 library for this platform.

    Declaration
    public static string GetLibraryName()
    Returns
    Type Description
    System.String

    GetLoadLibraryName()

    Gets the filename that should be used to load the OpenH264 library. This may be different than the return value from GetLibraryName() if a symlink must be used to load the library.

    Declaration
    public static string GetLoadLibraryName()
    Returns
    Type Description
    System.String

    Initialize()

    Initializes OpenH264 native libraries.

    Declaration
    public static bool Initialize()
    Returns
    Type Description
    System.Boolean

    IsSupported()

    Determines whether this platform can run OpenH264.

    Declaration
    public static bool IsSupported()
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0