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... | |
OpenH264-related utility functions.
fm.liveswitch.openh264.Utility.Utility | ( | ) |
|
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.
|
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.
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. |
removeOld | If true, and if a new version of OpenH264 is required, this method will clean up the existing older library. |
|
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.
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. |
|
static |
Gets the url for the OpenH264 library needed for this platform.
|
static |
Gets the filename for the OpenH264 library for this platform.
|
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.
|
static |
Initializes OpenH264 native libraries.
|
static |
Determines whether this platform can run OpenH264.