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

Add allow autoplay to content iframe

    XMLWordPrintable

    Details

    • Affected Branches:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              adirvkaltura Adir Versano
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              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