Paella plugin: es.upv.paella.opencast.loader
This plugin configures how events are loaded into paella player.
The configurations for this plugin are done for each tenant. So you need to modify the plugins
section of the paella config file.
Control which flavors to play
An event can have many tracks, but an institution can configure which of these tracks are played and which are not.
To do it, you need to configure the streams
property. The streams
property is an array of rules. The first that
matches is the one that will be applied.
Each element in the array have two properties:
-
filter: select which devices the rule applies to.
Valid devices: Android, Linux, MacOS, Windows, iOS, iPad, iPhone, iPodTouch
-
tracks: select which tracks to import into paella.
tracks can be selected by flavors or tags
Example:
{
"streams": [
{
"filter": {
"system": ["*"]
},
"tracks": {
"flavors": ["*/*"],
"tags": []
}
}
]
}
Multiple audio tracks
An event can have multiple audio tracks. Paella only plays one at a time, but you can configure paella to allow the user to decide which one to play.
You need to configure the audioTag
property. It is an object where the key is the flavor to configure
and the value is the label that will be shown in the player interface.
Example:
Your mediapackage has three audio tracks for english, spanish and german languages
{
"audioTag": {
"audio_en/delivery" : "en",
"audio_es/delivery" : "es",
"audio_de/delivery" : "de"
}
}
Examples
An institution whant to play only */delivery
media tracks and has two audio tracks for
english and spanish languages
{
"es.upv.paella.opencast.loader": {
"streams": [
{
"filter": {
"system": ["*"]
},
"tracks": {
"flavors": ["*/delivery"],
"tags": []
}
}
],
"audioTag": {
"audio_en/delivery" : "en",
"audio_es/delivery" : "es"
}
}
}
An institution whants to play sidebyside/delivery
track on Android
and iOS
devices
and presenter/delivery
and presentation/delivery
on the other devices
{
"es.upv.paella.opencast.loader": {
"streams": [
{
"filter": {
"system": ["Android", "iOS"]
},
"tracks": {
"flavors": ["sidebyside/delivery"],
"tags": []
}
},
{
"filter": {
"system": ["*"]
},
"tracks": {
"flavors": ["presenter/delivery", "presentation/delivery"],
"tags": []
}
}
],
"audioTag": {
}
}
}