Skip to content

Add new OC plugin BasicStatistics - #163

Draft
Arnei wants to merge 1 commit into
polimediaupv:mainfrom
Arnei:basicstatistics
Draft

Add new OC plugin BasicStatistics#163
Arnei wants to merge 1 commit into
polimediaupv:mainfrom
Arnei:basicstatistics

Conversation

@Arnei

@Arnei Arnei commented Aug 5, 2026

Copy link
Copy Markdown

Adds a new Opencast plugin that sends analytical data to the Opencast backend. As such the plugin subscribes to various paella player events, and creates new statistics events in the fashion that Opencast expects, then sends them to the backend in batches.

The basic flow is:

  • Wait for Paella event
  • If an event was received, check how that would map on an OC statistics event.
  • If it is a "playback" or "seek" event, debounce it in order to potentially consolidate events (e.g. if someone is mashing the playback button don't send a ton of events for that).
  • Then put events into a queue.
  • The VIDEO_WATCHED event is different. It is continuously generated through the TIMEUPDATE event.
  • Eventually the queue gets flushed, and the events get send to Opencast.

Putting this as a draft because the backend PR is still a draft.

The related Opencast backend PR: opencast/opencast#7839

Based off of the specification in this github discussion: https://github.com/orgs/opencast/discussions/7620

Note: I just saw that I should add a changeset, will do that shortly.

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 39c66e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asicupv/paella-opencast-plugins Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Adds a new Opencast plugin that sends analytical data to the Opencast
backend. As such the plugin subscribes to various paella player events,
and creates new statistics events in the fashion that Opencast expects,
then sends them to the backend in batches.

A PR for the backend part does not yet exist.

Based off of https://github.com/orgs/opencast/discussions/7620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant