Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/common-books-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@asicupv/paella-opencast-plugins': minor
---

Adds Opencast Basic Statistics Plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "Basic Statistics Plugin"
description: This plugin sends analytics to Opencast, to be aggregated into basic statistics like view count
---

## org.opencast.paella.basicStatisticsPlugin

This plugin runs in the background an periodically sends analytics to Opencast. Stuff like when did the user press play, pause, or which parts of the video they watched.

**Exported as** `BasicStatisticsPlugin`.

## Configuration

You need to enable the `org.opencast.paella.basicStatisticsPlugin` plugin.

```json
{
"org.opencast.paella.downloadsPlugin": {
"enabled": true,
}
}
```

## Configuration parameters

- **`enabled`**: Enables or disables the plugin.
- Valid values: `true` / `false`
4 changes: 4 additions & 0 deletions packages/opencast-engage-paella-player/ui/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@
"enabled": true
},

"org.opencast.paella.basicStatisticsPlugin": {
"enabled": true
},

"es.upv.paella.embedapi": {
"enabled": true
}
Expand Down
7 changes: 7 additions & 0 deletions packages/paella-opencast-plugins/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import OpencastRelatedVideosDataPlugin, {
import OpencastRelatedDocumentsDataPlugin, {
type OpencastRelatedDocumentsDataPluginConfig,
} from './plugins/org.opencast.paella.data.relatedDocumentsDataPlugin';
import OpencastBasicStatisticsPlugin from './plugins/org.opencast.paella.basicStatistics';

export const opencastPlugins = [
{
Expand Down Expand Up @@ -94,6 +95,12 @@ export const opencastPlugins = [
],
} satisfies OpencastRelatedVideosDataPluginConfig,
},
{
plugin: OpencastBasicStatisticsPlugin,
config: {
enabled: true,
}
},
{
plugin: OpencastRelatedDocumentsDataPlugin,
config: {
Expand Down
Loading
Loading