Skip to main content
Namespace: AlmediaSDK · static class The single entry point for host code. All methods and events are static; the SDK is a process-wide singleton in practice.

static string Version { get; }

The current SDK semantic version, e.g. "1.3.0".

static AlmediaStatus Status { get; }

The player’s current status. See AlmediaStatus. Never null. Reads AlmediaStatus.NotInitialized until the native bridge reports the first status, and again while Initialize applies a different configuration. Read this from components that mount after Initialize has already completed - by then the first OnStatusChanged may have already fired, and Status is the way to recover the latest value before subscribing for further changes.
Updated before OnStatusChanged fires, so a handler can read it directly. The flags of a Linked status can change at any time. Do not cache them in your own field - see Availability comes and goes.

static AlmediaProgress Progress { get; }

The latest progress snapshot, or null when the SDK has none. See AlmediaProgress. It is null before the first snapshot arrives, after the native SDK clears the snapshot with its message stream token (an account change, or a token the server refused), and after Initialize with a different configuration. The SDK keeps it in memory only. The SDK updates it before OnProgressUpdated fires. A scene that loads after the event can read the accessor, then subscribe for updates:
A snapshot is complete. Render the snapshot you get. Do not keep state from a previous snapshot.