Moodle Mobile - Render H5P iFrame, provide window with needed data and run core scripts

Description

Acceptance criteria:

  • output/mobile.php should define the data needed and pass it to a template or the HTML generated by view_assets.php

  • Must also define and return the 'javascript' property, which is responsible for attaching core scripts and running h5p.init()

  • Any refactors to view_assets, view.php and embed.php that will be required to support the new logic and not relying on $PAGE when adding assets

Description

See https://docs.moodle.org/dev/Mobile_support_for_plugins#Step_2._Creating_the_main_function

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

Thomas Marstrander

Labels

Funding

None

Code reviewer

None

Released

None

Priority

Medium