class

Emerald::VLC::Instance

Inherits Reference < Object

Manages a LibVLC runtime process instance and global settings.

Constants

DEFAULT_ARGS = ["--no-video-title-show", "--no-snapshot-preview", "--quiet", "--network-caching=1000", "--sub-source=marq", "--avcodec-hw=any"]

Default arguments passed to LibVLC for low-latency game engine integration

Constructors

default

Shared process-wide singleton LibVLC instance

Source
new(args : Array(String) = DEFAULT_ARGS)
Source
with_config(config : Core::VideoDecoderConfig) : Instance
Source

Class methods

changeset

Returns LibVLC changeset string

Source
compiler

Returns LibVLC compiler information

Source
version

Returns LibVLC version string (e.g. "3.0.23 Vetinari")

Source

Instance methods

finalize
Source
handle
Source
set_app_id(id : String, version : String = "1.0", icon : String = "") : Nil

Sets application identification metadata for audio mixers and system notifications

Source
set_user_agent(name : String, http : String = "") : Nil

Sets HTTP user-agent header for streaming media

Source