How to use uploaded preview image as player preview image?

87 views
Skip to first unread message

Tilman Schwaner

unread,
Mar 19, 2018, 2:57:58 PM3/19/18
to Opencast Users
Hi everyone,

I have changed etc/listproviders/event.upload.asset.options.properties to upload a preview image. It works fine in Search and Preview. But I want that image to be shown in the player before pressing play.
Can you please help me to reach this?

Best regards,
T. Schwaner

Greg Logan

unread,
Apr 5, 2018, 10:00:47 PM4/5/18
to Opencast Users
Hi Tilman,

I don't believe this is possible by default, but you could try adding a file with the appropriate flavour and seeing what happens.  Which player are you using?

G

--
You received this message because you are subscribed to the Google Groups "Opencast Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

kdo...@dce.harvard.edu

unread,
Apr 6, 2018, 8:16:23 AM4/6/18
to Opencast Users
Hi Greg & Tilman,

My apologies, I started responding last month, then wanted to test my response before sending and then, we didn’t have the "clone" code yet.

Background: Opencast-Paella player images are expected to be flavored "presenter/player+preview" and "presentation/player+preview". Where as the search & preview image are flavored "presenter/search+preview" or "presentation/search+preview". An element can only have one flavor.

We have the same use case as you. There are several possible solutions. At the moment, the one that is the least invasive (config only) requires the new "clone" workflow operation handler in the upcoming Opencast code, 5x. The "clone" operation can copy the uploaded "presenter/search+preview" image into a "presenter/player+preview" flavored element image.

An example psuedo-workflow with clone:
- If the search preview was uploaded (there is already a var for this), clone it into a player preview image, and skip player preview extract images video operation.
- Otherwise, skip clone and perform player preview extract images video operation as usual.

I will let you know if the "clone" operation works for us.

- Karen
Karen Dolan
Harvard University DCE



kdo...@dce.harvard.edu

unread,
Apr 6, 2018, 8:36:49 AM4/6/18
to Opencast Users
Tilman,

If you do not mind uploading the image file twice in the Admin UI, once for search preview and once for player preview, you can add a customized upload option as an additional line to the etc/listproviders/event.upload.asset.options.properties. See [1] for guidance.

The new row will look something like this:
EVENTS.EVENTS.NEW.UPLOAD_ASSET.OPTION.PLAYER_PREVIEW_IMAGE={"id":"attachment_player_preview_image", "type":"attachment", "flavorType": "presenter","flavorSubType": "player+preview", "displayOrder":5}

That new "EVENTS.EVENTS.NEW.UPLOAD_ASSET.OPTION.PLAYER_PREVIEW_IMAGE" id/key does not have translation for it, so it will show very ugly in the Admin UI if you do not edit the language files as described in [1]. There is an open pull request [2] to allow fallback display text to be added to custom upload options.

[1] https://docs.opencast.org/r/5.x/admin/configuration/asset-upload-ui/
[2] https://github.com/opencast/opencast/pull/152

- Karen

Karen Dolan
Harvard University DCE



kdo...@dce.harvard.edu

unread,
Apr 6, 2018, 10:18:21 AM4/6/18
to Opencast Users
HI Tilman,

I just realized when uploading a "presenter/player+preview", it will be replaced or a duplicated by the default workflow operation that parses the image from the video unless you can add a conditional to that operation.
If you know you will always upload your own "presenter/player+preview" image, you can remove the image operation from your workflow that creates the "presenter/player+preview" target flavor.
If you want the option of either uploading or creating the image from the video, the clone operation seems like a good solution.

- Karen
Reply all
Reply to author
Forward
0 new messages