Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ryan Rueckl 17 posts 74 karma points
    Feb 16, 2016 @ 16:52
    Ryan Rueckl
    0

    Vimeo not playing over https

    Playing a Vimeo video does not seem to work over https. I think I've narrowed down the issue and I've fixed it locally, but I don't see a github repo that I can commit the fix to.

    But basically, in vimeo.js at line 46, you have the line:

    this.baseUrl = (document.location.protocol == 'http:')? 'https://secure.vimeo.com/video/' : 'http://player.vimeo.com/video/';

    but as per W3Schools specs, location.protocol must contain a colon. So the check should actually be:

    (document.location.protocol == 'https:').

    Also, secure.vimeo.com just 301 redirects to player.vimeo.com, so I ultimately just changed the entire line to:

    this.baseUrl = document.location.protocol + '//player.vimeo.com/video/';

Please Sign in or register to post replies

Write your reply to:

Draft