-
Notifications
You must be signed in to change notification settings - Fork 18
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 Option for Video Background #8
Comments
I played with Slick paragraphs and Video embed field. However it comes back with player controls on the video tag which needs some workaround to hide the controls bar. If we can have something similar within Xeno Hero it would be really great. Autoplay and option to hide the controls by default. |
It's been a while since I have done video backgrounds, but will look into it. If you are embedding from youtube, you can add parameters to the url to autoplay, hide controls, etc... Not sure if the Media embed module saves that or not. Will have to explore. Reference: |
Hey Jim, any luck with video backgrounds with xeno? |
I've uploaded a new branch 8-video, which is a good start but not there yet. Additions
Changes
To Dos
To UpdateThe easiest way to update would be to uninstall and reinstall the module. However, you would need to delete all of your xeno_hero bundles for this. You could also import the following config files manually into your Drupal install, and then update the module, and clear the cache.
Once we get all the kinks worked out, we may be able to write an update hook |
I have an example/test up at: http://video-bootstrap-paragraphs.pantheonsite.io/testing-video If you are going to use this in the mean time because the loops are not working, better to find a long video! |
Great work! Thanks Jim. For adding videos apart from vimeo and youtube I have used https://www.drupal.org/project/video_embed_html5 module. This takes any video URL hosted anywhere. For looping the video and getting autoplay to work (for iOS devices add playsinline attribute) I have overridden the player twig file that comes with the above module like this.
Thanks |
Which template is that in @preritmohan? The entity or the field? |
It's video_embed_html5\templates\video-embed-html5.html.twig module |
Albert says: I was able to get the youtube video to loop. Just need to add the video id in the playlist parameter. |
Instead of just a plain old image, why can't we have a video background?
This would be a good thing to add once Media is in core (Drupal 8.4)
The text was updated successfully, but these errors were encountered: