Skip to content

DevicePaths

Static class in Oadm.Sdk.Vapix · Oadm.Sdk.dll

The one check that a path stays on the device’s own address (SDK 0.7.0): a page of its web interface, an application’s own page, a custom path. Used by the server and client parts alike (no Avalonia).

public static class DevicePaths
static bool IsOnDevice(string? path)

Whether path is a path on the device only: starts with one “/”, no “//” anywhere (no scheme such as “http://”, no host), no “", no “..” segment (also percent-encoded), no spaces or control characters. Query and fragment may follow (“/local/app/index.html#/a?b=c”).

static string? ToDevicePath(string? page)

page as a path on the device: trimmed, with a leading “/” added when it has none (“local/app/index.html” becomes “/local/app/index.html”); null when it is empty or would leave the device (DevicePaths.IsOnDevice).