Uploaded image for project: 'Opencast'
  1. MH-13415

timelinepreviews generates previews for ALL selected flavors when only 1 will be used in the player

    Details

    • Type: Task
    • Status: In Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 6.0
    • Fix versions: None

      Description

      The timeline previews operation creates preview images for the given track that can be shown when hovering above the timeline. It will generate the in image-count specified number of preview images, that will all be saved in one large image file. You can use the source-flavor to specify for which video the preview images will be generated.

      In the engage player only the preview images of one video are shown (the first that is found), so to make sure the correct preview images are shown, better generate them only for one video.

      But wildcard flavor selection is used

      <configuration key="source-flavor">*/trimmed</configuration>

      Which on running the workflow produces multiple timelinepreviews for each of the flavors even though only one is to be used - would be better to implement in code something like compose's

      <configuration key="process-first-match-only">true</configuration>

      ...
      String processOnlyOneConfig = StringUtils.trimToNull(operation.getConfiguration("process-first-match-only"));
          boolean processOnlyOne = processOnlyOneConfig != null && Boolean.parseBoolean(processOnlyOneConfig);
      ...
      

      Example:

      Flavors:

      presenter/trimmed
      presentation/trimmed
      presentation2/trimmed

      Before:

      Running:

      */trimmed

      Output (3 flavors):

      presenter/timeline+preview
      presentation/timeline+preview
      presentation2/timeline+preview

      After change:

      Running:

      <configuration key="source-flavor">*/trimmed</configuration>
      <configuration key="process-first-match-only">true</configuration>

      Output (1 Flavor > which one depends on input flavors):

      presenter/timeline+preview

      or
      presentation/timeline+preview

      or
      presentation2/timeline+preview

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                coosthuizen Corné Oosthuizen
                Reporter:
                coosthuizen Corné Oosthuizen
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  TestRail: Cases