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

Video with only one segment cannot be displayed by Engage UI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: 2.2.1
    • Fix versions: 2.3.0
    • Components: Engage User Interface
    • Labels:
      None
    • Severity:
      Non Functioning
    • Steps to reproduce:
      Hide
      Steps to reproduce:

      1. Ingest and publish a video to Engage UI where only one segment will be produced
      2. Load the video via the Engage UI

      Actual Results:

      An error page is presented (see attachments). An error message is printed to the browser console:

          Uncaught TypeError: Cannot read property 'duration' of undefined (utils.js:206)

      This code was introduced by MH-11668, but the bug seems to be in the passed `segments` argument: in case there are multiple segments it is an array where as with only one segment it is the segment object directly.

      Expected Results:

      The player loads and displays the video.

      Workaround (if any):

      While debugging one can stop at utils.js:174 and manually set `segments` to `[segments]`. The page is then loading correctly.
      Show
      Steps to reproduce: 1. Ingest and publish a video to Engage UI where only one segment will be produced 2. Load the video via the Engage UI Actual Results: An error page is presented (see attachments). An error message is printed to the browser console:     Uncaught TypeError: Cannot read property 'duration' of undefined (utils.js:206) This code was introduced by MH-11668 , but the bug seems to be in the passed `segments` argument: in case there are multiple segments it is an array where as with only one segment it is the segment object directly. Expected Results: The player loads and displays the video. Workaround (if any): While debugging one can stop at utils.js:174 and manually set `segments` to `[segments]`. The page is then loading correctly.

      TestRail: Results

        Attachments

        1. error-page.png
          31 kB
          Matthias Neugebauer

          Issue links

            Activity

              People

              • Assignee:
                mstypa Michael Stypa
                Reporter:
                mtneug Matthias Neugebauer
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases