This patch includes both "autoplay" and "loop" options which are available through Mediaelement.js.

I added to the patch which added "autoplay" functionality (http://drupal.org/node/1041054#comment-6178952) and took it a step further and added "loop" functionality. This patch includes both options.

Comments

pedrosp’s picture

Issue summary: View changes
StatusFileSize
new2.16 KB

This patch doesn't apply anymore on the last dev, however looking at the code, this is still possible to achieve.
Some changes were already present, and the main difference was that modifications happened no more on the main module but on the field.inc .

Use the attached and unzipped mediaelement.field.inc as a drop in replacement, and on the display mode you should now parameter auto play and loop.
Sorry no patch skills yet, contributing anyway though.

juc1’s picture

@ pedrosp yes that works for me = awesome, thanks.

maximpodorov’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Patch (to be ported) » Needs review
StatusFileSize
new5 KB

The patch is adapted to the current dev.

juc1’s picture

@ maximpodorov could you perhaps request commit permissions? It looks like the last commits from the current maintainers were three years ago...

mrpeanut’s picture

Patch from #3 works for me. Is there any way to set the autoplay to only autoplay when the item is visible via CSS? I am using this in conjunction with Views Slideshow, and it's starting when the page loads, not when the individual slide loads (i.e. when the individual slide is visible).

chris matthews’s picture

Status: Needs review » Needs work

The patch in #3 no longer applies to 7.x-1.x-dev so setting back to needs work for now.

dave kopecek’s picture

StatusFileSize
new5.92 KB

Ignore, re-uploaded fix in #8

dave kopecek’s picture

StatusFileSize
new5.54 KB

Rerolled #3 against Dev - December 12, 2018 -- Commit 2fb042f

  • Dave Kopecek authored 23a1eef on 7.x-1.x
    Issue #1810314 by Dave Kopecek, eternalistic, maximpodorov, pedrosp,...
jnettik’s picture

Status: Needs work » Fixed

Thank you for the patch! This works as expected and was committed. It's worth mentioning that browsers are changing the conditions on when things will be allowed to auto play, so the checkbox adds the attribute and works in the right conditions. But not always per browser design:

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.