Video with only one segment cannot be displayed by Engage UI

Steps to reproduce

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.

Status

Assignee

Michael Stypa

Reporter

Matthias Neugebauer

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure