MDL-77254 h5p: Add support to restored states
commitc8628576e3ea4cf46c55bd4e5503a4d8d2548c31
authorSara Arjona <sara@moodle.com>
Tue, 21 Feb 2023 15:46:05 +0000 (21 16:46 +0100)
committerSara Arjona <sara@moodle.com>
Tue, 4 Apr 2023 15:23:43 +0000 (4 17:23 +0200)
tree68f6c79bad1b1be9098e13ac109f5a478a51e9e3
parentfba0658777a10d553076c815a7f6a336ff0bbdb9
MDL-77254 h5p: Add support to restored states

The restored states should be treated differently, to avoid resetting
them by default the first time users access them.
In that case, the first time users access to content with restored
xAPI states, they should be displayed (instead of resetting them).
h5p/classes/framework.php
h5p/classes/player.php
lib/xapi/classes/local/state.php