JS error when site is running HTTPS

todd's Avatar

todd

15 Jun, 2017 02:31 PM

I was working on a site locally and everything was working great. When I moved the site live, and forced it to use HTTPS, my client told me the videos were no longer playing. I confirmed, and upon opening up the Chrome console found an error that "Blocked loading mixed active content ...." and referred to the youtube call in the jquery.royalslider.min.js file.

At line 89, I went in and changed this part to https -
youTubeCode:'<iframe src="https://www.youtube.com/embed/%id%?rel=1&showinfo=0&autoplay=1&wmode=transparent"

After doing so, the videos started working and the error went away.

I did look through the documentation and didn't find anything about this. So if there is a setting that I could have changed, please let me know!

  1. Support Staff 1 Posted by Dmitry Semenov on 15 Jun, 2017 06:50 PM

    Dmitry Semenov's Avatar

    Hello,

    The latest version of plugin already contains this change. And btw, you can modify youTubeCode option from slider initialization code instead of editing the core js file

    video: {
      youTubeCode: '<iframe ...
    }
    

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