thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

xAPI progress not calculated correctly when user was seeking back and forth is special circumstances #1273

Closed torinfo closed 5 months ago

torinfo commented 5 months ago

When tracking video in xAPI, the progress (the total percentage of the video seen) is calculated together with an array of all the segments that were viewed.

To calculate the progress, the segments array is ordened and simplified, and in some special circumstances (seeking back end viewing a part again within an existing segment) the ordening and simplification is wrong.