Video Player Extension
Ahsoka.Extensions.VideoPlayer puts live camera video, and video files stored on the display, on an OpenView display from an OpenPV application. Your application asks for a player by number; the extension brings up the capture hardware, builds and runs the GStreamer pipeline, and renders the feed onto a compositor surface.
It is a service you talk to through a client. Each feed is a player that you configure in the OpenPV Developer Toolkit — its input type, its source (a camera port or a file), and the surface it draws to — and the application plays and stops players by id. The application never builds a pipeline, never opens a device node, and never positions video on screen.
Table of Contents
Four Kinds of Input
Three are live cameras and one plays a file, and all four are driven by the same client calls:
| Input | What it is | How the feed arrives |
|---|---|---|
| GMSL | GMSL2 serialized cameras (TEVS / AR0234) behind a MAX9671x/MAX96724 deserializer | v4l2 capture node, rendered on the GPU |
| Analog | Composite cameras behind an isl7998x decoder | v4l2 capture node, deinterlaced and rendered on the GPU |
| VCIC | Orlaco EMOS IP cameras (ISO 17215), H.264 over RTP | UDP/RTP, hardware-decoded, rendered on the GPU; started and stopped over SOME/IP |
| File | An MP4, MOV or MKV file on the display, H.264 or H.265 | Read from storage, hardware-decoded, rendered on the GPU |
GMSL and Analog differ from VCIC only in how the camera is brought up and controlled. A File player also pauses, resumes and restarts. See GMSL & Analog Cameras, VCIC Cameras and Video Files.
Where the Pieces Run
flowchart LR
subgraph toolkit ["Developer Toolkit"]
ux["Video Player page"]
json["VideoPlayerConfiguration.json"]
ux --> json
end
subgraph device ["OpenView display"]
app["Your application"]
client["VideoServiceClient"]
svc["VideoService"]
exe["Ahsoka.VideoPlayer<br/>(one process per playing feed)"]
surf{{"IVI surface"}}
lm["LayerManager<br/>(screen config)"]
panel["Display"]
app --- client
client <-->|"requests / StatusUpdated"| svc
svc -->|"GStreamer pipeline"| exe
exe --> surf
lm -->|"x, y, size, visibility"| surf
surf --> panel
end
json -.->|"packaged into the .opv"| svc
The service reads the player list that packaging compiled from VideoPlayerConfiguration.json.
When you play a player it launches the native Ahsoka.VideoPlayer helper with a pipeline built for
that player's input, and exports the player's SurfaceID to it. Where that surface appears on
screen is decided by the screen configuration in your PackageInfo.json, through the LayerManager
— not by this extension.
Configured, Not Constructed
The whole basic API is three calls:
using Ahsoka.Services.Video;
var players = client.GetVideoPlayers(); // what the Toolkit configured
client.PlayVideo(new VideoPlaybackRequest { VideoPlayerID = 1, StatusUpdateInMs = 1000 });
client.StopVideo(new VideoPlayer { VideoPlayerID = 1 });
There is no URL, no device path and no rectangle in that code. The source and the surface came from
configuration; the on-screen position comes from the screen configuration. VCIC adds one call,
GetVcicStatus(), to find out which IP cameras are actually attached before you play them.
What Is Supported
Platform. Camera video and file playback run on OpenView Pro and Flex
(OpenViewLinuxPro). The P100 (Pro) has two GMSL ports, two analog inputs and up to four VCIC
cameras; the Flex has four GMSL ports. On the desktop the service runs a simulation — players report
Playing, but no video is shown.
Inputs. GMSL, Analog, VCIC and File (InputType.FileSource). InputType.USB exists in the API
but has no working pipeline, and the Toolkit does not offer it.
Transport. PauseVideo and ResumeVideo work on File players, and PositionVideo restarts
one from the beginning; seeking within a file is not supported yet. Cameras are live, so the
transport calls are ignored for them. See Supported & Not Supported.
Where to Go Next
| If you want to | Read |
|---|---|
| Get a camera on screen quickly | Getting Started |
| Understand players, the service and surfaces | Core Concepts |
Fill in VideoPlayerConfiguration.json |
Configuration Reference |
| Bring up GMSL or analog cameras | GMSL & Analog Cameras |
| Commission and use Orlaco IP cameras | VCIC Cameras |
| Play a video file | Video Files |
| Know exactly what each client call does | The Client API |
| Place, size, hide or move a feed | Rendering & Surfaces |
| Ship it to a display | Packaging & the Device |
| Start from working code | The Demos |
| Work out why a camera is dark | Troubleshooting |
| Decode an acronym | Glossary |
Note
These documents ship inside the Ahsoka.Extensions.VideoPlayer package, so what you are reading
always matches the package version installed in your project.