Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more controls over HTML5 video attributes (autoplay, poster, loop, controls) #1442

Merged
merged 1 commit into from
Apr 25, 2017

Conversation

pfcloutier-druide
Copy link
Contributor

@pfcloutier-druide pfcloutier-druide commented Apr 21, 2017

I implemented some methods to support basic features of HTML5 videos. I saw this pull request #1092 after. I have then adjusted to fit the requirement mentioned.

Example in Markdown :
![video.mov](video.mov?loop=1&controls=0&autoplay=1)
Example in twig :
{% set header_image_media = page.media.videos|first %} {{ header_image_media.loop(true).autoplay(true).controls(false).poster("/path/to/image").html() }}

@flaviocopes flaviocopes merged commit 8491306 into getgrav:develop Apr 25, 2017
@flaviocopes
Copy link
Contributor

👍

@ash0080
Copy link
Contributor

ash0080 commented Jun 6, 2017

not work for current version

@pfcloutier-druide
Copy link
Contributor Author

@ash0080 The change was merged in the v1.3.0-rc.1. The current version 1.2.4 don't have this feature.

@ash0080
Copy link
Contributor

ash0080 commented Jun 7, 2017

@pfcloutier-druide see, thank you ;)

rhukster pushed a commit that referenced this pull request Nov 28, 2017
Adds support for `autoplay`, `controls`, `loop`, and `preload` attributes, with rudimentary validation for preload.

Those for `autoplay`, `controls`, and `loop` are copied directly from pfcloutier-druide/aaa3f82

See also #1442.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants