Need help for H5P contents to display on Moodle Mobile App

Re: Need help for H5P contents to display on Moodle Mobile App

by Dani Palou -
Number of replies: 5
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Veena,

it's possible that your server is forcing X-Frame-Options to sameorigin. Can you please check that your server configuration allows iframe embedding? You should have something like:

X-Frame-Options "ALLOWALL"

Cheers,
Dani
In reply to Dani Palou

Re: Need help for H5P contents to display on Moodle Mobile App

by Veena Kulkarni -
Hi Dani,

Now we are using moodle mobile 3.9 and followed all configuration steps. Still we are not able to see Interactive video in Mobile ios app.
On Android version it is working
Please Help. We are having client delivery soon and interactive video contents are not loading.
In reply to Veena Kulkarni

Re: Need help for H5P contents to display on Moodle Mobile App

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Veena,

are you using the Moodle core H5P implementation or it's the mod_hvp plugin?

Are you using the official Moodle app (downloaded from the stores) or is it a custom app?

Cheers,
Dani
In reply to Dani Palou

Re: Need help for H5P contents to display on Moodle Mobile App

by Veena Kulkarni -

Hi Dani,


Thanks for the reply.

We have configured moodle mobile source code on Mac and done with some custom branding changes.

H5P interactive video is not working. we have installed web view plugin also. But same error is there. 

Is there any configuration missing?

Attachment IMG-20201020-WA0016.jpg
In reply to Veena Kulkarni

Re: Need help for H5P contents to display on Moodle Mobile App

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Veena,

if the WebView plugin is correctly installed on iOS then I don't know what could cause this sad Please check the Javascript console to see if there's any error that can help you figure out what's going on.

Cheers,
Dani
In reply to Dani Palou

Re: Need help for H5P contents to display on Moodle Mobile App

by Veena Kulkarni -
Hi Dani,

We have followed following steps to configure WebView plugin on iOS.

ionic cordova platform rm ios
ionic cordova plugin rm cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview@latest
npm install @ionic-native/ionic-webview@latest
config.xml file under the ios part.
"<preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />"
ionic cordova platform add ios
ionic cordova prepare ios
ionic cordova build ios

And it is working on browser if run through ionic serve command. Please check below screenshot.