fm.liveswitch.openh264.Utility Class Reference

OpenH264-related utility functions. More...

Public Member Functions

 Utility ()
 

Static Public Member Functions

static fm.liveswitch.Future< Object > downloadOpenH264 ()
 Checks if the current OpenH264 native library exists in the expected location. More...
 
static fm.liveswitch.Future< Object > downloadOpenH264 (String downloadPath)
 Checks if the current OpenH264 native library exists in the expected location. More...
 
static fm.liveswitch.Future< Object > downloadOpenH264 (final String downloadPath, final boolean removeOld)
 Checks if the current OpenH264 native library exists in the expected location. More...
 
static String getDownloadUrl ()
 Gets the url for the OpenH264 library needed for this platform. More...
 
static String getLibraryName ()
 Gets the filename for the OpenH264 library for this platform. More...
 
static String getLoadLibraryName ()
 Gets the filename that should be used to load the OpenH264 library. More...
 
static boolean initialize ()
 Initializes OpenH264 native libraries. More...
 
static boolean isSupported ()
 Determines whether this platform can run OpenH264. More...
 

Detailed Description

OpenH264-related utility functions.

Constructor & Destructor Documentation

◆ Utility()

fm.liveswitch.openh264.Utility.Utility ( )

Member Function Documentation

◆ downloadOpenH264() [1/3]

static fm.liveswitch.Future<Object> fm.liveswitch.openh264.Utility.downloadOpenH264 ( )
static

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.

◆ downloadOpenH264() [2/3]

static fm.liveswitch.Future<Object> fm.liveswitch.openh264.Utility.downloadOpenH264 ( final String  downloadPath,
final boolean  removeOld 
)
static

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.

Parameters
downloadPathThe 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.
removeOldIf true, and if a new version of OpenH264 is required, this method will clean up the existing older library.

◆ downloadOpenH264() [3/3]

static fm.liveswitch.Future<Object> fm.liveswitch.openh264.Utility.downloadOpenH264 ( String  downloadPath)
static

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.

Parameters
downloadPathThe 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.

◆ getDownloadUrl()

static String fm.liveswitch.openh264.Utility.getDownloadUrl ( )
static

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

◆ getLibraryName()

static String fm.liveswitch.openh264.Utility.getLibraryName ( )
static

Gets the filename for the OpenH264 library for this platform.

◆ getLoadLibraryName()

static String fm.liveswitch.openh264.Utility.getLoadLibraryName ( )
static

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.

◆ initialize()

static boolean fm.liveswitch.openh264.Utility.initialize ( )
static

Initializes OpenH264 native libraries.

◆ isSupported()

static boolean fm.liveswitch.openh264.Utility.isSupported ( )
static

Determines whether this platform can run OpenH264.