<< Click to display table of contents >> LoadGStreamerLibraries Procedure |
[Re]Loads GStreamer libraries from the specified Path.
Unit [VCL and LCL] MRVGStreamer;
Unit [FMX] fmxMRVGStreamer;
Syntax
procedure LoadGStreamerLibraries(const Path: string);
You can use this procedure for loading (or reloading) GStreamer libraries located in a specific directory. If Path is empty, GStreamer libraries are loaded from the default location.
If you do not call this procedure, GStreamer will be loaded from the default location when necessary.
On Windows, the default location is stored by the GStreamer installer in the following system environment variables:
•GSTREAMER_1_0_ROOT_X86_64 or GSTREAMER_1_0_ROOT_MSVC_X86_64 or GSTREAMER_1_0_ROOT_MINGW_X86_64: GStreamer 1.0 for Win64
•GSTREAMER_SDK_ROOT_X86_64: GStreamer 0.1 for Win64
•GSTREAMER_1_0_ROOT_X86 or GSTREAMER_1_0_ROOT_MSVC_X86 or GSTREAMER_1_0_ROOT_MINGW_X86: GStreamer 1.0 for Win32
•GSTREAMER_SDK_ROOT_X86: GStreamer 0.1 for Win32
RVMedia uses these variables to find the default GStreamer location.
If the both versions (0.1 and 1.0) of GStreamer are available, GStreamer 1.0 is loaded.
You can specify Path to load GStreamer libraries from the specified location. Path may be a root GStreamer folder or its "bin" subfolder. Ending "\" is optional.
For macOS, the recommended way of installing GStreamer is the runtime installer from https://gstreamer.freedesktop.org/download/#macos .
(an alternative way, using Homebrew package, is not recommeded).
The default location for GStreamer is '/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/'. If Path is empty, RVMedia loads GStreamer from this location.