Skip to content

Commit

Permalink
Revert 6dd68ac
Browse files Browse the repository at this point in the history
Updating the currently playing segment start time when the video starts playing is required in certain scenarios. For example, If a user revisits a page with a youtube video that they had previously partially watched, the video will resume from where they left off. If we don’t set `playingSegmentStart` on the play event, the first playing segment recorded will start at 0 (the beginning of the video) rather than the timecode the video resumed from.
  • Loading branch information
figureone committed May 25, 2018
1 parent 4f595f7 commit 26b8f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/x-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ H5P.VideoXAPI = (function ($) {
*/
self.getArgsXAPIPlayed = function (currentTime) {
var resultExtTime = formatFloat(currentTime);
//playingSegmentStart = resultExtTime;
playingSegmentStart = resultExtTime;

return self.getArgsXAPI({
verb: 'https://w3id.org/xapi/video/verbs/played',
Expand Down

0 comments on commit 26b8f94

Please sign in to comment.