Skip to content

Local Video widget is not supported on the Electron player (Linux) #269

Open

Description

@NichSchlagen

Related: #81 ("Video: locally stored video" in the Feature Parity Check)

Summary
The Local Video widget (core-localvideo) renders as an empty region on the Electron player. On the .NET Windows player it plays a file from a local path (e.g. C:\Videos\film.mp4). We need the same on Linux, e.g. /home/xibo/Videos/film.mp4 or file:///home/xibo/Videos/film.mp4.

Why this matters
We play very large video files (several GB, up to ~10 GB per file) on many displays. Uploading these to the CMS library is not practical: storage on the CMS, XMDS download time and bandwidth to every display. With the Windows player we put the files on the device (or a network share) and reference them with Local Video. Without this, we can't move these displays from Windows to the Electron player on Linux.

Root cause (as far as I can see)
Checked against xibo-layout-renderer@39799d1 and electron-player@a24ac6d:

  • The CMS exports the widget as type="localvideo", render="native", with the path in the uri option (modules/localvideo.xml).
  • composeResourceUrlByPlatform() in src/Modules/Generators/Generators.ts handles only two cases for ConsumerPlatform.ELECTRON: render === 'html' (plus ticker and webpage), and render === 'native' && isImageOrVideo. isImageOrVideo is true only for image and video, so localvideo gets an empty URL.
  • createMediaElement() creates a <video> element only for mediaType === 'video'. localvideo gets a hidden <div>.
  • localvideo does not appear anywhere in electron-player or xibo-layout-renderer.

Expected behaviour

  • Treat localvideo like video: a <video> element / video.js player, with scaleType, mute, showFullScreen and loop respected.
  • Use the uri option directly as the source and accept:
    • absolute Linux paths (/path/to/file.mp4), converted to a file:// URL,
    • file:// URLs,
    • http(s):// URLs (and RTSP, as the widget help text says, if feasible).

Notes

  • The renderer window's CSP is default-src * 'self' data: blob: .... * does not cover file:, so file: (or a local route on the localhost:9696 file server that serves whitelisted local paths) would probably be needed.
  • The CMS validator for the Video Path field accepts uri or windowsPath. A plain Linux path like /home/xibo/film.mp4 may be rejected in the CMS, so the validator may need a Linux-path condition as well.

Environment

  • Player: Electron player, .deb build, Debian 13 (KDE Plasma, Wayland)

Activity

  1. seankinney8 commented on Oct 21, 2026

    @seankinney8

    Can confirm - same thing happened to mine after patching this feature/function no longer works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions