Moodle for mobile

H5P on Moodle App

Picture of Dubbo Feng
Re: H5P on Moodle App

Hi Daniell,

In my embed_with_user.php

line 49

if(preg_match("/MoodleMobile/i", $_SERVER["HTTP_USER_AGENT"])){

        return true;


So, it only works on mobile app. Not working on mobile browser.

If you want it to work on mobile browser, just change line 63 to

$is_mobile = true;

Average of ratings: -