Slide Previews and slide text are not shown in Theodul Engage player

Steps to reproduce

Steps to reproduce:
1. Ingest a video as presentation
2. Run full workflow including slide detection and OCR
3. View the result in Theodul engage player

Actual Results:
Slide Previews and corresponding slide text are not shown in most cases, only sometimes (unable to reproduce this behaviour!)

Expected Results:
Slide Previews and corresponding slide text are shown ALWAYS.

Workaround (if any):
Replaced the following code fragment in main.js of module
matterhorn-engage-theodul-plugin-tab-slidetext-2.2.1 (line 157 ff.):
...
if (segmentInformation !== undefined) {
$(segmentInformation).each(function(index, element) {
if (Engage.model.get("videoDataModel") && Engage.model.get("videoDataModel").get("duration") &&
element.time <= parseInt(Engage.model.get("videoDataModel").get("duration"))) {
var segmentText = "No slide text available.";

if (element.text)
segmentText = element.text;

var segmentPreview = undefined;
if (element !== undefined && element.previews !== undefined &&
element.previews.preview !== undefined && element.previews.preview.$ !== undefined) {
segmentPreview = element.previews.preview.$;
}
segments.push(new Segment((element.time / 1000), segmentPreview, segmentText));
} else {
Engage.log("Tab:Slidetext: Detected Segment with start time " + element.time / 1000 +
" that exceeds the duration of the video ");
}
});
...

with the code from 2.1.1:
...
if (segmentInformation !== undefined) {
$(segmentInformation).each(function(index, element) {
var segmentText = "No slide text available.";

if (element.text)
segmentText = element.text;

var segmentPreview = element.previews.preview.$;
segments.push(new Segment((element.time / 1000), segmentPreview, segmentText));
});

...

Now it's working!!

Activity

Show:
Lars Kiesow
October 4, 2016, 10:12 PM

, iirc, you already had a look at this. If you will not work on this, please re-assign to

Lars Kiesow
January 17, 2017, 5:47 PM

This is fixed, isn't it?

Dietmar Zenker
January 18, 2017, 8:27 AM

To some extend... After update from 2.2.1 to 2.2.4, sometimes slide previews and text show up, sometimes they don't. After multiple reloads eventually they appear...

Fixed and reviewed

Assignee

Rüdiger Rolf

Reporter

Dietmar Zenker

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major