Activities: Interactive Content – H5P

mod_hvp
Maintained by Picture of Frode Petterson Frode Petterson, Picture of Thomas Marstrander Thomas Marstrander, Picture of Pål Jørgensen Pål Jørgensen, Picture of Svein-Tore Griff With Svein-Tore Griff With
Create and add rich content inside your LMS for free. Some examples of what you get with H5P are Interactive Video, Quizzes, Collage and Timeline.
6823 sites
10k downloads
203 fans
Moodle 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5

One of the great benefits with using H5P is that it gives you access to lots of different interactive content types.

Another great benefit with H5P is that it allows you to easily share and reuse content. To reuse content, you just download the H5P you would like to edit and make your changes – e.g. translate to a new language or adjust it to a new situation.

H5P is:

  • Open Source
  • Free to Use
  • HTML5
  • Responsive

Note that it is currently possible for people with programming skills to cheat in H5P interactions and obtain the full score without knowing the correct answers. H5Ps must not be used for exams or similar.

The H5P community is actively contributing to improve H5P. Updates and new features are continuously made available on the community portal H5P.org.

View our setup for Moodle to get information on how to get started with H5P.

GDPR Compliance

Information useful to help you achieve GDPR compliance while using this plugin can be found at H5P.org's GDPR Compliance page.

Sets

This plugin is part of set Gamification.

Potential privacy issues

The plugin is set up to automatically download content types and provide anonymous usage data which can be disabled through settings.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Picture of Frode Petterson
Frode Petterson (Lead maintainer)
Picture of Thomas Marstrander
Thomas Marstrander: Developer
Picture of Pål Jørgensen
Pål Jørgensen: Developer
Picture of Svein-Tore Griff With
Svein-Tore Griff With: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Thomas Marstrander
    Fri, 22 Jun 2018, 5:22 PM
    I agree, that would be amazing smile There are no plans for adding this yet as far as I know. We accept pull requests at github: https://github.com/h5p/h5p-moodle-plugin, and feature requests at: https://h5p.org/forum/16. The most popular feature requests gets priority when introducing new features.
  • Picture of Nicolas Dunand
    Fri, 22 Jun 2018, 5:25 PM
    Thomas, actually the PR exists since last October ( https://github.com/h5p/h5p-moodle-plugin/pull/173 ) and so does the actual feature request on your forums: https://h5p.org/node/121088
  • Picture of Thomas Marstrander
    Fri, 22 Jun 2018, 5:50 PM
    You're right, thanks Nicolas. Unfortunately this feature is not much requested so it has not received priority yet. I'll try to get it prioritized for one of the next sprints since it seems well written, low-risk and ready for merging. Thanks again, and sorry for the slow process.
  • Picture of Nicolas Dunand
    Fri, 22 Jun 2018, 7:47 PM
    Thanks Thomas for your answer, and also many thanks for sharing your great H5P tools!
  • Picture of Lea Cohen
    Tue, 10 Jul 2018, 6:08 PM
    Hi

    Thanks for a great plugin!

    I'm using version 2018042600 of h5p on Moodle 3.3. I understand there should be an Atto Editor button that enables embedding h5p activities into other resources or activities, but I don't see it. How can I enable it?

    Thanks
  • Picture of Bienvenido Villadelrey
    Tue, 17 Jul 2018, 2:04 PM
    Hi Rob Bobeldk,

    This is not available yet but there has been some progress in creating the plugin. You can find out more about it here: https://h5p.org/node/66275.

    -BV52
  • Picture of Akram Adem
    Fri, 20 Jul 2018, 4:00 AM
    We are getting error while trying to upgrade to 1.9 version. our method is pulling the files from a repo in github to update our Moodle instance. is there away where we can upgrade to 1.9 without losing any data and issues free?

    Thanks

    Debug info: Table 'mdl_hvp' already exists
    CREATE TABLE mdl_hvp (
    id BIGINT(10) NOT NULL auto_increment,
    course BIGINT(10) NOT NULL DEFAULT 0,
    name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    intro LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    introformat SMALLINT(4) NOT NULL DEFAULT 0,
    json_content LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    embed_type VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    disable BIGINT(10) NOT NULL DEFAULT 0,
    main_library_id BIGINT(10) NOT NULL,
    content_type VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci,
    author VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci,
    license VARCHAR(7) CHARACTER SET utf8 COLLATE utf8_general_ci,
    meta_keywords LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    meta_description LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    filtered LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    slug VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    timecreated BIGINT(10) NOT NULL DEFAULT 0,
    timemodified BIGINT(10) NOT NULL DEFAULT 0,
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Activity data'
    ;
    CREATE TABLE mdl_hvp_xapi_results (
    id BIGINT(10) NOT NULL auto_increment,
    content_id BIGINT(10) NOT NULL,
    user_id BIGINT(10) NOT NULL,
    parent_id BIGINT(10),
    interaction_type VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    description LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    correct_responses_pattern LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    response LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    additionals LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    raw_score MEDIUMINT(6),
    max_score MEDIUMINT(6),
    CONSTRAINT PRIMARY KEY (id)
    , UNIQUE KEY mdl_hvpxapiresu_idconuse2_uix (id, content_id, user_id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Stored xAPI events'
    ;
    CREATE TABLE mdl_hvp_content_user_data (
    id BIGINT(10) NOT NULL auto_increment,
    user_id BIGINT(10) NOT NULL,
    hvp_id BIGINT(10) NOT NULL,
    sub_content_id BIGINT(10) NOT NULL,
    data_id VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci,
    data LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    preloaded TINYINT(1) NOT NULL,
    delete_on_content_change TINYINT(1) NOT NULL,
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Stores user data about the content'
    ;
    CREATE TABLE mdl_hvp_libraries (
    id BIGINT(10) NOT NULL auto_increment,
    machine_name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    title VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    major_version SMALLINT(4) NOT NULL,
    minor_version SMALLINT(4) NOT NULL,
    patch_version SMALLINT(4) NOT NULL,
    runnable TINYINT(1) NOT NULL,
    fullscreen TINYINT(1) NOT NULL DEFAULT 0,
    embed_types VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    preloaded_js LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    preloaded_css LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    drop_library_css LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    semantics LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    restricted TINYINT(1) NOT NULL DEFAULT 0,
    tutorial_url VARCHAR(1000) CHARACTER SET utf8 COLLATE utf8_general_ci,
    has_icon TINYINT(1) NOT NULL DEFAULT 0,
    CONSTRAINT PRIMARY KEY (id)
    , KEY mdl_hvplibr_macmajminpatru2_ix (machine_name, major_version, minor_version, patch_version, runnable)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Stores information about libraries.'
    ;
    CREATE TABLE mdl_hvp_libraries_hub_cache (
    id BIGINT(10) NOT NULL auto_increment,
    machine_name VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    major_version SMALLINT(4) NOT NULL,
    minor_version SMALLINT(4) NOT NULL,
    patch_version SMALLINT(4) NOT NULL,
    h5p_major_version SMALLINT(4),
    h5p_minor_version SMALLINT(4),
    title VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    summary LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    description LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    icon VARCHAR(511) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    created_at BIGINT(11) NOT NULL,
    updated_at BIGINT(11) NOT NULL,
    is_recommended TINYINT(1) NOT NULL,
    popularity BIGINT(10) NOT NULL,
    screenshots LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    license LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    example VARCHAR(511) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    tutorial VARCHAR(511) CHARACTER SET utf8 COLLATE utf8_general_ci,
    keywords LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    categories LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
    owner VARCHAR(511) CHARACTER SET utf8 COLLATE utf8_general_ci,
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Caches content types from the H5P hub.'
    ;
    CREATE TABLE mdl_hvp_libraries_libraries (
    id BIGINT(10) NOT NULL auto_increment,
    library_id BIGINT(10) NOT NULL,
    required_library_id BIGINT(10) NOT NULL,
    dependency_type VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Library dependencies'
    ;
    CREATE TABLE mdl_hvp_libraries_languages (
    id BIGINT(10) NOT NULL auto_increment,
    library_id BIGINT(10) NOT NULL,
    language_code VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    language_json LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Translations for libraries'
    ;
    CREATE TABLE mdl_hvp_libraries_cachedassets (
    id BIGINT(10) NOT NULL auto_increment,
    library_id BIGINT(10) NOT NULL,
    hash VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    CONSTRAINT PRIMARY KEY (id)
    , UNIQUE KEY mdl_hvplibrcach_libhas2_uix (library_id, hash)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Use to know which caches to clear when a library is updated'
    ;
    CREATE TABLE mdl_hvp_contents_libraries (
    id BIGINT(10) NOT NULL auto_increment,
    hvp_id BIGINT(10) NOT NULL,
    library_id BIGINT(10) NOT NULL,
    dependency_type VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    drop_css TINYINT(1) NOT NULL,
    weight BIGINT(10) NOT NULL,
    CONSTRAINT PRIMARY KEY (id)
    , KEY mdl_hvpcontlibr_dro2_ix (drop_css)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Store which library is used in which content.'
    ;
    CREATE TABLE mdl_hvp_events (
    id BIGINT(10) NOT NULL auto_increment,
    user_id BIGINT(10) NOT NULL,
    created_at BIGINT(10) NOT NULL,
    type VARCHAR(63) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    sub_type VARCHAR(63) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    content_id BIGINT(10) NOT NULL,
    content_title VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    library_name VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    library_version VARCHAR(31) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Keep track of logged H5P events'
    ;
    CREATE TABLE mdl_hvp_tmpfiles (
    id BIGINT(10) NOT NULL,
    CONSTRAINT PRIMARY KEY (id)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='Keep track of files uploaded before content is saved'
    ;
    CREATE TABLE mdl_hvp_counters (
    id BIGINT(10) NOT NULL auto_increment,
    type VARCHAR(63) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    library_name VARCHAR(127) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    library_version VARCHAR(31) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
    num BIGINT(10) NOT NULL,
    CONSTRAINT PRIMARY KEY (id)
    , KEY mdl_hvpcoun_typliblib2_ix (type, library_name, library_version)
    )
    ENGINE = InnoDB
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE = utf8_general_ci
    COMMENT='A set of global counters to keep track of H5P usage'
    Error code: ddlexecuteerror
    Stack trace:

    line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
    line 1041 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
    line 425 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
    line 370 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
    line 766 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
    line 508 of /lib/upgradelib.php: call to upgrade_plugins_modules()
    line 1850 of /lib/upgradelib.php: call to upgrade_plugins()
    line 694 of /admin/index.php: call to upgrade_noncore()
  • Picture of josue avendaño
    Fri, 20 Jul 2018, 6:38 AM
    Hi!

    I have an strange problem, I install the plugin and we créate an activity, perfectly without problems, and whem I begin to configure and choose specific activity, and press install the section disappear, but no problema wait few minutes and reload the page and ready, now i can use the installed option créate the activity and and press save y show but the page is just and a White page without any excercise.
  • Picture of Frode Petterson
    Fri, 20 Jul 2018, 3:13 PM
    @Akram Adem
    Be sure that you pull the correct tag. Master is not stable. Also, you have to remember to update the submodules as well.
    Example command: https://github.com/h5p/h5p-moodle-plugin#beta-version

    @josue avendaño
    Please check your browser's JavaScript console for errors. Ctrl+Shift+J to open in Chrome. Also, keep an eye on the server's error_log file for any messages.
  • Picture of Akram Adem
    Fri, 20 Jul 2018, 10:36 PM
    @Frode Petterson,

    Thank you for your reply. We don't use h5p repo , we downloaded all files for the new version then we uploaded it into our own git-hub repo. then we are pulling the code into our master moodle repo when launching the instance.
    Are we doing something wrong here?
    Thank you
  • Picture of Frode Petterson
    Fri, 20 Jul 2018, 11:40 PM
    @Akram Adem
    No, doing it like this should be fine!
    I'm very puzzled by why it's trying to install the database tables again...
  • Picture of Sam Mudle
    Tue, 24 Jul 2018, 12:34 AM
    Question: Our school blocks all YouTube videos. Would h5p work for mp4 videos hosted on the same server that moodle is hosted on?
  • Picture of Thomas Marstrander
    Wed, 25 Jul 2018, 8:16 PM
    Yes, there should be no problem in using mp4 videos.
  • Picture of Conor O'Neill
    Fri, 10 Aug 2018, 11:09 PM
    Hi Folks - just wondering if other people are experiencing problems uploading "Presentation" type examples to Moodle?
    Were running version 3.5.1 of Moodle, some example with load correctly but presentations won't load?

    Thanks
  • Picture of Drew Gayheart
    Fri, 10 Aug 2018, 11:47 PM
    Hello -

    I am using the H5P Presentation activity in a Moodle course. When my presentation is complete I copy the embed link to the course topic to make my presentation embedded into the course topic. I like the way this works because it's one less click for a student to view the presentation; the presentation is viewable upon opening the course.

    I am having a problem with it though. Full screen on the embedded presentation doesn't work correctly. When the user clicks the full screen icon, half of the screen on the monitor does not get used, and is black. Is there a way around this? I want the user to be able to view this presentation properly in full screen when embedded. Could there possibly be a change in the iframe script that I could make?

    Any help / insight you may have would be much appreciated. Thanks in advance.


1 2 3 4 5 6 7 8 9 10 11
Please login to post comments