I added the 'loop' default to the Youtube player settings, so Youtube videos can automatically loop.
https://developers.google.com/youtube/player_parameters#loop
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | video_embed_field-youtube_loop-2866001-22.patch | 28.87 KB | prem suthar |
| #6 | interdiff-2866001-6-5.txt | 485 bytes | johnnydarkko |
| #6 | video_embed_field-youtube_loop-2866001-6.patch | 24.14 KB | johnnydarkko |
| #5 | video_embed_field-youtube_loop-2866001-5.patch | 23.9 KB | johnnydarkko |
| #2 | video_embed_field-youtube_loop-2866001.patch | 1.72 KB | rich.yumul |
Comments
Comment #2
rich.yumul commentedComment #3
rich.yumul commentedComment #4
goldlilys commentedThis works for me and you can do the same for the mute parameter to mute the video by default.
Comment #5
johnnydarkko commentedRerolling for 8.x-2.x.
Instead of using the
loopparameter for youtube, I set the playlist parameter to the same video ID which results in a loop.This patch also includes the addition of the loop parameter for vimeo: https://help.vimeo.com/hc/en-us/articles/115004485728-Autoplaying-and-lo...
Comment #6
johnnydarkko commentedAdded loop parameter to the youtube embed code. It was only playing the video twice without the loop parameter.
Comment #7
johnnydarkko commentedAdded configs for the loop feature.
Comment #8
anybodyComment #9
vdenis commentedTested patch locally and works as described!
Good job!
Comment #10
aldunchev commentedThanks for the patch. However there is one issue(maybe is good idea to move it as a separate issue ): on chrome the video won't play if it is not muted. Basically chrome is blocking autoplay videos and so the loop parameter does not work either.
Comment #11
jan kellermann commentedI have extended the patch and added mute-, controls- and rel-parameter (but without tests, sorry).
A better solution is to change the parameters for
renderEmbedCodeto($width, $height, $settings)with $settings as array. But this should decide the module-maintainer.Comment #12
kevinfunkI have extended the patch even more to add "Autoplay for Admin" since the admin role has the permission "Never autoplay videos." Does anyone have a better idea of how to hand this?
Comment #13
siavash commentedGreat Patch! I think this is a major issue on the stable version currently.
Everything seems to be working good other than the 'Autoplay for Admins' option. User 1 is still not getting the autoplay feature.
Comment #14
siavash commented2 more attributes that would be helpful here for background videos:
autohide=1
showinfo=0
Comment #15
tostinni commentedA little warning on this patch, it's creating a breaking API change by modifying
ProviderPluginInterfacewhich will break all third party video provider modules.It will generate error like this one :
Comment #16
anybodySame major problem here as written in #15!
Comment #17
anybodyComment #18
anybodyI think the best fix would be to simply forward the parameters to the template like this, so the themer can decide if to use them:
Comment #19
anybodyre#15: If you use this patch and use video_embed_html5 you need this patch: #3159736: Youtube looping (#2866001): Html5::renderEmbedCode parameters not compatible with ProviderPluginInterface::renderEmbedCode!
So it's true, it breaks dependent modules!
Comment #20
sam152 commentedWith the advent of Media in core, the Video Embed Field module has moved to being minimally maintained. Only issues which assist in the migration to Media in core will be committed. To read more about this decision, please see: #3089599: Maintenance status for Video Embed Field now that media is in core.
Comment #21
prem suthar commentedRe Roll Patch # 12 by hide The Controls For Viemo Player also.
Comment #22
prem suthar commentedBy Mistake change the Get Form Code Remove that Code.#21