xAPI - Interactive Video Completion

I used the below code to trigger a completion event and eveything was working and I was able to trigger a completion event for any content type (videos, quizzes, .etc) :

H5P.externalDispatcher.on('xAPI', function (event) {
    switch (event.getVerb()) {
        case 'completed':

            // Do something here

            break;
    }
});

 

 

it's not working when a video is completed now although the same code is still working when a quiz is completed

 

The attachment shows the "event.getVerb()" when I'm trying the Quiz

Summary: 
xAPI - Interactive Video Completion