We're updating the issue view to help you get more done. 

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!!

Status

Assignee

Rüdiger Rolf

Reporter

Dietmar Zenker

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

2.2.1

Priority

Major