Fill in the blanks in Interactive videos does not return the correct max score

Hi,

Versions

Drupal 8

H5P module 8.x-1.0-rc17

Interactive Video (1.22.4)

Bug

The problem is with the Fill in the Blanks library that's used within Interactive videos. Unless you interact with it, the max score always returns 0. If you interact with it it returns the correct max score. Therefore we are getting incorrect max score values if users haven't interacted with all the fill in the blanks instances on a Interactive video. This is not the case with other libraries such as True / false or Mark the words.

 H5P.instances[0].video.on('stateChange', function (state) {
        if (state.data === 0 && count === 0) {
          console.log(H5P.instances[0].getMaxScore());
        }
 });
 
Summary: 
Fill in the blanks in Interactive videos does not return the correct max score
Content types: 
BV52's picture

Hi Bez,

For some reason this works for me. Can you please test the content attached and send a screenshot of the score.

-BV

otacke's picture

Hi!

Just fixed that in https://github.com/h5p/h5p-blanks/pull/69

Best,
Oliver