New Landing How can we help? Themeforest Theme Support Uplift Change vimeo embed code for ios/mobile only?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Uplift
  • #296310
    jaynkie
    Member
    Post count: 90

    Hey guys!

    I’ve finally (after months) figured out how to get vimeo videos for portfolio to auto play and loop with zero UI and it’s great.

    Problem is in mobile – it’s just static and you can’t play. I understand vimeo can’t autoplay on mobile (? this true?)

    So my question is:

    How do I change the embed code for all vimeo embeds to be one thing for desktop, and another for mobile?

    ie:

    Desktop:
    <iframe src=”https://player.vimeo.com/video/xxxxxxxxx?autoplay=1&quality=1080p&background=1&loop=1&color=ffffff&title=0&byline=0&portrait=0&amp&#8221; width=”940″ height=”627″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

    Mobile:
    <iframe src=”https://player.vimeo.com/video/xxxxxxxxx?loop=1&color=ffffff&title=0&byline=0&portrait=0&amp&#8221; width=”940″ height=”627″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

    Only change is taking out autoplay and background tags.

    Thanks!

    #296470
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Yes, videos don’t autoplay in mobile devices browser for security reasons.

    You need to do specific content for desktop/tablet and other content only for mobile.

    If you place your videos inside a row asset, you can change the row visibility to be visible only in desktop/tablet.
    Then you duplicate that row, change the video urls and change the row visibility to be visible only in mobiles.
    https://www.dropbox.com/s/mmymulahxiww6fx/Screenshot%202016-10-14%2011.41.14.png?dl=0

    Hope it helps.

    -Rui

    #296549
    jaynkie
    Member
    Post count: 90

    That is a crazy idea Rui! Never would have thought of that! I’ll try it out! Thanks so much!

    #296553
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks Rui.

    – David.

    #296617
    jaynkie
    Member
    Post count: 90

    Thanks David and Rui –

    Is there ALSO a way to do this on my older site which is the Ability theme? I don’t think it has the rows etc. I’m trying to do this on both sites at the moment.

    #296930
    David Martin – Support
    Moderator
    Post count: 20834

    Unfortunalty not no, you would need to use custom CSS and media queries to hide certain elements.

    THanks,
    David.

    #296987
    jaynkie
    Member
    Post count: 90

    Thanks David – guess that just pushes me to finally update to the new one!

    #296998
    David Martin – Support
    Moderator
    Post count: 20834

    Atelier/Uplift and Nota are progressively more powerful with each theme release. Makes stuff like this very easy for you.

    Thanks,
    David.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register