This class manages the global instance of LibVLC, providing methods for initialization, disposal, and retrieving version information.

Static variables

staticread onlychangeset:String

Retrieves the LibVLC changeset.

Example: "aa9bce0bc4"

staticread onlyclock:Int64

Returns the current time as defined by LibVLC.

The unit is the microsecond.

Time increases monotonically (regardless of time zone changes and RTC adjustments).

The origin is arbitrary but consistent across the whole system (e.g. the system uptime, the time since the system was booted).

Note: On systems that support it, the POSIX monotonic clock is used.

staticread onlycompiler:String

Retrieves the LibVLC compiler version.

Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)"

staticread onlyinstance:Null<RawPointer<LibVLC_Instance_T>>

The instance of LibVLC that is used globally.

@:value(false)staticread onlyloading:Bool = false

Indicates whether the instance is still loading.

staticread onlyversion:String

Retrieves the LibVLC version.

Example: "1.1.0-git The Luggage"

Static methods

staticdispose():Void

Frees the LibVLC instance.

staticinlineinit(?options:Array<String>):Bool

Initializes the LibVLC instance if it isn't already.

Parameters:

options

The additional options you can add to the LibVLC instance.

Returns:

true if the instance was created successfully or false if there was an error or the instance is still loading.

staticinitAsync(?options:Array<String>, ?finishCallback:Bool ‑> Void):Void

Initializes the LibVLC instance asynchronously if it isn't already.

Parameters:

options

The additional options you can add to the LibVLC instance.

finishCallback

A callback that is called after it finishes loading.