Table of Contents

Class MediaEngineVideoBackendFactory

Namespace
Stride.Video.Backends
Assembly
Stride.Video.dll
public sealed class MediaEngineVideoBackendFactory : VideoBackendFactory
Inheritance
object
MediaEngineVideoBackendFactory
Extension Methods

Properties

Name

Stable identifier (e.g. "FFmpeg", "MediaEngine", "MediaCodec"). Used for PreferredBackendName matching.

public override string Name { get; }

Property Value

string

Priority

Higher value wins when multiple supported backends are registered and no preferred backend is set.

public override int Priority { get; }

Property Value

int

Methods

CreateBackend(VideoInstance)

Construct a backend bound to instance. Called once per VideoInstance.

public override VideoBackend CreateBackend(VideoInstance instance)

Parameters

instance VideoInstance

Returns

VideoBackend

DestroySystem(VideoSystem)

Counterpart to InitializeSystem(VideoSystem). Default: no-op.

public override void DestroySystem(VideoSystem system)

Parameters

system VideoSystem

InitializeSystem(VideoSystem)

Per-process / per-VideoSystem initialization (e.g. MFStartup, FFmpeg library preload). Called once when this factory is selected as the active backend. Default: no-op.

public override void InitializeSystem(VideoSystem system)

Parameters

system VideoSystem

IsSupported(GraphicsDevice)

Whether this backend can run on the current device/platform.

public override bool IsSupported(GraphicsDevice device)

Parameters

device GraphicsDevice

Returns

bool