Table of Contents

Packaging & the Device

What the extension adds to your .opv package, where it ends up on the display, and how to check that it arrived.

Table of Contents

What Packaging Adds

The Native Helper

What Lands on the Display

Preparing the Display

Checking a Deployed Package

Building the Extension Package

What Packaging Adds

When the extension is in the project, packaging runs its installer plugin, which:

Adds To For
VideoPlayerConfiguration.pbuff — the player list, compiled from the JSON after any configuration upgrades .appinfo/ Every platform
VideoPlayerConfiguration.pbuff.json — the configuration as packaged, upgrades applied .appinfo/ Every platform
Ahsoka.Video.service — the oneshot bring-up unit The package's service-setup folder, installed as a systemd unit OpenViewLinuxPro only
ahsoka-video-setup.sh — the bring-up script the unit runs .appinfo/video/ OpenViewLinuxPro only

Both resources are written with LF line endings regardless of the machine you package on.

The unit is a plain oneshot with no WantedBy; it does not run at boot by itself. VideoService starts it when the application starts, and only if a GMSL or analog player is configured:

[Unit]
Description=Ahsoka GMSL/CSI camera bring-up (lazy driver load + media-controller setup)
DefaultDependencies=false

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/Ahsoka/current/.appinfo/video/ahsoka-video-setup.sh

The Native Helper

The pipelines run in Ahsoka.VideoPlayer, a native executable that ships in the NuGet package under platform/<family>/AhsokaLib/. The package's buildTransitive targets copy it into your published application's AhsokaLib/ folder, choosing the platform from the publish runtime identifier:

Runtime identifier Platform folder
linux-arm64 OpenViewLinuxPro
linux-arm OpenViewLinux

Any other runtime identifier — a desktop build — copies nothing, which is correct: the desktop service does not use the helper.

At startup on the device, each player searches the application's folder (recursively) for Ahsoka.VideoPlayer, marks it executable, and logs where it found it. If it is missing, the log says so and every play reports Unavailable:

No Video Player found relative to application. Ensure that Ahsoka.VideoPlayer.OpenViewLinuxPro exists in the AhsokaLib Directory

The Pro platform folder also carries the VCIC commissioning tool — orlaco-commission.sh, someip.py and orlaco-commission.README.md — so it is installed alongside the helper.

What Lands on the Display

The installed application lives under /usr/local/Ahsoka/current/:

Path What
.appinfo/VideoPlayerConfiguration.pbuff The player list the service reads
.appinfo/VideoPlayerConfiguration.pbuff.json A readable copy of it
.appinfo/video/ahsoka-video-setup.sh Bring-up script (Pro/Flex)
AhsokaLib/Ahsoka.VideoPlayer Native pipeline helper
AhsokaLib/orlaco-commission.sh, someip.py VCIC commissioning tool (Pro)
/usr/local/Ahsoka/devices/video/ Port symlinks, published by the bring-up at runtime
Your own media, such as media/demo.mp4 Video files a File player plays by relative path, when the project copies them to its output — see Shipping a File with Your Application

Preparing the Display

Step Why
Prep Target with Developer Toolkit 5.30.0 or newer Installs /etc/modprobe.d/ahsoka-video-blacklist.conf. The GMSL/analog bring-up refuses to run without it. A Flex prepped before its deserializer was added to the blacklist still works; it just loads the driver at boot instead of on demand. Re-prep to restore that.
Set the camera-subnet address (VCIC) networkConfiguration in PackageInfo.json — see VCIC Cameras
Commission the cameras (VCIC) Once per display — see VCIC Cameras

Checking a Deployed Package

Over SSH on the display:

# Did the configuration and helper arrive?
ls -l /usr/local/Ahsoka/current/.appinfo/VideoPlayerConfiguration.pbuff*
find /usr/local/Ahsoka/current -name Ahsoka.VideoPlayer

# Is the prep blacklist there? (GMSL / analog)
ls -l /etc/modprobe.d/ahsoka-video-blacklist.conf

# What did the bring-up find?
journalctl -u Ahsoka.Video.service
ls -l /usr/local/Ahsoka/devices/video/

# Is a File player's file where it expects? (relative paths)
ls -l /usr/local/Ahsoka/current/media/

# Is a feed running?
pgrep -a Ahsoka.VideoPlayer

A successful bring-up ends with one symlink …/gmslN -> /dev/videoM line per camera and bring-up complete.

Building the Extension Package

This section is for working on the extension itself.

dotnet pack Ahsoka.Extensions.VideoPlayer/Ahsoka.Extensions.VideoPlayer.csproj

The pack:

  • copies each demo's source (no bin, obj, PackageOutput, .platform_support or .extensions) into DemoOutputs/ and zips it to demos/ in the package;
  • builds this documentation with DocFX and packs it to docs/ — the Toolkit's Docs & Help button needs docs/index.html. Pass -p:BuildDocs=false to skip it;
  • includes the native helpers already in BuildOutputs/Platform/. Those are produced by the Ahsoka.BuildInterop project's container build, which IGNORE_PREREQS=YES skips.

See Docs/VideoPlayer/README.md in the repository for building the documentation on its own.