Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65613

Add allow autoplay to content iframe

    XMLWordPrintable

Details

    • MOODLE_36_STABLE

    Description

      When we import youtube entries to Kaltura KAF, we need to add autoplay to the content iframe of moodle since without it - the youtube entry just showing loading animation and it won't play when trying to preview it.

      Solution propose:
      In mod/lti/view.php
      Add autoplay to iframe like this:

      echo '<iframe id="contentframe" height="600px" width="100%" src="launch.php?id='.$cm->id.'&triggerview=0" allow="autoplay *;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adirvkaltura Adir Versano
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m