Vimeo double click issue

marco_barbaro's Avatar

marco_barbaro

18 Feb, 2019 08:31 AM

Hi,
   I made a search into the forum before opening a new issue, and I finally found this one:

http://help.dimsemenov.com/discussions/problems/66509-double-touch-to-view-youtube-video-on-mobile-autoplay-problem/comments

    We have published a wordpress instance with a lot of references to vimeo videos, and we are facing the problem described in that 2017 issue.
We are wondering if - in the meantime - there have been added other hints to overcome the double click problem.
Could you help us?
Thanks
Marco

  1. Support Staff 1 Posted by Dmitry Semenov on 18 Feb, 2019 10:14 AM

    Dmitry Semenov's Avatar

    Hello,

    Browsers block autoplaying videos with sound. Since iframe element is added dynamically - the browser doesn't count it as a user action.

    So to fix the issue you may:

  2. 2 Posted by marco_barbaro on 19 Feb, 2019 04:05 PM

    marco_barbaro's Avatar

    Hi,
    thanks for your reply, but we still have some doubts, while are we speaking of "autoplay"? That is, we cannot see vimeo videos until we do a double click on them.
    Moreover what do you mean with the second option?
    We are not writing an html page at the moment to configure a video, we are using a "short code". Should we have to write an html page embedding an iframe with reference to vimeo videos?
    Do you have some examples for that option?
    Thanks again,
    Marco

  3. Support Staff 3 Posted by Dmitry Semenov on 19 Feb, 2019 05:20 PM

    Dmitry Semenov's Avatar

    Vimeo embed code structure can be adjusted from "Video" section of slider options. For example, to add muted parameter you can adjust it to:

    <iframe src="https://player.vimeo.com/video/%id%?autoplay=1&muted=1"  webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
    

    The plugin loads <iframe> only after the user clicks the play button. To load it right away you may embed it outside of the slider or paste the embed code in "Custom HTML" tab of "Edit Slide" dialog.

  4. 4 Posted by marco_barbaro on 20 Feb, 2019 08:25 AM

    marco_barbaro's Avatar

    Hi,
     thanks for your reply.
    We were wondering, due to this vimeo's issues, if Royal Slider plugin should work also with videos from othersources, than youtube and vimeos. For example, with local lan videos hosted on a local service.
    What could you suggest us about this?
    Thanks
    Marco

  5. Support Staff 5 Posted by Dmitry Semenov on 20 Feb, 2019 05:07 PM

    Dmitry Semenov's Avatar

    The plugin supports only YouTube and Vimeo by default. Though, there is an API to integrate other players http://help.dimsemenov.com/kb/royalslider-javascript-api/adding-sup...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac