Auto Play Video
Submitted by sudeera on Thu, 06/01/2017 - 04:32
Forums:
Hi,
I am trying to make intercative vdeo to play automaticaly when my moodle activity page load. I tried the below code in my custom.js file. But it seems to be not working. Any help appreciated.
(function ($) { $(document).ready(function () { $('.h5p-control').trigger("click"); }) })(H5P.jQuery);
Summary:
Moodle interactive video autoplay
Content types:
tomaj
Thu, 06/01/2017 - 10:13
Permalink
IV inside iframe
The Interactive Video is running inside an iframe, so you wouldn't be able to use jQuery to select elements inside that iframe.
You might be able to do something like this, to select inside the iframe.
- Tom
sudeera
Thu, 06/01/2017 - 14:20
Permalink
Thanks Tom,Also I shoud have
Thanks Tom,
Also I shoud have used,
$(window).load(function()