0
Welcome Guest! Login
0 items Join Now

Customize the size of Video Particle

    • CB's Avatar
    • CB
    • Sr. Rocketeer
    • Posts: 171
    • Thanks: 0

    Customize the size of Video Particle

    Posted 1 week 6 days ago
    • Can you customize the video player size within the Video Particle? Using the Clarity Template.
      For example, I want it to fit my video size of 1810px x 430px instead of the normal 1920x1080 format. Video is hosted on Vimeo.

      www.vidsol.media/services/association

      Previously, I had this video in a module wrapper and could customize the size, however, I couldn't get the video to play in a loop, like I can within the video particle. If you look at one of my other pages you can see what I had previously: www.vidsol.media/services/government

      Thanks for your help.
    • CB's Avatar
    • CB
    • Sr. Rocketeer
    • Posts: 171
    • Thanks: 0

    Re: Customize the size of Video Particle

    Posted 1 week 5 days ago
    • Ended up customizing an HTML Particle, several trials and errors with Vimeo to get it just right.
      Here's help link, should anyone else experience an issue: help.vimeo.com/hc/en-us/articles/1242648...y-video-s-embed-code

      It's too bad I couldn't figure out how to change parameters in the Video Particle, but found a workaround.
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22249
    • Thanks: 3223
    • messin' with stuff

    Re: Customize the size of Video Particle

    Posted 1 week 4 days ago
    • Take a look at the TWIG file for the Video Particle... Line 11 is where the Vimeo iFrame gets built... you could hardcode any params you're looking for there (I would guess... not familiar with Vimeo's iFrame API)

      Currently looks lie it's stting autoplay, loop, and muted params as defined by the admin (YAML file)... you should be able to add other params as needed: imgur.com/a/tiIiX9b

      If you want to do it in an upgrade-proof manner you can create an override file in /custom/particles/ and make your edits there

      docs.gantry.org/gantry5/tutorials/overri...article-source-files
    • Last Edit: 1 week 4 days ago by Matt.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.046 seconds