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.

staticread onlycompiler:String

Retrieves the LibVLC compiler version.

staticread onlyinstance:Null<Pointer<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.

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.